Skip to content
Snippets Groups Projects
Commit 026af422 authored by Argyrios Kyrtzidis's avatar Argyrios Kyrtzidis
Browse files

[Preprocessor] Only check for -Wunused-macros if the translation unit kind is TU_Complete.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@203360 91177308-0d34-0410-b5e6-96231b3b80d8
parent 8328f646
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment