aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2022-07-13 16:27:36 +0200
committerSam McCall <sam.mccall@gmail.com>2022-08-19 15:16:10 +0200
commitac31781759889226711b801c3833fea280fdb7aa (patch)
tree08e8a3dde5597d521aad10ce8b0b2d41bd6faff1 /llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
parent605035bf4508460f8c28857c7aaecf1d8c449ca8 (diff)
downloadllvm-ac31781759889226711b801c3833fea280fdb7aa.zip
llvm-ac31781759889226711b801c3833fea280fdb7aa.tar.gz
llvm-ac31781759889226711b801c3833fea280fdb7aa.tar.bz2
[Sema] Tweak diagnostic logic so suppress-in-header logic works in tools too.
Certain idioms are ignored by -Wunused in header files only. The current "is a header" check assumes that if headers are the main file, we're building a PCH or a module or something. However in tools we may be parsing the header in its own right, but still want to treat it as a header. Fixes https://github.com/clangd/vscode-clangd/issues/360 Differential Revision: https://reviews.llvm.org/D129642
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyIndVar.cpp')
0 files changed, 0 insertions, 0 deletions