Changes in src/AST/Pass.proto.hpp [e00c22f:293dc1c]
- File:
-
- 1 edited
-
src/AST/Pass.proto.hpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/AST/Pass.proto.hpp
re00c22f r293dc1c 266 266 static void endTrace(core_t &, long) {} 267 267 268 // Allows visitor to handle an error on top-level declarations, and possibly suppress the error.269 // If onError() returns false, the error will be ignored. By default, it returns true.270 271 template< typename core_t >272 static bool on_error (core_t &, ptr<Decl> &, long) { return true; }273 274 template< typename core_t >275 static auto on_error (core_t & core, ptr<Decl> & decl, int) -> decltype(core.on_error(decl)) {276 return core.on_error(decl);277 }278 279 268 // Another feature of the templated visitor is that it calls beginScope()/endScope() for compound statement. 280 269 // All passes which have such functions are assumed desire this behaviour
Note:
See TracChangeset
for help on using the changeset viewer.