-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add a mode to clang-tblgen to generate reference documentation for wa…
…rning 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. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@281192 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
10 changed files
with
11,061 additions
and
4 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,82 @@ | ||
//==--- DiagnosticDocs.td - Diagnostic documentation ---------------------===// | ||
// | ||
// The LLVM Compiler Infrastructure | ||
// | ||
// This file is distributed under the University of Illinois Open Source | ||
// License. See LICENSE.TXT for details. | ||
// | ||
//===---------------------------------------------------------------------===// | ||
|
||
def GlobalDocumentation { | ||
code Intro =[{.. | ||
------------------------------------------------------------------- | ||
NOTE: This file is automatically generated by running clang-tblgen | ||
-gen-diag-docs. Do not edit this file by hand!! | ||
------------------------------------------------------------------- | ||
|
||
.. Add custom CSS to output. FIXME: This should be put into <head> rather | ||
than the start of <body>. | ||
.. raw:: html | ||
|
||
<style> | ||
table.docutils { | ||
width: 1px; | ||
} | ||
table.docutils td { | ||
border: none; | ||
padding: 0; | ||
vertical-align: middle; | ||
white-space: nowrap; | ||
width: 1px; | ||
} | ||
table.docutils tr + tr { | ||
border-top: 0.2em solid #aaa; | ||
} | ||
.error { | ||
font-family: monospace; | ||
font-weight: bold; | ||
color: #c70; | ||
} | ||
.warning { | ||
font-family: monospace; | ||
font-weight: bold; | ||
color: #c70; | ||
} | ||
.remark { | ||
font-family: monospace; | ||
font-weight: bold; | ||
color: #00c; | ||
} | ||
.diagtext { | ||
font-family: monospace; | ||
font-weight: bold; | ||
} | ||
</style> | ||
|
||
.. FIXME: Format this as .diagtext. rST appears to not support this. :( | ||
.. |nbsp| unicode:: 0xA0 | ||
:trim: | ||
|
||
.. Roles generated by clang-tblgen. | ||
.. role:: error | ||
.. role:: warning | ||
.. role:: remark | ||
.. role:: diagtext | ||
.. role:: placeholder(emphasis) | ||
|
||
========================= | ||
Diagnostic flags in Clang | ||
========================= | ||
.. contents:: | ||
:local: | ||
|
||
Introduction | ||
============ | ||
|
||
This page lists the diagnostic flags currently supported by Clang. | ||
|
||
Diagnostic flags | ||
================ | ||
}]; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.