Changes in src/Common/PassVisitor.proto.h [7870799:37e3af4]
- File:
-
- 1 edited
-
src/Common/PassVisitor.proto.h (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/PassVisitor.proto.h
r7870799 r37e3af4 118 118 static inline void postvisit_impl( __attribute__((unused)) pass_type& pass, __attribute__((unused)) node_type * node, __attribute__((unused)) long unused ) {} 119 119 120 template<typename pass_type, typename node_type>121 static inline auto previsit_impl( pass_type& pass, const node_type * node, __attribute__((unused)) int unused ) -> decltype( pass.previsit( node ), void() ) {122 pass.previsit( node );123 }124 125 template<typename pass_type, typename node_type>126 static inline void previsit_impl( __attribute__((unused)) pass_type& pass, __attribute__((unused)) const node_type * node, __attribute__((unused)) long unused ) {}127 128 129 template<typename pass_type, typename node_type>130 static inline auto postvisit_impl( pass_type& pass, const node_type * node, __attribute__((unused)) int unused ) -> decltype( pass.postvisit( node ), void() ) {131 pass.postvisit( node );132 }133 134 template<typename pass_type, typename node_type>135 static inline void postvisit_impl( __attribute__((unused)) pass_type& pass, __attribute__((unused)) const node_type * node, __attribute__((unused)) long unused ) {}136 137 120 //--------------------------------------------------------- 138 121 // Mutate … … 217 200 pass.indexer.func( arg ); \ 218 201 } \ 219 template<typename pass_type> \ 220 static inline void indexer_impl_##func ( pass_type &, long, type ) { } 202 \ 203 template<typename pass_type> \ 204 static inline void indexer_impl_##func ( pass_type &, long, type ) { } \ 221 205 222 206 #define INDEXER_FUNC2( func, type1, type2 ) \ … … 225 209 pass.indexer.func( arg1, arg2 ); \ 226 210 } \ 211 \ 227 212 template<typename pass_type> \ 228 213 static inline void indexer_impl_##func ( pass_type &, long, type1, type2 ) { } … … 248 233 249 234 template<typename pass_type> 250 static inline auto indexer_impl_addStructFwd( pass_type &, long, constStructDecl * ) {}235 static inline auto indexer_impl_addStructFwd( pass_type &, long, StructDecl * ) {} 251 236 252 237 template<typename pass_type> … … 258 243 259 244 template<typename pass_type> 260 static inline auto indexer_impl_addUnionFwd( pass_type &, long, constUnionDecl * ) {}245 static inline auto indexer_impl_addUnionFwd( pass_type &, long, UnionDecl * ) {} 261 246 262 247 template<typename pass_type>
Note:
See TracChangeset
for help on using the changeset viewer.