diff options
Diffstat (limited to 'tools/CIndex/CIndexDiagnostic.cpp')
-rw-r--r-- | tools/CIndex/CIndexDiagnostic.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/CIndex/CIndexDiagnostic.cpp b/tools/CIndex/CIndexDiagnostic.cpp index 0314a67d07..bcf066daf2 100644 --- a/tools/CIndex/CIndexDiagnostic.cpp +++ b/tools/CIndex/CIndexDiagnostic.cpp @@ -32,15 +32,15 @@ extern "C" { unsigned clang_getNumDiagnostics(CXTranslationUnit Unit) { ASTUnit *CXXUnit = static_cast<ASTUnit *>(Unit); - return CXXUnit? CXXUnit->diag_size() : 0; + return CXXUnit? CXXUnit->stored_diag_size() : 0; } CXDiagnostic clang_getDiagnostic(CXTranslationUnit Unit, unsigned Index) { ASTUnit *CXXUnit = static_cast<ASTUnit *>(Unit); - if (!CXXUnit || Index >= CXXUnit->diag_size()) + if (!CXXUnit || Index >= CXXUnit->stored_diag_size()) return 0; - return new CXStoredDiagnostic(CXXUnit->diag_begin()[Index], + return new CXStoredDiagnostic(CXXUnit->stored_diag_begin()[Index], CXXUnit->getASTContext().getLangOptions()); } |