From: Chris Lattner Date: Mon, 14 Feb 2011 06:42:50 +0000 (+0000) Subject: fix two broken links and some out of date writing, PR9174 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc2ac1ea54f9235b6b776799b4970ea4c4bee5a9;p=clang fix two broken links and some out of date writing, PR9174 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@125484 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/docs/InternalsManual.html b/docs/InternalsManual.html index 596c1b2f12..813015ecf6 100644 --- a/docs/InternalsManual.html +++ b/docs/InternalsManual.html @@ -151,15 +151,14 @@ diagnostic :).

pieces, this section describes them and talks about best practices when adding a new diagnostic.

- -

The Diagnostic*Kinds.def files

- + +

The Diagnostic*Kinds.td files

+

Diagnostics are created by adding an entry to one of the -clang/Basic/Diagnostic*Kinds.def files, depending on what library will -be using it. This file encodes the unique ID of the -diagnostic (as an enum, the first argument), the severity of the diagnostic -(second argument) and the English translation + format string.

+clang/Basic/Diagnostic*Kinds.td files, depending on what library will +be using it. From this file, tblgen generates the unique ID of the diagnostic, +the severity of the diagnostic and the English translation + format string.

There is little sanity with the naming of the unique ID's right now. Some start with err_, warn_, ext_ to encode the severity into the name. Since the @@ -243,7 +242,7 @@ are some simple format strings: