[Lldb-commits] [PATCH] D62797: [Expression] Add PersistentExpressionState::SetCompilerTypeFromPersistentDecl

Saleem Abdulrasool via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Sun Jun 2 17:28:19 PDT 2019


compnerd added inline comments.


================
Comment at: source/Commands/CommandObjectMemory.cpp:479
+            if (persistent_vars->SetCompilerTypeFromPersistentDecl(
+                    lookup_type_name, clang_ast_type))
+              break;
----------------
Why is the parameter `clang_ast_type` and not based on `persistent_vars->getKind()`?


================
Comment at: source/Plugins/ExpressionParser/Clang/ClangPersistentVariables.cpp:58
+    ConstString type_name, CompilerType &compiler_type) {
+  if (clang::TypeDecl *tdecl = llvm::dyn_cast_or_null<clang::TypeDecl>(
+          GetPersistentDecl(type_name))) {
----------------
NIT: `decl` would be a nicer name


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D62797/new/

https://reviews.llvm.org/D62797





More information about the lldb-commits mailing list