Changeset e00c22f


Ignore:
Timestamp:
Nov 10, 2020, 4:03:44 PM (11 months ago)
Author:
Fangren Yu <f37yu@…>
Branches:
arm-eh, jacob/cs343-translation, master, new-ast-unique-expr
Children:
1d379b5
Parents:
cdacb73
Message:

someone liked snake_case

Location:
src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • src/AST/Pass.impl.hpp

    rcdacb73 re00c22f  
    423423                }
    424424                catch( SemanticErrorException &e ) {
    425                         if (__pass::onError (visitor.core, *i, 0))
     425                        if (__pass::on_error (visitor.core, *i, 0))
    426426                                errors.append( e );
    427427                }
  • src/AST/Pass.proto.hpp

    rcdacb73 re00c22f  
    270270
    271271        template< typename core_t >
    272         static bool onError (core_t &, ptr<Decl> &, long) { return true; }
    273 
    274         template< typename core_t >
    275         static auto onError (core_t & core, ptr<Decl> & decl, int) -> decltype(core.onError(decl)) {
    276                 return core.onError(decl);
     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);
    277277        }
    278278
  • src/ResolvExpr/Resolver.cc

    rcdacb73 re00c22f  
    12891289                void beginScope() { managedTypes.beginScope(); }
    12901290                void endScope() { managedTypes.endScope(); }
    1291                 bool onError(ast::ptr<ast::Decl> & decl);
     1291                bool on_error(ast::ptr<ast::Decl> & decl);
    12921292        };
    12931293        // size_t Resolver_new::traceId = Stats::Heap::new_stacktrace_id("Resolver");
     
    20682068
    20692069        // suppress error on autogen functions and mark invalid autogen as deleted.
    2070         bool Resolver_new::onError(ast::ptr<ast::Decl> & decl) {
     2070        bool Resolver_new::on_error(ast::ptr<ast::Decl> & decl) {
    20712071                if (auto functionDecl = decl.as<ast::FunctionDecl>()) {
    20722072                        // xxx - can intrinsic gen ever fail?
Note: See TracChangeset for help on using the changeset viewer.