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 | e451a7e7601d25bcad758bc8efd1cdeb6579254b (patch) | |
| tree | cd59171f24cfc8bb5b68913b4ba38781ff408484 /lib/Frontend/PrintPreprocessedOutput.cpp | |
| parent | 5328ab0000298a379cf14b584e7d8be485d12363 (diff) | |
| download | clang-e451a7e7601d25bcad758bc8efd1cdeb6579254b.tar.gz clang-e451a7e7601d25bcad758bc8efd1cdeb6579254b.tar.bz2 clang-e451a7e7601d25bcad758bc8efd1cdeb6579254b.tar.xz | |
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.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210518 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Frontend/PrintPreprocessedOutput.cpp')
| -rw-r--r-- | lib/Frontend/PrintPreprocessedOutput.cpp | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/lib/Frontend/PrintPreprocessedOutput.cpp b/lib/Frontend/PrintPreprocessedOutput.cpp index 8c32c2458f..bde1fa1631 100644 --- a/lib/Frontend/PrintPreprocessedOutput.cpp +++ b/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 "; |
