Changeset 19a8c40 for src/AST


Ignore:
Timestamp:
Nov 14, 2022, 11:47:23 AM (2 years ago)
Author:
Andrew Beach <ajbeach@…>
Branches:
ADT, ast-experimental, master
Children:
63be3387, c1fb3903
Parents:
7491f97
Message:

Some clean-up I had stashed from before I knew the InlineMemberDecl? clean-up was underway.

Location:
src/AST
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified src/AST/Convert.cpp

    r7491f97 r19a8c40  
    18751875                auto&& type = GET_ACCEPT_1(type, Type);
    18761876                auto&& attr = GET_ACCEPT_V(attributes, Attribute);
    1877  
     1877
    18781878                auto decl = new ast::InlineMemberDecl(
    18791879                        old->location,
  • TabularUnified src/AST/Decl.hpp

    r7491f97 r19a8c40  
    397397};
    398398
     399/// Static Assertion `_Static_assert( ... , ... );`
    399400class StaticAssertDecl : public Decl {
    400401public:
     
    411412};
    412413
     414/// Inline Member Declaration `inline TypeName;`
    413415class InlineMemberDecl final : public DeclWithType {
    414416public:
     
    428430        MUTATE_FRIEND
    429431};
     432
    430433}
    431434
  • TabularUnified src/AST/Pass.hpp

    r7491f97 r19a8c40  
    141141        const ast::DirectiveDecl *    visit( const ast::DirectiveDecl        * ) override final;
    142142        const ast::StaticAssertDecl * visit( const ast::StaticAssertDecl     * ) override final;
    143         const ast::DeclWithType *     visit( const ast::InlineMemberDecl      * ) override final;
     143        const ast::DeclWithType *     visit( const ast::InlineMemberDecl     * ) override final;
    144144        const ast::CompoundStmt *     visit( const ast::CompoundStmt         * ) override final;
    145145        const ast::Stmt *             visit( const ast::ExprStmt             * ) override final;
  • TabularUnified src/AST/Pass.impl.hpp

    r7491f97 r19a8c40  
    803803
    804804//--------------------------------------------------------------------------
    805 // DeclWithType
     805// InlineMemberDecl
    806806template< typename core_t >
    807807const ast::DeclWithType * ast::Pass< core_t >::visit( const ast::InlineMemberDecl * node ) {
  • TabularUnified src/AST/Visitor.hpp

    r7491f97 r19a8c40  
    3333    virtual const ast::DirectiveDecl *    visit( const ast::DirectiveDecl        * ) = 0;
    3434    virtual const ast::StaticAssertDecl * visit( const ast::StaticAssertDecl     * ) = 0;
    35     virtual const ast::DeclWithType *     visit( const ast::InlineMemberDecl      * ) = 0;
     35    virtual const ast::DeclWithType *     visit( const ast::InlineMemberDecl     * ) = 0;
    3636    virtual const ast::CompoundStmt *     visit( const ast::CompoundStmt         * ) = 0;
    3737    virtual const ast::Stmt *             visit( const ast::ExprStmt             * ) = 0;
Note: See TracChangeset for help on using the changeset viewer.