[cfe-dev] Place for shared diagnostic utility function?
David Robins
llvm at davidrobins.net
Wed Aug 15 21:34:41 PDT 2012
Clang style question: Now that many places that used to be
{struct|class} in DiagnosticSemaKinds.td are {struct|interface|class},
I've been writing short static getXDiagFromTagKind functions to return
the diag index given a TTK value. There are now 3 sema and 1 ast file
that require such a function; is there a good place to share it, or is
it preferred to include appropriate copies near their use for locality?
More information about the cfe-dev
mailing list