From: NAKAMURA Takumi Date: Wed, 10 Feb 2016 01:29:57 +0000 (+0000) Subject: libclang: Enable skip-parsed-bodies on win32. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1062889c7a09b35d82e6a3dfacaaa2c881d49bc9;p=clang libclang: Enable skip-parsed-bodies on win32. 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 --- diff --git a/test/Index/skip-parsed-bodies/compile_commands.json b/test/Index/skip-parsed-bodies/compile_commands.json index 30ede0db10..ddd46be955 100644 --- a/test/Index/skip-parsed-bodies/compile_commands.json +++ b/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/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index 4929d6244e..01f1b956b2 100644 --- a/tools/libclang/Indexing.cpp +++ b/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 //===----------------------------------------------------------------------===//