[clang-tools-extra] r229690 - Temporary hack to avoid false errors. Real fix comming.

John Thompson John.Thompson.JTSoftware at gmail.com
Wed Feb 18 08:12:26 PST 2015


Author: jtsoftware
Date: Wed Feb 18 10:12:26 2015
New Revision: 229690

URL: http://llvm.org/viewvc/llvm-project?rev=229690&view=rev
Log:
Temporary hack to avoid false errors. Real fix comming.

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=229690&r1=229689&r2=229690&view=diff
==============================================================================
--- clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp (original)
+++ clang-tools-extra/trunk/modularize/PreprocessorTracker.cpp Wed Feb 18 10:12:26 2015
@@ -931,6 +931,9 @@ public:
     clang::FileID FileID = PP.getSourceManager().getFileID(BlockStartLoc);
     std::string SourcePath = getSourceLocationFile(PP, BlockStartLoc);
     HeaderHandle SourceHandle = findHeaderHandle(SourcePath);
+    // FIXME: Go back and fix getSourceLocation to use a canonical form.
+    if (SourceHandle == -1)
+      return true;
     int BlockStartLine, BlockStartColumn, BlockEndLine, BlockEndColumn;
     bool returnValue = true;
     getSourceLocationLineAndColumn(PP, BlockStartLoc, BlockStartLine,





More information about the cfe-commits mailing list