Skip to content

Commit 84e3e17

Browse files
committed
update clang-format version to 6.0
1 parent 4a25270 commit 84e3e17

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

scripts/format_all.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@ python3 -m yapf --style=google --in-place --recursive ./tensorflow_quantum
1919
echo -e "Done! \nDoing notebook formatting..."
2020
python3 ./scripts/format_ipynb.py
2121
echo -e "Done! \nDoing C++ formatting..."
22-
find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -i -style=google
22+
find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format-6.0 -i -style=google
2323
echo "Done!"
2424
exit 0;

scripts/format_check.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ else
9292
fi
9393

9494
echo "Checking C++ formatting...";
95-
formatting_outputs=$(find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format -style=google -output-replacements-xml);
95+
formatting_outputs=$(find tensorflow_quantum/ -iname *.h -o -iname *.cc | xargs clang-format-6.0 -style=google -output-replacements-xml);
9696
CFORMATCHECK=0
9797
while read -r formatting_outputs; do
9898
if [ "$formatting_outputs" != "<?xml version='1.0'?>" ] && [ "$formatting_outputs" != "<replacements xml:space='preserve' incomplete_format='false'>" ] && [ "$formatting_outputs" != "</replacements>" ] && [ "$formatting_outputs" != "<replacement offset='4290' length='9'> </replacement>" ]; then

0 commit comments

Comments
 (0)