mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-22 20:20:03 +00:00
04a847e706
tablegen files to the original .def preprocessor include files. This is my first TableGen backend; I don't claim that it is awesome. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66971 91177308-0d34-0410-b5e6-96231b3b80d8
36 lines
976 B
C++
36 lines
976 B
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;
|
|
public:
|
|
explicit ClangDiagsDefsEmitter(RecordKeeper &R) : Records(R) {}
|
|
|
|
// run - Output the .def file contents
|
|
void run(std::ostream &OS);
|
|
};
|
|
|
|
} // End llvm namespace
|
|
|
|
#endif
|