diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2010-01-30 23:31:40 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2010-01-30 23:31:40 +0000 |
| commit | 854d36bd9bb42f50f87925fbdd59c47282d9e2c0 (patch) | |
| tree | b047cdc371c96e72d9708f02e9886502462987f0 /clang/tools/CIndex/CIndex.cpp | |
| parent | 98323d29b6175cb1739506624542c8f642547c01 (diff) | |
| download | bcm5719-llvm-854d36bd9bb42f50f87925fbdd59c47282d9e2c0.tar.gz bcm5719-llvm-854d36bd9bb42f50f87925fbdd59c47282d9e2c0.zip | |
CIndex: Fix ReportSerializedDiagnostics to honor the DiagnosticClient contract
that diagnostics with a source location should occur inside
{Begin,End}SourceFile.
Note that code completion is currently passing in an invalid LangOptions object
due to its implementation, I need to sort this out with Doug.
llvm-svn: 94927
Diffstat (limited to 'clang/tools/CIndex/CIndex.cpp')
| -rw-r--r-- | clang/tools/CIndex/CIndex.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/CIndex/CIndex.cpp b/clang/tools/CIndex/CIndex.cpp index 1afd8c23ba1..718aff02ed0 100644 --- a/clang/tools/CIndex/CIndex.cpp +++ b/clang/tools/CIndex/CIndex.cpp @@ -1095,7 +1095,8 @@ clang_createTranslationUnitFromSourceFile(CXIndex CIdx, ATU->unlinkTemporaryFile(); ReportSerializedDiagnostics(DiagnosticsFile, *Diags, - num_unsaved_files, unsaved_files); + num_unsaved_files, unsaved_files, + ATU->getASTContext().getLangOptions()); for (unsigned i = 0, e = TemporaryFiles.size(); i != e; ++i) TemporaryFiles[i].eraseFromDisk(); |

