Changeset e01eb4a for src/AST/Inspect.hpp
- Timestamp:
- Sep 22, 2022, 2:23:18 PM (22 months ago)
- Branches:
- ADT, ast-experimental, master
- Children:
- 5d8dae7
- Parents:
- 0bd46fd
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Inspect.hpp
r0bd46fd re01eb4a 10 10 // Created On : Fri Jun 24 13:16:31 2022 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Mon Jun 27 15:35:00 202213 // Update Count : 112 // Last Modified On : Thr Sep 22 13:44:00 2022 13 // Update Count : 2 14 14 // 15 15 … … 18 18 namespace ast { 19 19 20 // Does the structure end in a flexable array declaration? 21 bool structHasFlexibleArray( const ast::StructDecl * ); 20 /// Returns the base type of an pointer/array/reference type, 21 /// if the argument is not one of those types, return null. 22 const Type * getPointerBase( const Type * ); 23 24 /// Get the declaration of the function called (ApplicationExpr or UntypedExpr). 25 const DeclWithType * getFunction( const Expr * expr ); 26 27 /// Get the name of the function being called. 28 std::string getFunctionName( const Expr * expr ); 29 30 /// Returns the argument to a call expression in position N, indexed from 0. 31 const Expr * getCallArg( const Expr * call, unsigned pos ); 32 33 /// Does the structure end in a flexable array declaration? 34 bool structHasFlexibleArray( const StructDecl * ); 35 36 /// If the expression is an application whose target function is an 37 /// intrinsic, then returns a pointer to that application. 38 const ApplicationExpr * isIntrinsicCallExpr( const Expr * expr ); 22 39 23 40 }
Note: See TracChangeset
for help on using the changeset viewer.