Skip to content

Commit

Permalink
increase the parameter context
Browse files Browse the repository at this point in the history
  • Loading branch information
jeff-hykin committed May 24, 2019
1 parent 39fe2c9 commit a048985
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion cpp/generate.rb
Original file line number Diff line number Diff line change
Expand Up @@ -210,10 +210,15 @@ def generateBlockFinder( name:"", tag_as:"", start_pattern:nil, needs_semicolon:
:attributes_context,
:comments_context,
:storage_types,
:operators,
:vararg_ellipses,
:function_pointer,
:comma,
# the following are a temp workaround for defaulted arguments
# e.g. aFunc(int a = 10 + 10)
:language_constants,
:number_literal,
:string_context,

This comment has been minimized.

Copy link
@matter123

matter123 May 24, 2019

Collaborator

is :string_context_c still different, and does it need to be added?

This comment has been minimized.

Copy link
@jeff-hykin

jeff-hykin May 25, 2019

Author Owner

I did in mine at first, but I think its fine/better without it. We can probably safely remove string_context_c from everywhere.

:operators,
]
# eventually this context will be more exclusive (can't have class definitons inside of an evaluation)
# but for now it just includes everything
Expand Down Expand Up @@ -821,6 +826,8 @@ def generateBlockFinder( name:"", tag_as:"", start_pattern:nil, needs_semicolon:
),
includes: [
:function_parameter_context,
# TODO: the function_call_context is included here as workaround for function-initializations like issue #198
# e.g. std::string ("hello");
:function_call_context,
]
)
Expand Down

0 comments on commit a048985

Please sign in to comment.