2009-03-13 22:21:17 +00:00
|
|
|
//===- ClangDiagnosticsEmitter.h - Generate Clang diagnostics tables -*- C++ -*-
|
|
|
|
//
|
|
|
|
// The LLVM Compiler Infrastructure
|
|
|
|
//
|
|
|
|
// This file is distributed under the University of Illinois Open Source
|
|
|
|
// License. See LICENSE.TXT for details.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
//
|
|
|
|
// These tablegen backends emit Clang diagnostics tables.
|
|
|
|
//
|
|
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
|
|
|
|
#ifndef CLANGDIAGS_EMITTER_H
|
|
|
|
#define CLANGDIAGS_EMITTER_H
|
|
|
|
|
|
|
|
#include "TableGenBackend.h"
|
|
|
|
|
|
|
|
namespace llvm {
|
|
|
|
|
|
|
|
/// ClangDiagsDefsEmitter - The top-level class emits .def files containing
|
|
|
|
/// declarations of Clang diagnostics.
|
|
|
|
///
|
|
|
|
class ClangDiagsDefsEmitter : public TableGenBackend {
|
|
|
|
RecordKeeper &Records;
|
2009-03-13 22:53:41 +00:00
|
|
|
const std::string& Component;
|
2009-03-13 22:21:17 +00:00
|
|
|
public:
|
2009-03-13 22:53:41 +00:00
|
|
|
explicit ClangDiagsDefsEmitter(RecordKeeper &R, const std::string& component)
|
|
|
|
: Records(R), Component(component) {}
|
2009-03-13 22:21:17 +00:00
|
|
|
|
|
|
|
// run - Output the .def file contents
|
2009-07-03 00:10:29 +00:00
|
|
|
void run(raw_ostream &OS);
|
2009-03-13 22:21:17 +00:00
|
|
|
};
|
|
|
|
|
2009-04-15 20:02:32 +00:00
|
|
|
class ClangDiagGroupsEmitter : public TableGenBackend {
|
2009-03-18 21:16:16 +00:00
|
|
|
RecordKeeper &Records;
|
|
|
|
public:
|
2009-04-15 20:02:32 +00:00
|
|
|
explicit ClangDiagGroupsEmitter(RecordKeeper &R) : Records(R) {}
|
2009-03-18 21:16:16 +00:00
|
|
|
|
2009-07-03 00:10:29 +00:00
|
|
|
void run(raw_ostream &OS);
|
2009-03-18 21:16:16 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-03-13 22:21:17 +00:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|