aboutsummaryrefslogtreecommitdiff
path: root/lib/Basic/Diagnostic.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-04-16 05:44:38 +0000
committerChris Lattner <sabre@nondot.org>2009-04-16 05:44:38 +0000
commitd51d74a3e89c5e5fc9bfd2814996a5feab6dc932 (patch)
tree92eabb712d4f05637e4fc598b8322c5db87f0837 /lib/Basic/Diagnostic.cpp
parent3cbc3cf55059f50ade9d47a4b222bfbe047638d2 (diff)
implement framework for -fdiagnostics-show-option, but tblgen isn't
passing down the right info yet. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69268 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Basic/Diagnostic.cpp')
-rw-r--r--lib/Basic/Diagnostic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Basic/Diagnostic.cpp b/lib/Basic/Diagnostic.cpp
index 31f56e99bf..16cb111e2c 100644
--- a/lib/Basic/Diagnostic.cpp
+++ b/lib/Basic/Diagnostic.cpp
@@ -65,6 +65,13 @@ static unsigned GetDefaultDiagMapping(unsigned DiagID) {
return diag::MAP_FATAL;
}
+/// getWarningOptionForDiag - Return the lowest-level warning option that
+/// enables the specified diagnostic. If there is no -Wfoo flag that controls
+/// the diagnostic, this returns null.
+const char *Diagnostic::getWarningOptionForDiag(unsigned DiagID) {
+ return 0; //"Wfoo";
+}
+
// Diagnostic classes.
enum {