]> granicus.if.org Git - clang/commitdiff
libclang: Enable skip-parsed-bodies on win32.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 10 Feb 2016 01:29:57 +0000 (01:29 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 10 Feb 2016 01:29:57 +0000 (01:29 +0000)
I guess it would be working since Rafael's r187619.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@260344 91177308-0d34-0410-b5e6-96231b3b80d8

test/Index/skip-parsed-bodies/compile_commands.json
tools/libclang/Indexing.cpp

index 30ede0db1015deb33061be274d19a113d8a06825..ddd46be955d31a26497e509d17c7839db4176d4e 100644 (file)
@@ -16,7 +16,6 @@
 }
 ]
 
-// XFAIL: mingw32,win32,windows-gnu
 // RUN: c-index-test -index-compile-db %s | FileCheck %s
 
 // CHECK:      [startedTranslationUnit]
index 4929d6244e56a33ad504824c7c93d11c3ec69095..01f1b956b280b578cef47af938fc4c380894b446 100644 (file)
@@ -45,26 +45,6 @@ namespace {
 // Skip Parsed Bodies
 //===----------------------------------------------------------------------===//
 
-#ifdef LLVM_ON_WIN32
-
-// FIXME: On windows it is disabled since current implementation depends on
-// file inodes.
-
-class SessionSkipBodyData { };
-
-class TUSkipBodyControl {
-public:
-  TUSkipBodyControl(SessionSkipBodyData &sessionData,
-                    PPConditionalDirectiveRecord &ppRec,
-                    Preprocessor &pp) { }
-  bool isParsed(SourceLocation Loc, FileID FID, const FileEntry *FE) {
-    return false;
-  }
-  void finished() { }
-};
-
-#else
-
 /// \brief A "region" in source code identified by the file/offset of the
 /// preprocessor conditional directive that it belongs to.
 /// Multiple, non-consecutive ranges can be parts of the same region.
@@ -238,8 +218,6 @@ private:
   }
 };
 
-#endif
-
 //===----------------------------------------------------------------------===//
 // IndexPPCallbacks
 //===----------------------------------------------------------------------===//