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/Serialization/ASTWriter.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/Serialization/ASTWriter.cpp')
| -rw-r--r-- | lib/Serialization/ASTWriter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Serialization/ASTWriter.cpp b/lib/Serialization/ASTWriter.cpp index 35da82c6e4..cbb6401e2e 100644 --- a/lib/Serialization/ASTWriter.cpp +++ b/lib/Serialization/ASTWriter.cpp @@ -2542,7 +2542,7 @@ void ASTWriter::WritePragmaDiagnosticMappings(const DiagnosticsEngine &Diag, I = point.State->begin(), E = point.State->end(); I != E; ++I) { if (I->second.isPragma()) { Record.push_back(I->first); - Record.push_back(I->second.getMapping()); + Record.push_back(I->second.getSeverity()); } } Record.push_back(-1); // mark the end of the diag/map pairs for this |
