mirror of https://github.com/swig/swig.git
Cosmetic whitespace only change Closes #3312 This commit is the result of running the following bash commands: 1. Remove tabs at start of source files files=$(find Source -name "*.cxx" -o -name "*.h" -o -name "*.c") for file in $files ; do printf "Processing $file\n" expand --initial $file > $file.tmp cp $file.tmp $file done 2. Remove trailing whitespace in source files=$(find Source -name "*.cxx" -o -name "*.h" -o -name "*.c") for file in $files ; do printf "Processing $file\n" sed -i s/[[:space:]]*$// $file done 3. Convert remaining tabs to spaces files=$(find Source -name "*.cxx" -o -name "*.h" -o -name "*.c") for file in $files ; do printf "Processing $file\n" expand $file > $file.tmp mv -f $file.tmp $file done 4. Finally use clang-format with the newly added .clang-format file files=$(find Source -name "*.cxx" -o -name "*.h" -o -name "*.c") for file in $files ; do printf "Processing $file\n" clang-format -i $file done |
||
|---|---|---|
| .. | ||
| cpp.c | ||
| expr.c | ||
| preprocessor.h | ||