aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Scalar/LoopFuse.cpp
diff options
context:
space:
mode:
authorSam McCall <sam.mccall@gmail.com>2019-04-17 18:33:07 +0000
committerSam McCall <sam.mccall@gmail.com>2019-04-17 18:33:07 +0000
commita96efb654e91065697861bdb4541a793b25ecc6b (patch)
tree7a02cbb0e4aacf3004211a07084a0bc5a7ba1490 /llvm/lib/Transforms/Scalar/LoopFuse.cpp
parent8ecb7bbe2babff32157b37ff6f4dda4115148fc5 (diff)
downloadllvm-a96efb654e91065697861bdb4541a793b25ecc6b.zip
llvm-a96efb654e91065697861bdb4541a793b25ecc6b.tar.gz
llvm-a96efb654e91065697861bdb4541a793b25ecc6b.tar.bz2
[clangd] Recognize "don't include me directly" pattern, and suppress include insertion.
Summary: Typically used with umbrella headers, e.g. GTK: #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION) #error "Only <gtk/gtk.h> can be included directly." #endif Heuristic is fairly conservative, a quick code search over github showed a fair number of hits and few/no false positives. (Not all were umbrella headers, but I'd be happy avoiding include insertion for all of them). We may want to relax the heuristic later to catch more cases. Reviewers: ioeric Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits Tags: #clang Differential Revision: https://reviews.llvm.org/D60815 llvm-svn: 358605
Diffstat (limited to 'llvm/lib/Transforms/Scalar/LoopFuse.cpp')
0 files changed, 0 insertions, 0 deletions