diff options
Diffstat (limited to 'tools/libclang/Indexing.cpp')
| -rw-r--r-- | tools/libclang/Indexing.cpp | 13 | 
1 files changed, 2 insertions, 11 deletions
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index 5312b7c0169c8..021ebcfcfe430 100644 --- a/tools/libclang/Indexing.cpp +++ b/tools/libclang/Indexing.cpp @@ -272,7 +272,8 @@ public:    /// SourceRangeSkipped - This hook is called when a source range is skipped.    /// \param Range The SourceRange that was skipped. The range begins at the    /// #if/#else directive and ends after the #endif/#else directive. -  void SourceRangeSkipped(SourceRange Range) override {} +  void SourceRangeSkipped(SourceRange Range, SourceLocation EndifLoc) override { +  }  };  //===----------------------------------------------------------------------===// @@ -879,11 +880,6 @@ int clang_indexSourceFileFullArgv(          TU_options);    }; -  if (getenv("LIBCLANG_NOTHREADS")) { -    IndexSourceFileImpl(); -    return result; -  } -    llvm::CrashRecoveryContext CRC;    if (!RunSafely(CRC, IndexSourceFileImpl)) { @@ -933,11 +929,6 @@ int clang_indexTranslationUnit(CXIndexAction idxAction,          index_options, TU);    }; -  if (getenv("LIBCLANG_NOTHREADS")) { -    IndexTranslationUnitImpl(); -    return result; -  } -    llvm::CrashRecoveryContext CRC;    if (!RunSafely(CRC, IndexTranslationUnitImpl)) {  | 
