2009-03-13 23:21:17 +01: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 23:53:41 +01:00
|
|
|
const std::string& Component;
|
2009-03-13 23:21:17 +01:00
|
|
|
public:
|
2009-03-13 23:53:41 +01:00
|
|
|
explicit ClangDiagsDefsEmitter(RecordKeeper &R, const std::string& component)
|
|
|
|
: Records(R), Component(component) {}
|
2009-03-13 23:21:17 +01:00
|
|
|
|
|
|
|
// run - Output the .def file contents
|
2009-07-03 02:10:29 +02:00
|
|
|
void run(raw_ostream &OS);
|
2009-03-13 23:21:17 +01:00
|
|
|
};
|
|
|
|
|
2009-04-15 22:02:32 +02:00
|
|
|
class ClangDiagGroupsEmitter : public TableGenBackend {
|
2009-03-18 22:16:16 +01:00
|
|
|
RecordKeeper &Records;
|
|
|
|
public:
|
2009-04-15 22:02:32 +02:00
|
|
|
explicit ClangDiagGroupsEmitter(RecordKeeper &R) : Records(R) {}
|
2009-03-18 22:16:16 +01:00
|
|
|
|
2009-07-03 02:10:29 +02:00
|
|
|
void run(raw_ostream &OS);
|
2009-03-18 22:16:16 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
2009-03-13 23:21:17 +01:00
|
|
|
} // End llvm namespace
|
|
|
|
|
|
|
|
#endif
|