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
This commit is contained in:
@@ -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 ";
|
||||
|
||||
Reference in New Issue
Block a user