[Lldb-commits] [lldb] [lldb][DWARFASTParserClang] Fix handle non-type template parameters in MakeAPValue (PR #186629)
Greg Clayton via lldb-commits
lldb-commits at lists.llvm.org
Mon Mar 16 10:47:34 PDT 2026
================
@@ -2015,21 +2015,66 @@ static std::optional<clang::APValue> MakeAPValue(const clang::ASTContext &ast,
return std::nullopt;
bool is_signed = false;
- const bool is_integral = clang_type.IsIntegerOrEnumerationType(is_signed);
+ const bool is_integral = clang_type.IsIntegerOrEnumerationType(is_signed) ||
+ clang_type.IsPointerOrReferenceType() ||
+ clang_type.IsMemberFunctionPointerType() ||
+ clang_type.IsMemberDataPointerType() ||
+ clang_type.IsNullPtrType();
----------------
clayborg wrote:
Does a template value type that uses nullptr show up just like the compiler emits it? It would be great to add tests for the extra things you added support for:
- member function pointer types
- nullptr
- pointer or reference
https://github.com/llvm/llvm-project/pull/186629
More information about the lldb-commits
mailing list