[Lldb-commits] [lldb] [lldb][Fortran] Added support for basic types in TypeSystemFortran (PR #223380)
Tarun Prabhu via lldb-commits
lldb-commits at lists.llvm.org
Mon Oct 19 07:52:33 PDT 2026
================
@@ -58,6 +61,253 @@ LanguageSet TypeSystemFortran::GetSupportedLanguagesForExpressions() {
return GetSupportedLanguagesForTypes();
}
+#ifndef NDEBUG
+bool TypeSystemFortran::Verify(lldb::opaque_compiler_type_t type) {
+ return !type || llvm::isa<FortranType>(static_cast<FortranType *>(type));
+}
+#endif
+
+bool TypeSystemFortran::IsFloatingPointType(opaque_compiler_type_t type) {
+ if (!type)
+ return false;
+ int kind = static_cast<FortranType *>(type)->GetKind();
+
+ if (kind == FortranType::KIND_REAL || kind == FortranType::KIND_COMPLEX)
+ return true;
----------------
tarunprabhu wrote:
nit: slightly more obvious "grouping"
```suggestion
int kind = static_cast<FortranType *>(type)->GetKind();
if (kind == FortranType::KIND_REAL || kind == FortranType::KIND_COMPLEX)
return true;
```
https://github.com/llvm/llvm-project/pull/223380
More information about the lldb-commits
mailing list