File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -24,17 +24,17 @@ sed --in-place '/^#pragma once$/d' ../library/**/*.hpp
2424# remove //! @file
2525sed --in-place ' /^\/\/! @file$/d' ../library/** /* .hpp
2626# remove NOLINTNEXTLINE comments
27- sed --in-place ' /^\/\/NOLINTNEXTLINE(readability-identifier-naming)$/d' ../library/** /* .hpp
27+ sed --in-place ' /^\/\/ NOLINTNEXTLINE(readability-identifier-naming)$/d' ../library/** /* .hpp
2828
2929# adds hash code comments
3030chmod +x ../library/contest/hash.sh
3131for header in ../library/** /* .hpp; do
3232 echo " $header "
3333 cp " $header " input
3434 lines=" $( wc -l < input) "
35- for i in $( seq 1 " $lines " ) ; do
35+ for i in $( seq " $lines " -5 1 ) ; do
3636 hash=$( head -n " $i " input | sed ' /^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
37- sed -i " ${i} s/^ /\/\* ${hash} \*\/ /" " $header "
37+ sed -i " ${i} s/$ /\/\/ ${hash} /" " $header "
3838 done
3939done
4040
You can’t perform that action at this time.
0 commit comments