Changes in src/Common/Examine.h [4f6dda0:1c01c58]
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/Examine.h
r4f6dda0 r1c01c58 5 5 // file "LICENCE" distributed with Cforall. 6 6 // 7 // Examine.h -- Helpers for examining AST code.7 // Examine.h -- 8 8 // 9 9 // Author : Andrew Beach 10 10 // Created On : Wed Sept 2 13:57 2020 11 11 // Last Modified By : Andrew Beach 12 // Last Modified On : Fri Dec 10 10:28 202113 // Update Count : 112 // Last Modified On : Wed Sep 8 12:08 2020 13 // Update Count : 0 14 14 // 15 15 16 #include "AST/Decl.hpp"17 16 #include "SynTree/Declaration.h" 18 17 19 18 /// Check if this is a main function for a type of an aggregate kind. 20 19 DeclarationWithType * isMainFor( FunctionDecl * func, AggregateDecl::Aggregate kind ); 21 const ast::DeclWithType * isMainFor(22 const ast::FunctionDecl * func, ast::AggregateDecl::Aggregate kind );23 20 // Returns a pointer to the parameter if true, nullptr otherwise. 24 21 25 22 /// Check if this function is a destructor for the given structure. 26 23 bool isDestructorFor( FunctionDecl * func, StructDecl * type_decl ); 27 bool isDestructorFor(28 const ast::FunctionDecl * func, const ast::StructDecl * type );
Note:
See TracChangeset
for help on using the changeset viewer.