aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/InitPreprocessor.cpp
diff options
context:
space:
mode:
authorTed Kremenek <kremenek@apple.com>2014-03-06 06:50:46 +0000
committerTed Kremenek <kremenek@apple.com>2014-03-06 06:50:46 +0000
commitec2dc73e8638eecc7c95404d575ea9d94e197cf3 (patch)
tree5924b2745d9a736042348c9b461108b8d728a9a2 /clang/lib/Frontend/InitPreprocessor.cpp
parentb3fd21a42fc3bf620c1c81cc1c131c24e142cee7 (diff)
downloadllvm-ec2dc73e8638eecc7c95404d575ea9d94e197cf3.zip
llvm-ec2dc73e8638eecc7c95404d575ea9d94e197cf3.tar.gz
llvm-ec2dc73e8638eecc7c95404d575ea9d94e197cf3.tar.bz2
[-Wunreachable-code] don't warn about dead 'return <string literal>' dominated by a 'noreturn' call, where literal becomes an std::string.
I have mixed feelings about this one. It's used all over the codebase, and is analogous to the current heuristic for ordinary C string literals. This requires some ad hoc pattern matching of the AST. While the test case mirrors what we see std::string in libc++, it's not really testing the libc++ headers. llvm-svn: 203091
Diffstat (limited to 'clang/lib/Frontend/InitPreprocessor.cpp')
0 files changed, 0 insertions, 0 deletions