summaryrefslogtreecommitdiffstats
path: root/clang/lib/Basic
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
commit22cb818913205f27f76a88fbb690806eb90a125f (patch)
treee333eedf2e9c103dcb0682cdecc9cf8693ada47e /clang/lib/Basic
parent805ab5a74654b3602fc95fe7b1a5adc5aecb82c7 (diff)
downloadbcm5719-llvm-22cb818913205f27f76a88fbb690806eb90a125f.tar.gz
bcm5719-llvm-22cb818913205f27f76a88fbb690806eb90a125f.zip
implement framework for -fdiagnostics-show-option, but tblgen isn't
passing down the right info yet. llvm-svn: 69268
Diffstat (limited to 'clang/lib/Basic')
-rw-r--r--clang/lib/Basic/Diagnostic.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/clang/lib/Basic/Diagnostic.cpp b/clang/lib/Basic/Diagnostic.cpp
index 31f56e99bf4..16cb111e2c2 100644
--- a/clang/lib/Basic/Diagnostic.cpp
+++ b/clang/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 {
OpenPOWER on IntegriCloud