diff options
author | Alp Toker <alp@nuanti.com> | 2014-01-26 05:07:02 +0000 |
---|---|---|
committer | Alp Toker <alp@nuanti.com> | 2014-01-26 05:07:02 +0000 |
commit | 9a85eb6cbc966636b60b207cf693ab4220594a91 (patch) | |
tree | c00ac02fcce7fe13bfc20c7c97103107c94eb861 /include/clang/Basic/Diagnostic.h | |
parent | 7e392d3b15f5c5d1e73c46ed11812f53cdfd18b1 (diff) | |
download | clang-9a85eb6cbc966636b60b207cf693ab4220594a91.tar.gz clang-9a85eb6cbc966636b60b207cf693ab4220594a91.tar.bz2 clang-9a85eb6cbc966636b60b207cf693ab4220594a91.tar.xz |
Remove flawed diagnostic mapping functions
These haven't been usable since the early return was accidentally removed some
years ago causing all cases to fall through to the !Enabled condition.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@200123 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/clang/Basic/Diagnostic.h')
-rw-r--r-- | include/clang/Basic/Diagnostic.h | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/include/clang/Basic/Diagnostic.h b/include/clang/Basic/Diagnostic.h index c04d2fd9b7..ef30c474bc 100644 --- a/include/clang/Basic/Diagnostic.h +++ b/include/clang/Basic/Diagnostic.h @@ -546,11 +546,6 @@ public: bool setDiagnosticGroupMapping(StringRef Group, diag::Mapping Map, SourceLocation Loc = SourceLocation()); - /// \brief Set the warning-as-error flag for the given diagnostic. - /// - /// This function always only operates on the current diagnostic state. - void setDiagnosticWarningAsError(diag::kind Diag, bool Enabled); - /// \brief Set the warning-as-error flag for the given diagnostic group. /// /// This function always only operates on the current diagnostic state. @@ -558,11 +553,6 @@ public: /// \returns True if the given group is unknown, false otherwise. bool setDiagnosticGroupWarningAsError(StringRef Group, bool Enabled); - /// \brief Set the error-as-fatal flag for the given diagnostic. - /// - /// This function always only operates on the current diagnostic state. - void setDiagnosticErrorAsFatal(diag::kind Diag, bool Enabled); - /// \brief Set the error-as-fatal flag for the given diagnostic group. /// /// This function always only operates on the current diagnostic state. |