diff options
author | Ben Langmuir <blangmuir@apple.com> | 2014-04-29 16:25:26 +0000 |
---|---|---|
committer | Ben Langmuir <blangmuir@apple.com> | 2014-04-29 16:25:26 +0000 |
commit | b92de02f1744572d0a07df099da909f3204c2404 (patch) | |
tree | adaed27c4d892e01d9ba812d0f5cf6f973e469fd /clang/lib/Frontend/FrontendActions.cpp | |
parent | f562582d15bbc79de02ebf1ebf83e0fd58504e3f (diff) | |
download | bcm5719-llvm-b92de02f1744572d0a07df099da909f3204c2404.tar.gz bcm5719-llvm-b92de02f1744572d0a07df099da909f3204c2404.zip |
Reapply r207477 and r207479 without cyclic dependency
Fixed by moving ProcessWarningOptions from Frontend into Basic. All of
the dependencies for ProcessWarningOptions were already in Basic, so
this was a small change.
llvm-svn: 207549
Diffstat (limited to 'clang/lib/Frontend/FrontendActions.cpp')
-rw-r--r-- | clang/lib/Frontend/FrontendActions.cpp | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/clang/lib/Frontend/FrontendActions.cpp b/clang/lib/Frontend/FrontendActions.cpp index 3d65ae32c01..a8df7fd1cb8 100644 --- a/clang/lib/Frontend/FrontendActions.cpp +++ b/clang/lib/Frontend/FrontendActions.cpp @@ -459,6 +459,25 @@ namespace { return false; } + virtual bool + ReadDiagnosticOptions(IntrusiveRefCntPtr<DiagnosticOptions> DiagOpts, + bool Complain) override { + Out.indent(2) << "Diagnostic options:\n"; +#define DIAGOPT(Name, Bits, Default) DUMP_BOOLEAN(DiagOpts->Name, #Name); +#define ENUM_DIAGOPT(Name, Type, Bits, Default) \ + Out.indent(4) << #Name << ": " << DiagOpts->get##Name() << "\n"; +#define VALUE_DIAGOPT(Name, Bits, Default) \ + Out.indent(4) << #Name << ": " << DiagOpts->Name << "\n"; +#include "clang/Basic/DiagnosticOptions.def" + + Out.indent(4) << "Warning options:\n"; + for (const std::string &Warning : DiagOpts->Warnings) { + Out.indent(6) << "-W" << Warning << "\n"; + } + + return false; + } + bool ReadHeaderSearchOptions(const HeaderSearchOptions &HSOpts, bool Complain) override { Out.indent(2) << "Header search options:\n"; |