Home | History | Annotate | Download | only in diagtool

Lines Matching refs:diagtool

1 //===- DiagTool.h - Classes for defining diagtool tools -------------------===//
10 // This file implements the boilerplate for defining diagtool tools.
23 namespace diagtool {
25 class DiagTool {
29 DiagTool(llvm::StringRef toolCmd, llvm::StringRef toolDesc);
30 virtual ~DiagTool();
44 DiagTool *getTool(llvm::StringRef toolCmd);
45 void registerTool(DiagTool *tool);
51 template <typename DIAGTOOL>
54 RegisterDiagTool() { diagTools->registerTool(new DIAGTOOL()); }
57 } // end diagtool namespace
61 class CLSNAME : public diagtool::DiagTool {\
63 CLSNAME() : DiagTool(NAME, DESC) {}\
67 diagtool::RegisterDiagTool<CLSNAME> Register##CLSNAME;\