Skip to content

runastyle: Fix wildcard expansion happening too soon#1650

Merged
amai2012 merged 1 commit into
cppcheck-opensource:masterfrom
versat:runastyle_fix
Feb 7, 2019
Merged

runastyle: Fix wildcard expansion happening too soon#1650
amai2012 merged 1 commit into
cppcheck-opensource:masterfrom
versat:runastyle_fix

Conversation

@versat
Copy link
Copy Markdown
Collaborator

@versat versat commented Feb 7, 2019

At least under Windows with Cygwin i see a problem.
For lines like formatCplusplus lib/*.cpp the wildcard is replaced by ONE filename before the function is called.
This results in only one file being formatted in the corresponding directory.
The fix seems quite simple. Just use quotes for all function parameters like this: formatCplusplus "lib/*.cpp"
The wildcard is preserved and only expanded in the function body, so all matching files get formatted.

At least under Windows with Cygwin i see a problem.
For lines like `formatCplusplus lib/*.cpp` the wildcard is replaced by ONE filename before the function is called.
This results in only one file being formatted in the corresponding directory.
The fix seems quite simple. Just use quotes for all function parameters like this: `formatCplusplus "lib/*.cpp"`
The wildcard is preserved and only extended in the function body, so all matching files get formatted.
@amai2012
Copy link
Copy Markdown
Collaborator

amai2012 commented Feb 7, 2019

Yes, thanks

@amai2012 amai2012 merged commit 3b98f08 into cppcheck-opensource:master Feb 7, 2019
@versat versat deleted the runastyle_fix branch February 7, 2019 07:55
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.

2 participants