Index: cfe/trunk/include/clang/Basic/DiagnosticIDs.h =================================================================== --- cfe/trunk/include/clang/Basic/DiagnosticIDs.h +++ cfe/trunk/include/clang/Basic/DiagnosticIDs.h @@ -296,8 +296,8 @@ SmallVectorImpl &Diags) const; /// \brief Get the set of all diagnostic IDs. - void getAllDiagnostics(diag::Flavor Flavor, - SmallVectorImpl &Diags) const; + static void getAllDiagnostics(diag::Flavor Flavor, + SmallVectorImpl &Diags); /// \brief Get the diagnostic option with the closest edit distance to the /// given group name. Index: cfe/trunk/lib/Basic/Diagnostic.cpp =================================================================== --- cfe/trunk/lib/Basic/Diagnostic.cpp +++ cfe/trunk/lib/Basic/Diagnostic.cpp @@ -364,7 +364,7 @@ SourceLocation Loc) { // Get all the diagnostics. SmallVector AllDiags; - Diags->getAllDiagnostics(Flavor, AllDiags); + DiagnosticIDs::getAllDiagnostics(Flavor, AllDiags); // Set the mapping. for (diag::kind Diag : AllDiags) Index: cfe/trunk/lib/Basic/DiagnosticIDs.cpp =================================================================== --- cfe/trunk/lib/Basic/DiagnosticIDs.cpp +++ cfe/trunk/lib/Basic/DiagnosticIDs.cpp @@ -583,7 +583,7 @@ } void DiagnosticIDs::getAllDiagnostics(diag::Flavor Flavor, - SmallVectorImpl &Diags) const { + SmallVectorImpl &Diags) { for (unsigned i = 0; i != StaticDiagInfoSize; ++i) if (StaticDiagInfo[i].getFlavor() == Flavor) Diags.push_back(StaticDiagInfo[i].DiagID);