diff options
author | Gabor Horvath <xazax.hun@gmail.com> | 2017-11-14 12:14:49 +0000 |
---|---|---|
committer | Gabor Horvath <xazax.hun@gmail.com> | 2017-11-14 12:14:49 +0000 |
commit | 328d3afc3b41eb0922d9b4a6d5aaa99753df8e78 (patch) | |
tree | e1252dc8d7882ea4b4ed25ed050c70703a4a55de /clang/lib/Basic | |
parent | 848581cadb3f5cd0229cf580c5cb56f679900d3d (diff) | |
download | bcm5719-llvm-328d3afc3b41eb0922d9b4a6d5aaa99753df8e78.tar.gz bcm5719-llvm-328d3afc3b41eb0922d9b4a6d5aaa99753df8e78.zip |
Make DiagnosticIDs::getAllDiagnostics static. NFC.
Patch by: Andras Leitereg!
Differential Revision: https://reviews.llvm.org/D39372
llvm-svn: 318150
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r-- | clang/lib/Basic/Diagnostic.cpp | 2 | ||||
-rw-r--r-- | clang/lib/Basic/DiagnosticIDs.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp index 47f6a139b15..640b42c1ca2 100644 --- a/clang/lib/Basic/Diagnostic.cpp +++ b/clang/lib/Basic/Diagnostic.cpp @@ -364,7 +364,7 @@ void DiagnosticsEngine::setSeverityForAll(diag::Flavor Flavor, SourceLocation Loc) { // Get all the diagnostics. SmallVector<diag::kind, 64> AllDiags; - Diags->getAllDiagnostics(Flavor, AllDiags); + DiagnosticIDs::getAllDiagnostics(Flavor, AllDiags); // Set the mapping. for (diag::kind Diag : AllDiags) diff --git a/clang/lib/Basic/DiagnosticIDs.cpp b/clang/lib/Basic/DiagnosticIDs.cpp index 4f59e550ba0..5c53f35aa68 100644 --- a/clang/lib/Basic/DiagnosticIDs.cpp +++ b/clang/lib/Basic/DiagnosticIDs.cpp @@ -583,7 +583,7 @@ DiagnosticIDs::getDiagnosticsInGroup(diag::Flavor Flavor, StringRef Group, } void DiagnosticIDs::getAllDiagnostics(diag::Flavor Flavor, - SmallVectorImpl<diag::kind> &Diags) const { + SmallVectorImpl<diag::kind> &Diags) { for (unsigned i = 0; i != StaticDiagInfoSize; ++i) if (StaticDiagInfo[i].getFlavor() == Flavor) Diags.push_back(StaticDiagInfo[i].DiagID); |