ADT
        ast-experimental
      
      
        
          | 
            Last change
 on this file since a6bb5fc was             4f6dda0, checked in by Andrew Beach <ajbeach@…>, 4 years ago           | 
        
        
          | 
             
Converted Implement Concurrent Keywords to the new AST. Includes updates to various helpers, including the virtual table and a lot of examine helpers. 
 
           | 
        
        
          
            
              - 
Property                 mode
 set to                 
100644
               
             
           | 
        
        
          | 
            File size:
            1.0 KB
           | 
        
      
      
| Line |   | 
|---|
| 1 | //
 | 
|---|
| 2 | // Cforall Version 1.0.0 Copyright (C) 2015 University of Waterloo
 | 
|---|
| 3 | //
 | 
|---|
| 4 | // The contents of this file are covered under the licence agreement in the
 | 
|---|
| 5 | // file "LICENCE" distributed with Cforall.
 | 
|---|
| 6 | //
 | 
|---|
| 7 | // Examine.h -- Helpers for examining AST code.
 | 
|---|
| 8 | //
 | 
|---|
| 9 | // Author           : Andrew Beach
 | 
|---|
| 10 | // Created On       : Wed Sept 2 13:57 2020
 | 
|---|
| 11 | // Last Modified By : Andrew Beach
 | 
|---|
| 12 | // Last Modified On : Fri Dec 10 10:28 2021
 | 
|---|
| 13 | // Update Count     : 1
 | 
|---|
| 14 | //
 | 
|---|
| 15 | 
 | 
|---|
| 16 | #include "AST/Decl.hpp"
 | 
|---|
| 17 | #include "SynTree/Declaration.h"
 | 
|---|
| 18 | 
 | 
|---|
| 19 | /// Check if this is a main function for a type of an aggregate kind.
 | 
|---|
| 20 | DeclarationWithType * isMainFor( FunctionDecl * func, AggregateDecl::Aggregate kind );
 | 
|---|
| 21 | const ast::DeclWithType * isMainFor(
 | 
|---|
| 22 |         const ast::FunctionDecl * func, ast::AggregateDecl::Aggregate kind );
 | 
|---|
| 23 | // Returns a pointer to the parameter if true, nullptr otherwise.
 | 
|---|
| 24 | 
 | 
|---|
| 25 | /// Check if this function is a destructor for the given structure.
 | 
|---|
| 26 | bool isDestructorFor( FunctionDecl * func, StructDecl * type_decl );
 | 
|---|
| 27 | bool isDestructorFor(
 | 
|---|
| 28 |         const ast::FunctionDecl * func, const ast::StructDecl * type );
 | 
|---|
       
      
  Note:
 See   
TracBrowser
 for help on using the repository browser.