aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2016-02-10 01:29:57 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2016-02-10 01:29:57 +0000
commitcd4d945525f03f617fe66401b5ef60f0e971fe76 (patch)
tree8c21ffc508a0cf3f818e42fdb5c4208b56d8c0a3
parent0882a5d5ec85ee26a6e94264864cea2f6ae6c90b (diff)
downloadllvm-cd4d945525f03f617fe66401b5ef60f0e971fe76.zip
llvm-cd4d945525f03f617fe66401b5ef60f0e971fe76.tar.gz
llvm-cd4d945525f03f617fe66401b5ef60f0e971fe76.tar.bz2
libclang: Enable skip-parsed-bodies on win32.
I guess it would be working since Rafael's r187619. llvm-svn: 260344
-rw-r--r--clang/test/Index/skip-parsed-bodies/compile_commands.json1
-rw-r--r--clang/tools/libclang/Indexing.cpp22
2 files changed, 0 insertions, 23 deletions
diff --git a/clang/test/Index/skip-parsed-bodies/compile_commands.json b/clang/test/Index/skip-parsed-bodies/compile_commands.json
index 30ede0d..ddd46be 100644
--- a/clang/test/Index/skip-parsed-bodies/compile_commands.json
+++ b/clang/test/Index/skip-parsed-bodies/compile_commands.json
@@ -16,7 +16,6 @@
}
]
-// XFAIL: mingw32,win32,windows-gnu
// RUN: c-index-test -index-compile-db %s | FileCheck %s
// CHECK: [startedTranslationUnit]
diff --git a/clang/tools/libclang/Indexing.cpp b/clang/tools/libclang/Indexing.cpp
index 4929d62..01f1b95 100644
--- a/clang/tools/libclang/Indexing.cpp
+++ b/clang/tools/libclang/Indexing.cpp
@@ -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
//===----------------------------------------------------------------------===//