Skip to content

Commit

Permalink
Make ast_visitor::visit_map a nop impl
Browse files Browse the repository at this point in the history
  • Loading branch information
iguessthislldo committed Aug 24, 2023
1 parent dfe49cb commit cbb50c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
5 changes: 5 additions & 0 deletions TAO/TAO_IDL/ast/ast_visitor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,3 +18,8 @@ int ast_visitor::visit_annotation_decl (AST_Annotation_Decl *)
{
return 0;
}

int ast_visitor::visit_map (AST_Map *);
{
return 0;
}
5 changes: 4 additions & 1 deletion TAO/TAO_IDL/include/ast_visitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -134,14 +134,17 @@ class TAO_IDL_FE_Export ast_visitor
virtual int visit_enum_val (AST_EnumVal *node) = 0;
virtual int visit_array (AST_Array *node) = 0;
virtual int visit_sequence (AST_Sequence *node) = 0;
virtual int visit_map (AST_Map *node) = 0;
virtual int visit_string (AST_String *node) = 0;
virtual int visit_typedef (AST_Typedef *node) = 0;
virtual int visit_root (AST_Root *node) = 0;
virtual int visit_native (AST_Native *node) = 0;
virtual int visit_valuebox (AST_ValueBox *node) = 0;

// These are implemented as nops for backwards compatibility. New node types
// should go here.
virtual int visit_fixed (AST_Fixed *node);
virtual int visit_annotation_decl (AST_Annotation_Decl *node);
virtual int visit_map (AST_Map *node);

protected:
// For abstract class.
Expand Down

0 comments on commit cbb50c2

Please sign in to comment.