diff options
author | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-28 04:55:55 +0000 |
---|---|---|
committer | Argyrios Kyrtzidis <akyrtzi@gmail.com> | 2011-11-28 04:55:55 +0000 |
commit | 991bf49f68e8caeb900dd9738712b861073363d9 (patch) | |
tree | dfd7f27c815b0013cd93470de735000cc94f9516 /tools/libclang/Indexing.cpp | |
parent | 5c00fc309bec8900a798e7d5f87d1ccab7908a28 (diff) |
[libclang] Indexing API: Capture diagnostics during indexing.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@145228 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/libclang/Indexing.cpp')
-rw-r--r-- | tools/libclang/Indexing.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/libclang/Indexing.cpp b/tools/libclang/Indexing.cpp index af9fad8ced..5af1d50e72 100644 --- a/tools/libclang/Indexing.cpp +++ b/tools/libclang/Indexing.cpp @@ -317,7 +317,8 @@ static void clang_indexSourceFile_Impl(void *UserData) { if (!requestedToGetTU) CInvok->getPreprocessorOpts().DetailedRecord = false; - ASTUnit *Unit = ASTUnit::create(CInvok.getPtr(), Diags); + ASTUnit *Unit = ASTUnit::create(CInvok.getPtr(), Diags, + /*CaptureDiagnostics=*/true); llvm::OwningPtr<CXTUOwner> CXTU(new CXTUOwner(MakeCXTranslationUnit(Unit))); // Recover resources if we crash before exiting this method. |