[PATCH] D44842: Add Parameters to DW_AT_name Attribute of Template Variables
Jim Ingham via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Apr 3 10:42:58 PDT 2018
jingham added a comment.
Apparently this makes a global variable, so "frame var" wouldn't show it by default. What does "frame var -g" show?
We would also need to get:
(lldb) frame var -g crazy
or something like it to work. "frame var" has its own parser to support "->" and ".". That doesn't currently work with:
(lldb) frame var -g crazy<int>
error: unexpected char '<' encountered after "crazy<int>" in "<int>"
so for that part to work, either the name lookup must work w/o the <int> or frame var's parser must be updated to cope with this (and of course with any arbitrarily complex type that could get substituted in there). That's likely a non-trivial bit of work.
I wonder if expr is failing because this is a C++14 extension, lldb sets CPlusPlus11 to true in the LangOpts for the compiler it makes, but not CPlusPlus14.
Repository:
rC Clang
https://reviews.llvm.org/D44842
More information about the cfe-commits
mailing list