[Lldb-commits] [lldb] [lldb][Fortran] Added support for basic types in TypeSystemFortran (PR #223380)

Iasonas Karaprodromidis via lldb-commits lldb-commits at lists.llvm.org
Fri Sep 18 06:16:57 PDT 2026


================
@@ -58,6 +61,210 @@ 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) {
----------------
Iasonaskrpr wrote:

I definitely forgot to check if the type is null, but GetKind will be part of the base class for all subsequent types. All functions in TypeSystem will be called by CompilerType which has access to both the type and the TypeSystem associated with it, so I can't imagine there is a way to call a function from TypeSystemFortran with a Clang type for example. I can always add an isa check just to be 100% sure though if you think it is a good idea, although I don't see Clang doing it.

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


More information about the lldb-commits mailing list