diff options
| author | Ted Kremenek <kremenek@apple.com> | 2014-03-06 06:50:46 +0000 |
|---|---|---|
| committer | Ted Kremenek <kremenek@apple.com> | 2014-03-06 06:50:46 +0000 |
| commit | 516e77b4bd80d0682f9166563524724cc171b5a1 (patch) | |
| tree | 039f616db9e457976e68b326f9b961d805f1c68b /lib/CodeGen/CodeGenFunction.cpp | |
| parent | 3c85413c1b54daf540c7053388f1f77adedec27b (diff) | |
| download | clang-516e77b4bd80d0682f9166563524724cc171b5a1.tar.gz clang-516e77b4bd80d0682f9166563524724cc171b5a1.tar.bz2 clang-516e77b4bd80d0682f9166563524724cc171b5a1.tar.xz | |
[-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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203091 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions
