Skip to content
Snippets Groups Projects
  • Hubert Tong's avatar
    b63b4d08
    Improved error recovery for _Pragma · b63b4d08
    Hubert Tong authored
    Summary:
    Currently, if the argument to _Pragma is not a parenthesised string
    literal, the bad token will be consumed, as well as the ')', if present.
    If additional bad tokens are passed to the _Pragma, this results in
    extra error messages which may distract from the true problem.
    
    The proposed patch causes all tokens to be consumed until the closing
    ')' or a new line, whichever is reached first.
    
    Reviewers: hfinkel, rsmith
    
    Subscribers: hubert.reinterpretcast, fraggamuffin, rnk, cfe-commits
    
    Differential Revision: http://reviews.llvm.org/D8308
    
    Patch by Rachel Craik!
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243692 91177308-0d34-0410-b5e6-96231b3b80d8
    b63b4d08
    History
    Improved error recovery for _Pragma
    Hubert Tong authored
    Summary:
    Currently, if the argument to _Pragma is not a parenthesised string
    literal, the bad token will be consumed, as well as the ')', if present.
    If additional bad tokens are passed to the _Pragma, this results in
    extra error messages which may distract from the true problem.
    
    The proposed patch causes all tokens to be consumed until the closing
    ')' or a new line, whichever is reached first.
    
    Reviewers: hfinkel, rsmith
    
    Subscribers: hubert.reinterpretcast, fraggamuffin, rnk, cfe-commits
    
    Differential Revision: http://reviews.llvm.org/D8308
    
    Patch by Rachel Craik!
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243692 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.