[PATCH] D46740: [Clang Tablegen][RFC] Allow Early Textual Substitutions in `Diagnostic` messages.

Eric Fiselier via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri May 18 14:16:12 PDT 2018


EricWF marked 2 inline comments as done.
EricWF added inline comments.


================
Comment at: utils/TableGen/ClangDiagnosticsEmitter.cpp:514
+  std::vector<Record *> Diags = Records.getAllDerivedDefinitions("Diagnostic");
+  llvm::for_each(Diags, [&](Record *R) { substituteDiagText(R, SubsMap); });
 
----------------
rjmccall wrote:
> I see why this has to be done separately, I think, but it should at least go in a helper function.
> 
> Also, please check for substitution-name conflicts.
@rjmccall By substitution name conflicts do you mean substitution names which conflict with diagnostic names?


https://reviews.llvm.org/D46740





More information about the cfe-commits mailing list