Fix discovery of the .clang-format file (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-19 11:00:44 +02:00
parent 24e20aec0f
commit f6eb19f8d6
3 changed files with 14 additions and 4 deletions

View File

@ -124,7 +124,7 @@ def update_file(file, newcontents):
# Apply clang-format for C/C++ files.
if os.path.splitext(file)[1][1:] in ('cc', 'cpp', 'h'):
result = clang_format(newcontents)
result = clang_format(file, newcontents)
if result != None:
newcontents = result
else: