diff options
author | Jordan Rose <jordan_rose@apple.com> | 2013-10-03 16:57:03 +0000 |
---|---|---|
committer | Jordan Rose <jordan_rose@apple.com> | 2013-10-03 16:57:03 +0000 |
commit | 9db2d9adef9111fd004ec555b12cfa114c3e172b (patch) | |
tree | d4b0f030cb6f124fc2ae2a5e75e0ac9e24a86b3c /llvm/lib/MC/MCDisassembler/Disassembler.cpp | |
parent | c967d2f49c1437dbe9c2587504f68cbe008f6d6d (diff) | |
download | llvm-9db2d9adef9111fd004ec555b12cfa114c3e172b.zip llvm-9db2d9adef9111fd004ec555b12cfa114c3e172b.tar.gz llvm-9db2d9adef9111fd004ec555b12cfa114c3e172b.tar.bz2 |
[analyzer] Add new debug helper clang_analyzer_warnIfReached.
This will emit a warning if a call to clang_analyzer_warnIfReached is
executed, printing REACHABLE. This is a more explicit way to declare
expected reachability than using clang_analyzer_eval or triggering
a bug (divide-by-zero or null dereference), and unlike the former will
work the same in inlined functions and top-level functions. Like the
other debug helpers, it is part of the debug.ExprInspection checker.
Patch by Jared Grubb!
llvm-svn: 191909
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions