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

@ -34,7 +34,7 @@ def update_file(filename):
msg(filename, "empty")
return;
newcontents = clang_format(oldcontents)
newcontents = clang_format(filename, oldcontents)
if newcontents is None:
raise Exception("Failed to process %s" % filename)