memgraph/format
Marko Budiselic b834cdc94a memgraph coverage (lcov setup in progress...)
Summary: first version of coverage (will be polished)

Reviewers: dgleich, mferencevic, florijan, teon.banek

Reviewed By: dgleich

Subscribers: pullbot, buda

Differential Revision: https://phabricator.memgraph.io/D76
2017-03-07 18:27:03 +01:00

19 lines
579 B
Bash
Executable File

#!/bin/bash
# This scrips runs clang-format recursively on all files under specified
# directories. Formatting configuration is defined in .clang-format.
# Format isn't enforced. Code reviewer has to ensure that a code format is
# valid and appropriate for the project.
clang_format="clang-format"
for directory in src tests
do
# If somebody wants to exclude a file from default formating here is a place
# for that
echo "formatting code under $directory/"
find "$directory" \( -name '*.hpp' -or -name '*.cpp' \) -print0 | xargs -0 "${clang_format}" -i
done