Skip to content

Commit 7e499d3

Browse files
committed
chore: Simplify runastyle script by invoking executable once
This change simplifies the runastyle script by combining the invocation of the astyle executable for both .h and .cpp files into a single command.
1 parent b3d385d commit 7e499d3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

runastyle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,4 @@ if [[ "$DETECTED_VERSION_STR" != ${ASTYLE_VERSION_STR}* ]]; then
3434
fi
3535

3636
# Run astyle with the project config
37-
$ASTYLE --project *.cpp
38-
$ASTYLE --project *.h
37+
$ASTYLE --project *.h,*.cpp

runastyle.bat

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,7 @@ ECHO %DETECTED_VERSION_STR% | FINDSTR /B /C:%ASTYLE_VERSION_STR% > nul && (
4646
)
4747

4848
REM Run astyle with the project config
49-
%ASTYLE% --project *.cpp
50-
%ASTYLE% --project *.h
49+
%ASTYLE% --project *.h,*.cpp
5150
GOTO :EOF
5251

5352
:EXIT_ERROR

0 commit comments

Comments
 (0)