File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,6 @@ python3 -m yapf --style=google --in-place --recursive ./tensorflow_quantum
19
19
echo -e " Done! \nDoing notebook formatting..."
20
20
python3 ./scripts/format_ipynb.py
21
21
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
23
23
echo " Done!"
24
24
exit 0;
Original file line number Diff line number Diff line change 92
92
fi
93
93
94
94
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) ;
96
96
CFORMATCHECK=0
97
97
while read -r formatting_outputs; do
98
98
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
You can’t perform that action at this time.
0 commit comments