Skip to content

castdump:funcproto type & computed enum value - #676

Merged
xushiwei merged 1 commit into
xgo-dev:mainfrom
luoliwoshang:xtool/ast/funcproto
Aug 7, 2024
Merged

castdump:funcproto type & computed enum value#676
xushiwei merged 1 commit into
xgo-dev:mainfrom
luoliwoshang:xtool/ast/funcproto

Conversation

@luoliwoshang

Copy link
Copy Markdown
Contributor
 ClassDecl: INIReader(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:42:7)
   <ComplexType|Record>: INIReader
      CXXAccessSpecifier:  public(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:43:3)
      CXXConstructor: INIReader (Symbol: __ZN9INIReaderC1ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:46:22)
      <ComplexType|FunctionProto>: void (const std::string &)
         <BuiltinType|Void>: void
         <ComplexType|LValueReference>: const std::string &
         attribute(visibility): default
         ParmDecl: filename(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:46:51)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:46:43)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
      CXXConstructor: INIReader (Symbol: __ZN9INIReaderC1EPKcm)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:50:22)
      <ComplexType|FunctionProto>: void (const char *, size_t)
         <BuiltinType|Void>: void
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         <ComplexType|Elaborated>: size_t
         attribute(visibility): default
         ParmDecl: buffer(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:50:44)
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         ParmDecl: buffer_size(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:50:59)
         <ComplexType|Elaborated>: size_t
            TypeRef: size_t(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:50:52)
            <ComplexType|Typedef>: size_t
               <BuiltinType|ULong>: unsigned long
      CXXMethod: ParseError (Symbol: __ZNK9INIReader10ParseErrorEv)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:54:17)
      <ComplexType|FunctionProto>: int () const
         <BuiltinType|Int>: int
         attribute(visibility): default
      CXXMethod: Get (Symbol: __ZNK9INIReader3GetERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:57:25)
      <ComplexType|FunctionProto>: std::string (const std::string &, const std::string &, const std::string &) const
         <ComplexType|Elaborated>: std::string
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         attribute(visibility): default
         NamespaceRef: std
         TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:57:18)
         <ComplexType|Typedef>: std::string
            <ComplexType|Record>: std::basic_string<char>
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:57:48)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:57:40)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:57:76)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:57:68)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:58:48)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:58:40)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
      CXXMethod: GetString (Symbol: __ZNK9INIReader9GetStringERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_S8_)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:62:25)
      <ComplexType|FunctionProto>: std::string (const std::string &, const std::string &, const std::string &) const
         <ComplexType|Elaborated>: std::string
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         attribute(visibility): default
         NamespaceRef: std
         TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:62:18)
         <ComplexType|Typedef>: std::string
            <ComplexType|Record>: std::basic_string<char>
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:62:54)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:62:46)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:62:82)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:62:74)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:63:54)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:63:46)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
      CXXMethod: GetInteger (Symbol: __ZNK9INIReader10GetIntegerERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_l)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:67:18)
      <ComplexType|FunctionProto>: long (const std::string &, const std::string &, long) const
         <BuiltinType|Long>: long
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <BuiltinType|Long>: long
         attribute(visibility): default
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:67:48)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:67:40)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:67:76)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:67:68)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:67:87)
         <BuiltinType|Long>: long
      CXXMethod: GetInteger64 (Symbol: __ZNK9INIReader12GetInteger64ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_x)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:21)
      <ComplexType|FunctionProto>: int64_t (const std::string &, const std::string &, int64_t) const
         <ComplexType|Elaborated>: int64_t
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|Elaborated>: int64_t
         attribute(visibility): default
         TypeRef: int64_t(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:13)
         <ComplexType|Typedef>: int64_t
            <BuiltinType|LongLong>: long long
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:53)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:45)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:81)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:73)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:95)
         <ComplexType|Elaborated>: int64_t
            TypeRef: int64_t(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:71:87)
            <ComplexType|Typedef>: int64_t
               <BuiltinType|LongLong>: long long
      CXXMethod: GetUnsigned (Symbol: __ZNK9INIReader11GetUnsignedERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_m)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:75:27)
      <ComplexType|FunctionProto>: unsigned long (const std::string &, const std::string &, unsigned long) const
         <BuiltinType|ULong>: unsigned long
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <BuiltinType|ULong>: unsigned long
         attribute(visibility): default
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:75:58)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:75:50)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:75:86)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:75:78)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:76:53)
         <BuiltinType|ULong>: unsigned long
      CXXMethod: GetUnsigned64 (Symbol: __ZNK9INIReader13GetUnsigned64ERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_y)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:22)
      <ComplexType|FunctionProto>: uint64_t (const std::string &, const std::string &, uint64_t) const
         <ComplexType|Elaborated>: uint64_t
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|Elaborated>: uint64_t
         attribute(visibility): default
         TypeRef: uint64_t(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:13)
         <ComplexType|Typedef>: uint64_t
            <BuiltinType|ULongLong>: unsigned long long
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:55)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:47)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:83)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:75)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:98)
         <ComplexType|Elaborated>: uint64_t
            TypeRef: uint64_t(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:80:89)
            <ComplexType|Typedef>: uint64_t
               <BuiltinType|ULongLong>: unsigned long long
      CXXMethod: GetReal (Symbol: __ZNK9INIReader7GetRealERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_d)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:85:20)
      <ComplexType|FunctionProto>: double (const std::string &, const std::string &, double) const
         <BuiltinType|Double>: double
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <BuiltinType|Double>: double
         attribute(visibility): default
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:85:47)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:85:39)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:85:75)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:85:67)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:85:88)
         <BuiltinType|Double>: double
      CXXMethod: GetBoolean (Symbol: __ZNK9INIReader10GetBooleanERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_b)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:90:18)
      <ComplexType|FunctionProto>: bool (const std::string &, const std::string &, bool) const
         <BuiltinType|Bool>: bool
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         <BuiltinType|Bool>: bool
         attribute(visibility): default
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:90:48)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:90:40)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:90:76)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:90:68)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: default_value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:90:87)
         <BuiltinType|Bool>: bool
      CXXMethod: HasSection (Symbol: __ZNK9INIReader10HasSectionERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEE)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:94:18)
      <ComplexType|FunctionProto>: bool (const std::string &) const
         <BuiltinType|Bool>: bool
         <ComplexType|LValueReference>: const std::string &
         attribute(visibility): default
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:94:48)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:94:40)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
      CXXMethod: HasValue (Symbol: __ZNK9INIReader8HasValueERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:97:18)
      <ComplexType|FunctionProto>: bool (const std::string &, const std::string &) const
         <BuiltinType|Bool>: bool
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         attribute(visibility): default
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:97:46)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:97:38)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:97:74)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:97:66)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
      CXXAccessSpecifier:  private(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:99:3)
      FieldDecl: _error(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:100:9)
      <BuiltinType|Int>: int
      FieldDecl: _values(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:101:40)
      <BuiltinType|Int>: int
      CXXMethod: MakeKey (Symbol: __ZN9INIReader7MakeKeyERKNSt3__112basic_stringIcNS0_11char_traitsIcEENS0_9allocatorIcEEEES8_)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:102:24)
      <ComplexType|FunctionProto>: std::string (const std::string &, const std::string &)
         <ComplexType|Elaborated>: std::string
         <ComplexType|LValueReference>: const std::string &
         <ComplexType|LValueReference>: const std::string &
         NamespaceRef: std
         TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:102:17)
         <ComplexType|Typedef>: std::string
            <ComplexType|Record>: std::basic_string<char>
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:102:51)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:102:43)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:102:79)
         <ComplexType|LValueReference>: const std::string &
            NamespaceRef: std
            TypeRef: std::string(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:102:71)
            <ComplexType|Typedef>: std::string
               <ComplexType|Record>: std::basic_string<char>
      CXXMethod: ValueHandler (Symbol: __ZN9INIReader12ValueHandlerEPvPKcS2_S2_)(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:103:16)
      <ComplexType|FunctionProto>: int (void *, const char *, const char *, const char *)
         <BuiltinType|Int>: int
         <ComplexType|Pointer>: void *
            <BuiltinType|Void>: void
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         ParmDecl: user(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:103:35)
         <ComplexType|Pointer>: void *
            <BuiltinType|Void>: void
         ParmDecl: section(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:103:53)
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         ParmDecl: name(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:103:74)
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char
         ParmDecl: value(Loc:/opt/homebrew/Cellar/inih/58/include/INIReader.h:103:92)
         <ComplexType|Pointer>: const char *
            <BuiltinType|Char_S>: const char

@codecov

codecov Bot commented Aug 7, 2024

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.57%. Comparing base (4fda2b6) to head (8d70aba).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #676   +/-   ##
=======================================
  Coverage   97.57%   97.57%           
=======================================
  Files          19       19           
  Lines        4584     4584           
=======================================
  Hits         4473     4473           
  Misses         94       94           
  Partials       17       17           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@xushiwei
xushiwei merged commit f76fa87 into xgo-dev:main Aug 7, 2024
@luoliwoshang
luoliwoshang deleted the xtool/ast/funcproto branch August 22, 2024 01:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants