[cfe-dev] Tips on implementing n3972 (std::source_context)?
Jim Porter
jvp4846 at g.rit.edu
Thu Sep 25 20:32:53 PDT 2014
I'm interested in implementing n3972[1] (std::source_context), but
before I start delving too deep into it, I wanted to see if others had
thought any about it. I do have some experience hacking on clang, but
only in the parser (and it was years ago, anyway).
The paper suggests implementing std::source_context as a pointer to some
implementation-defined static object to make copying faster. Since it's
a literal type, I assume this means the static objects will have to be
generated during compilation, but that's a part of clang I haven't look
at at all.
There's also the question of getting the SourceLocation of the
invocation, but that seems more tractable for me. Still, if anyone has
ideas about how to implement this, I'd be happy to hear them.
- Jim
[1] http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n3972.pdf
More information about the cfe-dev
mailing list