[cfe-dev] Adding new Diagnostics to Clang ?
Eli Friedman
eli.friedman at gmail.com
Sun Mar 7 13:59:27 PST 2010
On Sun, Mar 7, 2010 at 1:36 PM, kalyan ponnala <ponnala.kalyan at gmail.com> wrote:
> Hi,
>
> Can someone please tell me what the purpose of the following files:
>
> "*.inc"
> "*.def"
> "*.td"
>
> Additionally, how are these files used within the Clang infrastructure?
> I am trying to dig into the Diagnostics inside Clang. I found out that
> DiagnosticKinds.def file is used to add an entry for some Diagnostics.
That's outdated; .def files are no longer used for diagnostics.
.inc files are generated; don't modify them directly.
I think you want Diagnostic*Kinds.td; the diagnostics are split
depending on where they are used.
-Eli
More information about the cfe-dev
mailing list