[lldb-dev] `ClangASTSource::IgnoreName` C++ false positives

Aleksandr Urakov via lldb-dev lldb-dev at lists.llvm.org
Wed Oct 24 09:14:31 PDT 2018


Hi all!

There are two hardcoded names to ignore in the
`ClangASTSource::IgnoreName` function, "Class" and "id", they are valid
names for C++. It seems that they were added for the Objective-C case. But
the problem is that when they are in locals they are blocking expressions
evaluation.

For example for the next code:

int main() {
  int x = 5;
  int id = 7;
  int y = 8;
  return 0;
}

if you'll break on `return 0` and will try to `print x`, then you'll get a
error like `no member named 'id' in namespace '$__lldb_local_vars'`.

Do you have any ideas, how can we fix it?

Regards,
Alex
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20181024/5726eec9/attachment.html>


More information about the lldb-dev mailing list