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



_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to