From 18703d41f027e89cc0554e5395cae9a0f27e4b5b Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Mon, 14 Feb 2011 06:42:50 +0000 Subject: [PATCH] fix two broken links and some out of date writing, PR9174 llvm-svn: 125484 --- clang/docs/InternalsManual.html | 23 +++++++++++------------ 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/clang/docs/InternalsManual.html b/clang/docs/InternalsManual.html index 596c1b2f1243..813015ecf659 100644 --- a/clang/docs/InternalsManual.html +++ b/clang/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: