We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 69996eb commit 0c824dcCopy full SHA for 0c824dc
tests/scripts/ptc.sh
@@ -29,8 +29,13 @@ sed --in-place '/^\/\/NOLINTNEXTLINE(readability-identifier-naming)$/d' ../libra
29
#adds hash code comments
30
chmod +x ../library/contest/hash.sh
31
for header in ../library/**/*.hpp; do
32
- hash=$(sed '/^#include/d' "$header" | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
33
- sed --in-place "1i //hash: $hash" "$header"
+ echo "$header"
+ cp "$header" input
34
+ lines="$(wc -l <input)"
35
+ for i in $(seq 1 "$lines"); do
36
+ hash=$(head -n "$i" input | sed '/^#include/d' | cpp -dD -P -fpreprocessed | ./../library/contest/hash.sh)
37
+ sed -i "${i}s/^/\/\*${hash}\*\/ /" "$header"
38
+ done
39
done
40
41
git submodule init
0 commit comments