]> granicus.if.org Git - clang/commit
Fix false positives in -Wmsvc-include by continuing header search
authorReid Kleckner <reid@kleckner.net>
Tue, 18 Feb 2014 23:49:24 +0000 (23:49 +0000)
committerReid Kleckner <reid@kleckner.net>
Tue, 18 Feb 2014 23:49:24 +0000 (23:49 +0000)
commita20e7b2608c46bde16cbb9bcbfd40b0a53e300d2
tree5b8ef68fc71d7f99a47844b5b922059238c9c660
parent2d32f258999dda069aa8ba327ed5e22622c516bf
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201615 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Lex/HeaderSearch.cpp
test/Preprocessor/Inputs/microsoft-header-search/a/b/include3.h
test/Preprocessor/microsoft-header-search.c