swig/Source/Preprocessor
William S Fulton bbdec1f77b Beautify using swig specific .clang-format
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
2026-03-04 21:53:30 +00:00
..
cpp.c Beautify using swig specific .clang-format 2026-03-04 21:53:30 +00:00
expr.c Beautify using swig specific .clang-format 2026-03-04 21:53:30 +00:00
preprocessor.h Beautify using swig specific .clang-format 2026-03-04 21:53:30 +00:00