llvm-project/clang/lib/Lex
Ben Langmuir d285c50390 Prevent outputting HeaderFileInfos for files not used as headers
When building an AST file, we don't want to output HeaderFileInfo
structures for files that are not actually used as headers in the
current context.  This can lead to assuming that unrelated files have
include counts of 0, defeating multiple-include prevention.

This is accomplished by adding an IsValid bit to the HFI.

llvm-svn: 203813
2014-03-13 16:46:36 +00:00
..
CMakeLists.txt [CMake] Use LINK_LIBS instead of target_link_libraries(). 2014-02-26 06:41:29 +00:00
HeaderMap.cpp [C++11] Replace OwningPtr include with <memory>. 2014-03-09 11:36:40 +00:00
HeaderSearch.cpp Prevent outputting HeaderFileInfos for files not used as headers 2014-03-13 16:46:36 +00:00
Lexer.cpp [C++11] Replace llvm::tie with std::tie. 2014-03-02 13:01:17 +00:00
LiteralSupport.cpp Remove uses of SmallString::equals in favor of SmallVectorImpl<char>'s operator== 2014-03-09 05:18:27 +00:00
MacroArgs.cpp [Preprocessor] For the MacroExpands preprocessor callback, also pass the MacroArgs object that provides information about 2013-05-03 22:31:32 +00:00
MacroInfo.cpp If a module A exports a macro M, and a module B imports that macro and #undef's 2014-03-01 00:08:04 +00:00
Makefile
ModuleMap.cpp Only allow streaming exactly type 'bool' to a DiagnosticBuilder, not anything 2014-03-12 23:36:42 +00:00
PPCaching.cpp Fix the build break introduced by r195799 by restoring two close 2013-11-27 01:40:12 +00:00
PPCallbacks.cpp Unweaken vtables as per http://llvm.org/docs/CodingStandards.html#ll_virtual_anch 2011-12-20 02:48:34 +00:00
PPConditionalDirectiveRecord.cpp Changed ConditionValue argument to PPCallbacks If and Elif callbacks to be a 3-state enum. 2013-12-07 08:41:15 +00:00
PPDirectives.cpp Lex: reduce buffer size, add a test 2014-03-12 02:26:08 +00:00
PPExpressions.cpp Switch over more of the parser to err_expected 2013-12-30 23:29:50 +00:00
PPLexerChange.cpp [Preprocessor] Only check for -Wunused-macros if the translation unit kind is TU_Complete. 2014-03-08 21:18:26 +00:00
PPMacroExpansion.cpp [C++11] Replace llvm::tie with std::tie. 2014-03-02 13:01:17 +00:00
PTHLexer.cpp [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-11 06:50:42 +00:00
Pragma.cpp [C++11] Add 'override' keyword to virtual methods that override their base class. 2014-03-11 06:50:42 +00:00
PreprocessingRecord.cpp [libclang] Record ranges skipped by the preprocessor and expose them with libclang. 2013-12-05 08:19:32 +00:00
Preprocessor.cpp [Preprocessor] Pass TranslationUnitKind to the preprocessor and if it is TU_Prefix 2014-03-07 07:47:58 +00:00
PreprocessorLexer.cpp Make Preprocessor::Lex non-recursive. 2013-09-19 00:41:32 +00:00
ScratchBuffer.cpp Rename SourceLocation::getFileLocWithOffset -> getLocWithOffset. 2011-09-19 20:40:19 +00:00
TokenConcatenation.cpp Revert "Fix assertion failures on annot_* tokens in clang -E" 2014-01-30 21:50:18 +00:00
TokenLexer.cpp If the first token in a macro that appears at the start of a line expands to 2014-02-24 20:45:00 +00:00
UnicodeCharSets.h Fix the range for Malayam UCNs in C99. 2014-02-05 15:32:23 +00:00