#include "DiagTool.h"
#include "DiagnosticNames.h"
#include "clang/Basic/LLVM.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Frontend/TextDiagnosticBuffer.h"
#include "clang/Frontend/TextDiagnosticPrinter.h"
#include "clang/Frontend/Utils.h"
#include "llvm/Support/TargetSelect.h"
DEF_DIAGTOOL(…)
usingnamespaceclang;
usingnamespacediagtool;
namespace {
struct PrettyDiag { … };
}
static void printUsage() { … }
static char getCharForLevel(DiagnosticsEngine::Level Level) { … }
static IntrusiveRefCntPtr<DiagnosticsEngine>
createDiagnostics(unsigned int argc, char **argv) { … }
int ShowEnabledWarnings::run(unsigned int argc, char **argv, raw_ostream &Out) { … }