Clang Sema class

Where are format strings stored in the 10,000 line Sema class?

tl;dr, I need to potentially convert the format string from UTF-16 to UTF-8 for further checking.

You could try looking for code that calls EmitFormatDiagnostic.

– HT

Thanks Herb, I’ll look into that.

Hi Marcus,

In case this is still relevant - format strings are stored in TableGen files.

For example:

def warn_header_guard : Warning<
“%0 is used as a header guard here, followed by #define of a different macro”>,

Hope this helps.