This is an archive of the discontinued LLVM Phabricator instance.

Fix ObjC types Class and id being defined in C and C++ expressions.
AbandonedPublic

Authored by paulherman on Jul 31 2015, 11:51 AM.

Details

Summary

This allows using "Class" and "id" as identifiers in C and C++ expressions. This works only when the language of the expression to be evaluated is explicitly specified as C or C++. As future work, should we try to determine the language from the target and assume that C++ and ObjC runtimes are not available for most languages (i.e. go, rust, D, etc)?

Diff Detail

Event Timeline

paulherman retitled this revision from to Fix ObjC types Class and id being defined in C and C++ expressions..
paulherman updated this object.
paulherman added a subscriber: lldb-commits.

Update ClangASTSource constructor.

paulherman updated this revision to Diff 31365.Aug 5 2015, 10:02 AM
  • Guess the language of the expression based on the execution context.
  • Tests for language guessing.
paulherman abandoned this revision.Aug 5 2015, 4:21 PM