Skip to content

Commit

Permalink
Merge pull request #62111 from BrettDong/astyle-diff
Browse files Browse the repository at this point in the history
Add astyle-diff target in Makefile to format modified files only
  • Loading branch information
ZhilkinSerg authored Nov 8, 2022
2 parents 4caa3ba + 0442d0d commit 6b42d88
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -1218,6 +1218,9 @@ endif
astyle-fast: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $(ASTYLE_SOURCES)

astyle-diff: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $$(git diff --name-only src/*.h src/*.cpp tests/*.h tests/*.cpp)

astyle-all: $(ASTYLE_SOURCES)
$(ASTYLE_BINARY) --options=.astylerc -n $(ASTYLE_SOURCES)
mkdir -p $(ODIR) && touch $(ODIR)/.astyle-check-stamp
Expand Down

0 comments on commit 6b42d88

Please sign in to comment.