Skip to content

Extend googletest for ACTION macros - #9028

Open
fliiiix wants to merge 1 commit into
cppcheck-opensource:mainfrom
fliiiix:bugfix/extend-googletest-action-p-macro
Open

fliiiix wants to merge 1 commit into
cppcheck-opensource:mainfrom
fliiiix:bugfix/extend-googletest-action-p-macro

Conversation

@fliiiix

@fliiiix fliiiix commented Nov 14, 2026

Copy link
Copy Markdown

They seem to fail when they are in a namespace
with a statement before the macro.

Motivating examples:

namespace{int x;ACTION_P(B, p){}}

namespace{int x;ACTION(B){}}

namespace{int x;ACTION_Pk(Foo, p1, p2, p3){}}

They seem to fail when they are in a namespace
with a statement before the macro.

Motivating examples:
```
namespace{int x;ACTION_P(B, p){}}

namespace{int x;ACTION(B){}}

namespace{int x;ACTION_Pk(Foo, p1, p2, p3){}}
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant