[cfe-dev] Is there a string format class which act like DiagnosticBuilder?
Yafei Liu via cfe-dev
cfe-dev at lists.llvm.org
Mon Sep 21 04:58:12 PDT 2020
It's very convenient to define a diagnostic syntax and use operator << to
add parameters.
I'm currently doing some code generation jobs and want to use the grammar
which is used in defining diagnostic errors, some sort like this:
StringStream << "class '%0' : %select{public|private}1 '%2'" << "Foo" << 0
<< "Bar" << std::endl;
Is there any code to do this?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20200921/821601d3/attachment-0001.html>
More information about the cfe-dev
mailing list