summaryrefslogblamecommitdiff
path: root/tools/indenter-cpp
blob: bcdf2e0f4f54f683fc0ceb31434711e56cbcb869 (plain) (tree)
1
2
3
4
5
6
7
8
9








                                                 
#!/bin/bash -e
# this is the implementation of indenter -cpp
set -o pipefail
expand |
sed -e 's:^ *//:&&:' -e 's:^ *#://#:' |
indenter -ipp |
sed -e 's:^ *// *#:#:' -e 's:^\( *//\) *//:\1:' |
pp-indent |
bs-align