summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorAlexander Kornienko <alexfh@google.com>2012-09-28 22:24:03 +0000
committerAlexander Kornienko <alexfh@google.com>2012-09-28 22:24:03 +0000
commite61e5625e7d8a44f0f142f5f2faa912601b447f5 (patch)
treefbba0c78f325340b09843c759db418f8f9b9a4a6 /clang/lib/CodeGen/CodeGenModule.cpp
parent13d6b71929ac2b4b90e1da41e9e41ad1e9b0c15e (diff)
downloadbcm5719-llvm-e61e5625e7d8a44f0f142f5f2faa912601b447f5.tar.gz
bcm5719-llvm-e61e5625e7d8a44f0f142f5f2faa912601b447f5.zip
Compatibility macro detection for the -Wimplicit-fallthrough diagnostic.
Summary: When issuing a diagnostic message for the -Wimplicit-fallthrough diagnostics, always try to find the latest macro, defined at the point of fallthrough, which is immediately expanded to "[[clang::fallthrough]]", and use it's name instead of the actual sequence. Known issues: * uses PP.getSpelling() to compare macro definition with a string (anyone can suggest a convenient way to fill a token array, or maybe lex it in runtime?); * this can be generalized and used in other similar cases, any ideas where it should reside then? Reviewers: doug.gregor, rsmith Reviewed By: rsmith CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D50 llvm-svn: 164858
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud