mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Format EIGEN_STATIC_ASSERT() as a statement macro
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
f78dfe36b0
commit
d165c7377f
11
scripts/format.sh
Executable file
11
scripts/format.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Format files with extensions, excluding plugins because they're partial files that don't contain valid syntax
|
||||
find . -type f \( -name '*.c' -o -name '*.cc' -o -name '*.cpp' -o -name '*.cu' -o -name '*.cxx' -o -name '*.h' -o -name '*.inc' -not -path '*/plugins/*' \) | xargs -n 1 -P 0 clang-format-17 -i
|
||||
|
||||
# Format main headers without extensions
|
||||
find Eigen -maxdepth 1 -type f | xargs -n 1 -P 0 clang-format-17 -i
|
||||
find unsupported/Eigen -maxdepth 2 -type f -not -name '*.txt' | xargs -n 1 -P 0 clang-format-17 -i
|
||||
|
||||
# Format examples
|
||||
find doc/examples -type f -name '*.cpp.*' | xargs -n 1 -P 0 clang-format-17 -i
|
||||
Reference in New Issue
Block a user