[clang-tools-extra] r229187 - Fix broken logic for include in block check.

John Thompson John.Thompson.JTSoftware at gmail.com
Fri Feb 13 15:32:09 PST 2015


Author: jtsoftware
Date: Fri Feb 13 17:32:08 2015
New Revision: 229187

URL: http://llvm.org/viewvc/llvm-project?rev=229187&view=rev
Log:
Fix broken logic for include in block check.

Modified:
    clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp

Modified: clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp?rev=229187&r1=229186&r2=229187&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp (original)
+++ clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp Fri Feb 13 17:32:08 2015
@@ -901,7 +901,7 @@ public:
                               int DirectiveColumn, llvm::StringRef TargetPath) {
     // If it's not a header in the header list, ignore it with respect to
     // the check.
-    if (BlockCheckHeaderListOnly && !isHeaderListHeader(DirectivePath))
+    if (BlockCheckHeaderListOnly && !isHeaderListHeader(TargetPath))
       return;
     HeaderHandle CurrentHeaderHandle = findHeaderHandle(DirectivePath);
     StringHandle IncludeHeaderHandle = addString(TargetPath);





More information about the cfe-commits mailing list