[lldb][Fortran] Add support for functions in TypeSystemFortran (#234285)
**Summary**
This PR adds support for functions to `TypeSystemFortran`.
Specifically allows `TypeSystemFortran` to provide information for a
function such as its arguments, including their type or how many they
are and the return type.
**Changes:**
- Added function `KIND` in `FortranType`.
- Added `FunctionType` subclass containing the function's name and
signature, its parameter types and the return type.
- Implemented `TypeSystemFortran` functions return information about
function types.
- Added unit tests to `TestTypeSystemFortran` testing the creation and
inspection function types.
**Rationale for adding function support this quickly:**
Parsing functions in `DWARFASTParser` is necessary so we can calculate
the frames, without it `frame variable` cannot work.
That being said I have added full support for them in
`TypeSystemFortran` as well, even though it is not needed for `frame
variable` to print variables, because it was straightforward, and avoids
accumulating technical debt in the future.
Related to #109119.
GitOrigin-RevId: 52247d54bb7ce5bc5e336652dde72876727903c6
5 files changed