File tree 1 file changed +8
-1
lines changed
1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1436,6 +1436,13 @@ LINT_CPP_FILES = $(filter-out $(LINT_CPP_EXCLUDE), $(wildcard \
1436
1436
tools/snapshot/* .h \
1437
1437
) )
1438
1438
1439
+ FORMAT_CPP_FILES ?=
1440
+ FORMAT_CPP_FILES += $(LINT_CPP_FILES )
1441
+ FORMAT_CPP_FILES += $(wildcard \
1442
+ test/js-native-api/* /* .c \
1443
+ test/node-api/* /* .c \
1444
+ )
1445
+
1439
1446
# Code blocks don't have newline at the end,
1440
1447
# and the actual filename is generated so it won't match header guards
1441
1448
ADDON_DOC_LINT_FLAGS =-whitespace/ending_newline,-build/header_guard
@@ -1464,7 +1471,7 @@ ifneq ("","$(wildcard tools/clang-format/node_modules/)")
1464
1471
--binary=tools/clang-format/node_modules/.bin/clang-format \
1465
1472
--style=file \
1466
1473
$(CLANG_FORMAT_START) -- \
1467
- $(LINT_CPP_FILES )
1474
+ $(FORMAT_CPP_FILES )
1468
1475
else
1469
1476
$(info Required tooling for C++ code formatting is not installed.)
1470
1477
$(info To install (requires internet access) run: $$ make format-cpp-build)
You can’t perform that action at this time.
0 commit comments