Skip to content
Snippets Groups Projects
  • Alp Toker's avatar
    ca70f4fa
    ExpectAndConsume: Diagnose errors automatically · ca70f4fa
    Alp Toker authored
     1) Teach ExpectAndConsume() to emit expected and expected-after diagnostics
        using the generic diagnostic descriptions added in r197972, eliminating another
        set of trivial err_expected_* variations while maintaining existing behaviour.
    
     2) Lift SkipUntil() recovery out of ExpectAndConsume(). The Expect/Consume
        family of functions are primitive parser operations that now have the
        well-defined property of operating on single tokens. Factoring out recovery
        exposes opportunities for more consistent and tailored error recover at the
        call sites instead of just relying on a bottled SkipUntil formula.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198270 91177308-0d34-0410-b5e6-96231b3b80d8
    ca70f4fa
    History
    ExpectAndConsume: Diagnose errors automatically
    Alp Toker authored
     1) Teach ExpectAndConsume() to emit expected and expected-after diagnostics
        using the generic diagnostic descriptions added in r197972, eliminating another
        set of trivial err_expected_* variations while maintaining existing behaviour.
    
     2) Lift SkipUntil() recovery out of ExpectAndConsume(). The Expect/Consume
        family of functions are primitive parser operations that now have the
        well-defined property of operating on single tokens. Factoring out recovery
        exposes opportunities for more consistent and tailored error recover at the
        call sites instead of just relying on a bottled SkipUntil formula.
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@198270 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.