Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make ast_visitor::visit_map a nop impl #2100

Merged
merged 2 commits into from
Aug 25, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading