diff options
author | Zinovy Nis <zinovy.y.nis@intel.com> | 2018-04-01 11:51:57 +0000 |
---|---|---|
committer | Zinovy Nis <zinovy.y.nis@intel.com> | 2018-04-01 11:51:57 +0000 |
commit | c16815ca8abc496778d34e7acb6aa25bb0f29176 (patch) | |
tree | 7df48ddfecd6decfecb6edb493c0765d56698ea9 /llvm/lib/Transforms/Utils/LoopRotationUtils.cpp | |
parent | 9b8cd5fe5507fdd1992e6a77a91cda0f7f3af80b (diff) | |
download | llvm-c16815ca8abc496778d34e7acb6aa25bb0f29176.zip llvm-c16815ca8abc496778d34e7acb6aa25bb0f29176.tar.gz llvm-c16815ca8abc496778d34e7acb6aa25bb0f29176.tar.bz2 |
[clang-tidy] Define __clang_analyzer__ macro for clang-tidy for compatibility with clang static analyzer
This macro is widely used in many well-known projects, ex. Chromium.
But it's not set for clang-tidy, so for ex. DCHECK in Chromium is not considered as [[no-return]], and a lot of false-positive warnings about nullptr dereferenced are emitted.
This patch fixes the issue by explicitly added macro definition.
Differential Revision: https://reviews.llvm.org/D44906
llvm-svn: 328932
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopRotationUtils.cpp')
0 files changed, 0 insertions, 0 deletions