<html><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Hi Marcus,<div class=""><br class=""></div><div class="">In case this is still relevant - format strings are stored in TableGen files.</div><div class=""><br class=""></div><div class="">For example:</div><div class="">include/clang/Basic/DiagnosticLexKinds.td</div><div class=""><br class=""></div><div class="">…</div><div class=""><div class="">def warn_header_guard : Warning<</div><div class="">  "%0 is used as a header guard here, followed by #define of a different macro">,</div><div class="">  InGroup<DiagGroup<"header-guard">>;</div><div class="">…</div><div class=""><br class=""></div><div class="">Hope this helps.</div><div class=""><br class=""></div><div class="">Jan</div><div><br class=""><blockquote type="cite" class=""><div class="">On Dec 17, 2018, at 6:14 PM, Marcus Johnson via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html; charset=us-ascii" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; line-break: after-white-space;" class="">Thanks Herb, I'll look into that.<div class=""><div class=""><br class=""><blockquote type="cite" class=""><div class="">On Dec 17, 2018, at 10:47 AM, Hubert Tong <<a href="mailto:hubert.reinterpretcast@gmail.com" class="">hubert.reinterpretcast@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div dir="ltr" class=""><div dir="ltr" class="">You could try looking for code that calls EmitFormatDiagnostic.<br class=""></div><div dir="ltr" class=""><br class=""></div><div class="">-- HT<br class=""></div></div><br class=""><div class="gmail_quote"><div dir="ltr" class="">On Mon, Dec 17, 2018 at 6:54 AM Marcus Johnson via cfe-dev <<a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a>> wrote:<br class=""></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr" class=""><div class="gmail_default" style="font-size:large">Where are format strings stored in the 10,000 line Sema class?</div><div class="gmail_default" style="font-size:large"><br class=""></div><div class="gmail_default" style="font-size:large">tl;dr, I need to potentially convert the format string from UTF-16 to UTF-8 for further checking.</div></div>
_______________________________________________<br class="">
cfe-dev mailing list<br class="">
<a href="mailto:cfe-dev@lists.llvm.org" target="_blank" class="">cfe-dev@lists.llvm.org</a><br class="">
<a href="http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev" rel="noreferrer" target="_blank" class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev</a><br class="">
</blockquote></div>
</div></blockquote></div><br class=""></div></div>_______________________________________________<br class="">cfe-dev mailing list<br class=""><a href="mailto:cfe-dev@lists.llvm.org" class="">cfe-dev@lists.llvm.org</a><br class="">http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-dev<br class=""></div></blockquote></div><br class=""></div></body></html>