mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-15 04:30:12 +00:00
4954e9f2d9
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@129613 91177308-0d34-0410-b5e6-96231b3b80d8
55 lines
1.4 KiB
C++
55 lines
1.4 KiB
C++
//===- 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;
|
|
const std::string& Component;
|
|
public:
|
|
explicit ClangDiagsDefsEmitter(RecordKeeper &R, const std::string& component)
|
|
: Records(R), Component(component) {}
|
|
|
|
// run - Output the .def file contents
|
|
void run(raw_ostream &OS);
|
|
};
|
|
|
|
class ClangDiagGroupsEmitter : public TableGenBackend {
|
|
RecordKeeper &Records;
|
|
public:
|
|
explicit ClangDiagGroupsEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
void run(raw_ostream &OS);
|
|
};
|
|
|
|
class ClangDiagsIndexNameEmitter : public TableGenBackend {
|
|
RecordKeeper &Records;
|
|
public:
|
|
explicit ClangDiagsIndexNameEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
void run(raw_ostream &OS);
|
|
};
|
|
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|