Skip to content

Commit 5874180

Browse files
committed
Exclude dnd_glfw from clang-format
Add src/imiv/external/dnd_glfw/* to the clang-format exclusion list. Updated run-clang-format.bash (grep -Ev) and src/cmake/compiler.cmake (CACHE glob patterns) so the third-party dnd_glfw vendor files are not auto-formatted. Signed-off-by: Vlad (Kuzmin) Erium <libalias@gmail.com>
1 parent 6a0f526 commit 5874180

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/build-scripts/run-clang-format.bash

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ CLANG_FORMAT_EXE=${CLANG_FORMAT_EXE:="clang-format"}
1212
echo "Running " `which clang-format` " version " `${CLANG_FORMAT_EXE} --version`
1313

1414
files=`find ./{src,testsuite} \( -name '*.h' -o -name '*.cpp' \) -print \
15-
| grep -Ev 'pugixml|SHA1|farmhash.cpp|libdpx|libcineon|bcdec.h|gif.h|stb_sprintf.h'`
15+
| grep -Ev 'pugixml|SHA1|farmhash.cpp|libdpx|libcineon|bcdec.h|gif.h|src/imiv/external/dnd_glfw/|stb_sprintf.h'`
1616

1717

1818
${CLANG_FORMAT_EXE} -i -style=file $files

src/cmake/compiler.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -617,6 +617,7 @@ if (PROJECT_IS_TOP_LEVEL)
617617
"src/cineon.imageio/libcineon/*"
618618
"src/dds.imageio/bcdec.h"
619619
"src/gif.imageio/gif.h"
620+
"src/imiv/external/dnd_glfw/*"
620621
"src/libutil/stb_sprintf.h"
621622
CACHE STRING "Glob patterns to exclude for clang-format")
622623
find_program (CLANG_FORMAT_EXE

0 commit comments

Comments
 (0)