Skip to content
Snippets Groups Projects
  • Richard Smith's avatar
    b9c6261d
    Improvements to vexing-parse warnings. Make the no-parameters case more · b9c6261d
    Richard Smith authored
    accurate by asking the parser whether there was an ambiguity rather than trying
    to reverse-engineer it from the DeclSpec. Make the with-parameters case have
    better diagnostics by using semantic information to drive the warning,
    improving the diagnostics and adding a fixit.
    
    Patch by Nikola Smiljanic. Some minor changes by me to suppress diagnostics for
    declarations of the form 'T (*x)(...)', which seem to have a very high false
    positive rate, and to reduce indentation in 'warnAboutAmbiguousFunction'.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160998 91177308-0d34-0410-b5e6-96231b3b80d8
    b9c6261d
    History
    Improvements to vexing-parse warnings. Make the no-parameters case more
    Richard Smith authored
    accurate by asking the parser whether there was an ambiguity rather than trying
    to reverse-engineer it from the DeclSpec. Make the with-parameters case have
    better diagnostics by using semantic information to drive the warning,
    improving the diagnostics and adding a fixit.
    
    Patch by Nikola Smiljanic. Some minor changes by me to suppress diagnostics for
    declarations of the form 'T (*x)(...)', which seem to have a very high false
    positive rate, and to reduce indentation in 'warnAboutAmbiguousFunction'.
    
    
    git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@160998 91177308-0d34-0410-b5e6-96231b3b80d8
Code owners
Assign users and groups as approvers for specific file changes. Learn more.