Changeset 2d019af for src/Common
- Timestamp:
- Mar 12, 2021, 11:14:29 PM (4 years ago)
- Branches:
- ADT, arm-eh, ast-experimental, enum, forall-pointer-decay, jacob/cs343-translation, master, new-ast-unique-expr, pthread-emulation, qualifiedEnum
- Children:
- 41ca6fa, e867b44
- Parents:
- 6083392
- Location:
- src/Common
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/CodeLocationTools.cpp
r6083392 r2d019af 9 9 // Author : Andrew Beach 10 10 // Created On : Fri Dec 4 15:42:00 2020 11 // Last Modified By : Andrew Beach12 // Last Modified On : Wed Dec 9 9:42:00 202013 // Update Count : 111 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Fri Mar 12 18:35:37 2021 13 // Update Count : 2 14 14 // 15 15 … … 102 102 macro(TypedefDecl, Decl) \ 103 103 macro(AsmDecl, AsmDecl) \ 104 macro(DirectiveDecl, DirectiveDecl) \ 104 105 macro(StaticAssertDecl, StaticAssertDecl) \ 105 106 macro(CompoundStmt, CompoundStmt) \ -
src/Common/PassVisitor.h
r6083392 r2d019af 77 77 virtual void visit( AsmDecl * asmDecl ) override final; 78 78 virtual void visit( const AsmDecl * asmDecl ) override final; 79 virtual void visit( DirectiveDecl * directiveDecl ) override final; 80 virtual void visit( const DirectiveDecl * directiveDecl ) override final; 79 81 virtual void visit( StaticAssertDecl * assertDecl ) override final; 80 82 virtual void visit( const StaticAssertDecl * assertDecl ) override final; … … 261 263 virtual Declaration * mutate( TypedefDecl * typeDecl ) override final; 262 264 virtual AsmDecl * mutate( AsmDecl * asmDecl ) override final; 265 virtual DirectiveDecl * mutate( DirectiveDecl * directiveDecl ) override final; 263 266 virtual StaticAssertDecl * mutate( StaticAssertDecl * assertDecl ) override final; 264 267 -
src/Common/PassVisitor.impl.h
r6083392 r2d019af 973 973 974 974 //-------------------------------------------------------------------------- 975 // DirectiveDecl 976 template< typename pass_type > 977 void PassVisitor< pass_type >::visit( DirectiveDecl * node ) { 978 VISIT_START( node ); 979 980 maybeAccept_impl( node->stmt, *this ); 981 982 VISIT_END( node ); 983 } 984 985 template< typename pass_type > 986 void PassVisitor< pass_type >::visit( const DirectiveDecl * node ) { 987 VISIT_START( node ); 988 989 maybeAccept_impl( node->stmt, *this ); 990 991 VISIT_END( node ); 992 } 993 994 template< typename pass_type > 995 DirectiveDecl * PassVisitor< pass_type >::mutate( DirectiveDecl * node ) { 996 MUTATE_START( node ); 997 998 maybeMutate_impl( node->stmt, *this ); 999 1000 MUTATE_END( DirectiveDecl, node ); 1001 } 1002 1003 //-------------------------------------------------------------------------- 975 1004 // StaticAssertDecl 976 1005 template< typename pass_type >
Note: See TracChangeset
for help on using the changeset viewer.