diff options
author | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-12 05:58:29 +0000 |
---|---|---|
committer | Richard Smith <richard-llvm@metafoo.co.uk> | 2016-09-12 05:58:29 +0000 |
commit | b6a3b4ba61383774dae692efb5767ffdb23ac36e (patch) | |
tree | 383addfc86218c1db4cf27ad567fd985283d6a6c /clang/utils/TableGen/TableGen.cpp | |
parent | 4f730dc750ab2120d8ca28728c73021bd159ac05 (diff) | |
download | bcm5719-llvm-b6a3b4ba61383774dae692efb5767ffdb23ac36e.tar.gz bcm5719-llvm-b6a3b4ba61383774dae692efb5767ffdb23ac36e.zip |
Add a mode to clang-tblgen to generate reference documentation for warning and
remark flags. For now I'm checking in a copy of the built documentation, but we
can replace this with a placeholder (as we do for the attributes reference
documentation) once we enable building this server-side.
llvm-svn: 281192
Diffstat (limited to 'clang/utils/TableGen/TableGen.cpp')
-rw-r--r-- | clang/utils/TableGen/TableGen.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/clang/utils/TableGen/TableGen.cpp b/clang/utils/TableGen/TableGen.cpp index ef6ad3ac6c1..9aa0c495ce6 100644 --- a/clang/utils/TableGen/TableGen.cpp +++ b/clang/utils/TableGen/TableGen.cpp @@ -52,7 +52,8 @@ enum ActionType { GenArmNeon, GenArmNeonSema, GenArmNeonTest, - GenAttrDocs + GenAttrDocs, + GenDiagDocs }; namespace { @@ -133,6 +134,8 @@ cl::opt<ActionType> Action( "Generate ARM NEON tests for clang"), clEnumValN(GenAttrDocs, "gen-attr-docs", "Generate attribute documentation"), + clEnumValN(GenDiagDocs, "gen-diag-docs", + "Generate attribute documentation"), clEnumValEnd)); cl::opt<std::string> @@ -233,6 +236,9 @@ bool ClangTableGenMain(raw_ostream &OS, RecordKeeper &Records) { case GenAttrDocs: EmitClangAttrDocs(Records, OS); break; + case GenDiagDocs: + EmitClangDiagDocs(Records, OS); + break; } return false; |