1//==--- DiagnosticDocs.td - Diagnostic documentation ---------------------===//
2//
3// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
4// See https://llvm.org/LICENSE.txt for license information.
5// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
6//
7//===---------------------------------------------------------------------===//
8
9def GlobalDocumentation {
10  code Intro =[{..
11  -------------------------------------------------------------------
12  NOTE: This file is automatically generated by running clang-tblgen
13  -gen-diag-docs. Do not edit this file by hand!!
14  -------------------------------------------------------------------
15
16.. Add custom CSS to output. FIXME: This should be put into <head> rather
17   than the start of <body>.
18.. raw:: html
19
20    <style>
21    table.docutils {
22      width: 1px;
23    }
24    table.docutils td {
25      border: none;
26      padding: 0 0 0 0.2em;
27      vertical-align: middle;
28      white-space: nowrap;
29      width: 1px;
30      font-family: monospace;
31    }
32    table.docutils tr + tr {
33      border-top: 0.2em solid #aaa;
34    }
35    .error {
36      font-family: monospace;
37      font-weight: bold;
38      color: #c00;
39    }
40    .warning {
41      font-family: monospace;
42      font-weight: bold;
43      color: #80a;
44    }
45    .remark {
46      font-family: monospace;
47      font-weight: bold;
48      color: #00c;
49    }
50    .diagtext {
51      font-family: monospace;
52      font-weight: bold;
53    }
54    </style>
55
56.. FIXME: rST doesn't support formatting this, so we format all <td> elements
57          as monospace font face instead.
58.. |nbsp| unicode:: 0xA0
59   :trim:
60
61.. Roles generated by clang-tblgen.
62.. role:: error
63.. role:: warning
64.. role:: remark
65.. role:: diagtext
66.. role:: placeholder(emphasis)
67
68=========================
69Diagnostic flags in Clang
70=========================
71.. contents::
72   :local:
73
74Introduction
75============
76
77This page lists the diagnostic flags currently supported by Clang.
78
79Diagnostic flags
80================
81}];
82}
83
84defvar GCCWriteStringsDocs = [{
85**Note:** enabling this warning in C will change the semantic behavior of the
86program by treating all string literals as having type ``const char *``
87instead of ``char *``. This can cause unexpected behaviors with type-sensitive
88constructs like ``_Generic``.
89}];
90