diff options
author | Alp Toker <alp@nuanti.com> | 2014-06-12 11:13:52 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-06-12 11:13:52 +0000 |
commit | 144ea43e24e6e5c7bb01df2ae51cd9159b24d433 (patch) | |
tree | 2d5c46e773a2acc383106b9a8896406bc3a92e21 /include | |
parent | 18a9b6654286356870c6c336ad9fdc6ad7599dbe (diff) | |
download | clang-144ea43e24e6e5c7bb01df2ae51cd9159b24d433.tar.gz clang-144ea43e24e6e5c7bb01df2ae51cd9159b24d433.tar.bz2 clang-144ea43e24e6e5c7bb01df2ae51cd9159b24d433.tar.xz |
DiagnosticsEngine: update severity setters to new terminology
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@210764 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index 45a337d0ce..f16c0d391f 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -544,8 +544,7 @@ public: /// /// \param Loc The source location that this change of diagnostic state should /// take affect. It can be null if we are setting the latest state. - void setDiagnosticMapping(diag::kind Diag, diag::Severity Map, - SourceLocation Loc); + void setSeverity(diag::kind Diag, diag::Severity Map, SourceLocation Loc); /// \brief Change an entire diagnostic group (e.g. "unknown-pragmas") to /// have the specified mapping. @@ -555,8 +554,8 @@ public: /// /// \param Loc The source location that this change of diagnostic state should /// take affect. It can be null if we are setting the state from command-line. - bool setDiagnosticGroupMapping(StringRef Group, diag::Severity Map, - SourceLocation Loc = SourceLocation()); + bool setSeverityForGroup(StringRef Group, diag::Severity Map, + SourceLocation Loc = SourceLocation()); /// \brief Set the warning-as-error flag for the given diagnostic group. /// @@ -576,8 +575,8 @@ public: /// /// Mainly to be used by -Wno-everything to disable all warnings but allow /// subsequent -W options to enable specific warnings. - void setMappingForAllDiagnostics(diag::Severity Map, - SourceLocation Loc = SourceLocation()); + void setSeverityForAll(diag::Severity Map, + SourceLocation Loc = SourceLocation()); bool hasErrorOccurred() const { return ErrorOccurred; } |