diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-30 21:30:52 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2012-07-30 21:30:52 +0000 |
commit | 943c4404555120ccf87d2f23807104e7cbf04439 (patch) | |
tree | 5a463e9d666fa9d87cc9d8091021e2c2855499f7 /llvm/lib/CodeGen/MachineTraceMetrics.cpp | |
parent | 984cfe83228dddfee148d3668ef824b49fec137d (diff) | |
download | llvm-943c4404555120ccf87d2f23807104e7cbf04439.zip llvm-943c4404555120ccf87d2f23807104e7cbf04439.tar.gz llvm-943c4404555120ccf87d2f23807104e7cbf04439.tar.bz2 |
Improvements to vexing-parse warnings. Make the no-parameters case more
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'.
llvm-svn: 160998
Diffstat (limited to 'llvm/lib/CodeGen/MachineTraceMetrics.cpp')
0 files changed, 0 insertions, 0 deletions