diff options
author | Reid Kleckner <reid@kleckner.net> | 2014-02-18 23:49:24 +0000 |
---|---|---|
committer | Reid Kleckner <reid@kleckner.net> | 2014-02-18 23:49:24 +0000 |
commit | a97d4c0679a9edb21fcd534968ae532156b950a9 (patch) | |
tree | 36863a9dcf11585a8404738a897daffe284efb4b /clang/test/Preprocessor/microsoft-header-search.c | |
parent | 08a04327a94bbfa0d2d804c4ee845ef8a7c6cf54 (diff) | |
download | bcm5719-llvm-a97d4c0679a9edb21fcd534968ae532156b950a9.tar.gz bcm5719-llvm-a97d4c0679a9edb21fcd534968ae532156b950a9.zip |
Fix false positives in -Wmsvc-include by continuing header search
This makes Clang and LLVM -Wmsvc-include clean.
I believe the correct behavior here is to avoid updating the cache when
we find the header via MSVC's search rules.
Differential Revision: http://llvm-reviews.chandlerc.com/D2733
llvm-svn: 201615
Diffstat (limited to 'clang/test/Preprocessor/microsoft-header-search.c')
-rw-r--r-- | clang/test/Preprocessor/microsoft-header-search.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/test/Preprocessor/microsoft-header-search.c b/clang/test/Preprocessor/microsoft-header-search.c index d0fc7067643..2cdc54e5c41 100644 --- a/clang/test/Preprocessor/microsoft-header-search.c +++ b/clang/test/Preprocessor/microsoft-header-search.c @@ -3,4 +3,6 @@ // expected-warning@Inputs/microsoft-header-search/a/findme.h:3 {{findme.h successfully included using MS search rules}} // expected-warning@Inputs/microsoft-header-search/a/b/include3.h:3 {{#include resolved using non-portable MSVC search rules as}} +// expected-warning@Inputs/microsoft-header-search/falsepos.h:3 {{successfully resolved the falsepos.h header}} + #include "Inputs/microsoft-header-search/include1.h" |