diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-08 21:18:26 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2014-03-08 21:18:26 +0000 |
commit | 8ed7414e583df33ca8a50fcdf2556e08edc5e4c4 (patch) | |
tree | dce51cd0dfe90d80a5f559e714ea79c072bff693 /clang/lib | |
parent | 9174593d09f6787704078b65d1fdd3d7476d6884 (diff) | |
download | bcm5719-llvm-8ed7414e583df33ca8a50fcdf2556e08edc5e4c4.tar.gz bcm5719-llvm-8ed7414e583df33ca8a50fcdf2556e08edc5e4c4.zip |
[Preprocessor] Only check for -Wunused-macros if the translation unit kind is TU_Complete.
llvm-svn: 203360
Diffstat (limited to 'clang/lib')
-rw-r--r-- | clang/lib/Lex/PPLexerChange.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/lib/Lex/PPLexerChange.cpp b/clang/lib/Lex/PPLexerChange.cpp index 80f863dcdaa..949cd632620 100644 --- a/clang/lib/Lex/PPLexerChange.cpp +++ b/clang/lib/Lex/PPLexerChange.cpp @@ -427,7 +427,7 @@ bool Preprocessor::HandleEndOfFile(Token &Result, bool isEndOfMacro) { if (!isIncrementalProcessingEnabled()) CurPPLexer = 0; - if (TUKind != TU_Prefix) { + if (TUKind == TU_Complete) { // This is the end of the top-level file. 'WarnUnusedMacroLocs' has // collected all macro locations that we need to warn because they are not // used. |