[Lldb-commits] [PATCH] D43471: Handle typeof() expressions

Pavel Labath via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Feb 19 09:24:58 PST 2018

labath added a comment.

Seems straight-forward enough, but technically Jim is the owner of the expression evaluator these days, so I'll leave the honours to him.

Comment at: packages/Python/lldbsuite/test/expression_command/test/TestExprs.py:270
+        # output: (typeof (i)) $0 = 1
+        self.expect("expression p int i; __typeof__(i) j = 1; j",
+                    substrs=['(typeof (i)) $',
Are you sure this command is actually correct? The "p" here seems odd...

Comment at: source/Symbol/ClangASTContext.cpp:5264
-  case clang::Type::TypeOfExpr:
-  case clang::Type::TypeOf:
   case clang::Type::Decltype:
   case clang::Type::TemplateSpecialization:
I'm guessing this means decltype doesn't work either ?


More information about the lldb-commits mailing list