diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-10 09:31:37 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-10 09:31:37 +0000 |
commit | c726c367f4fe33e4671d8695bfcc1b7b1bb0d112 (patch) | |
tree | c1b797ecdd2a08c38e9047dd62464a155ad9f5a0 /clang/lib/Frontend/PrintPreprocessedOutput.cpp | |
parent | 48eccb7fb3ff8b38e3b9e4045588f16829d86a4f (diff) | |
download | bcm5719-llvm-c726c367f4fe33e4671d8695bfcc1b7b1bb0d112.tar.gz bcm5719-llvm-c726c367f4fe33e4671d8695bfcc1b7b1bb0d112.zip |
Improve diagnostic mapping terminology
Diagnostic mappings are used to calculate the final severity of diagnostic
instances.
Detangle the implementation to reflect the terminology used in documentation
and bindings.
No change in functionality.
llvm-svn: 210518
Diffstat (limited to 'clang/lib/Frontend/PrintPreprocessedOutput.cpp')
-rw-r--r-- | clang/lib/Frontend/PrintPreprocessedOutput.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/clang/lib/Frontend/PrintPreprocessedOutput.cpp b/clang/lib/Frontend/PrintPreprocessedOutput.cpp index 8c32c2458fa..bde1fa16314 100644 --- a/clang/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/clang/lib/Frontend/PrintPreprocessedOutput.cpp @@ -139,7 +139,7 @@ public: void PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) override; void PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) override; void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, - diag::Mapping Map, StringRef Str) override; + diag::Severity Map, StringRef Str) override; void PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) override; void PragmaWarningPush(SourceLocation Loc, int Level) override; @@ -439,9 +439,10 @@ PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) { setEmittedDirectiveOnThisLine(); } -void PrintPPOutputPPCallbacks:: -PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, - diag::Mapping Map, StringRef Str) { +void PrintPPOutputPPCallbacks::PragmaDiagnostic(SourceLocation Loc, + StringRef Namespace, + diag::Severity Map, + StringRef Str) { startNewLineIfNeeded(); MoveToLine(Loc); OS << "#pragma " << Namespace << " diagnostic "; |