[Lldb-commits] [lldb] [lldb] Add SB API to access static constexpr member values (PR #89730)

Michael Buch via lldb-commits lldb-commits at lists.llvm.org
Tue Apr 23 03:30:19 PDT 2024


================
@@ -9074,6 +9111,21 @@ CompilerType TypeSystemClang::DeclGetFunctionArgumentType(void *opaque_decl,
   return CompilerType();
 }
 
+Scalar TypeSystemClang::DeclGetConstantValue(void *opaque_decl) {
+  clang::Decl *decl = static_cast<clang::Decl *>(opaque_decl);
+  if (clang::VarDecl *var_decl = llvm::dyn_cast<clang::VarDecl>(decl)) {
----------------
Michael137 wrote:

Minor: could follow the early-return style here

https://github.com/llvm/llvm-project/pull/89730


More information about the lldb-commits mailing list