[PATCH] D76801: [AST] Print a<b<c>> without extra spaces in C++11 or later.
Pavel Labath via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Apr 27 07:29:33 PDT 2020
labath added a comment.
In D76801#1997451 <https://reviews.llvm.org/D76801#1997451>, @dblaikie wrote:
> Yeah, points all taken - as for this actual issue... I'm kind of inclined to say "hey, our template names already diverge somewhat - and this divergence is in the realm of acceptable by gdb (without an index) so... *thumbs up*/let's stick with it"
Another interesting aspect here is that the DW_AT_name outputs depend on the c++ standard versions used. This means we could get mismatches even with the same compiler if some compile units use `-std=c++98`, and others `-std>=c++11` (hardly a recommended practice but it does work if one knows what he is doing). Compatibility with another compiler is one thing, but maybe self-compatibility is more important (and easier to achieve) ?
One way to achieve that would be by printing all type names in c++98 mode, which (IIUC) is the same thing as what the windows folks are requesting..
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D76801/new/
https://reviews.llvm.org/D76801
More information about the cfe-commits
mailing list