diff options
Diffstat (limited to 'clang/tools/clang-format/clang-format.py')
-rw-r--r-- | clang/tools/clang-format/clang-format.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/tools/clang-format/clang-format.py b/clang/tools/clang-format/clang-format.py index d8338ab4dae..c333e4dd142 100644 --- a/clang/tools/clang-format/clang-format.py +++ b/clang/tools/clang-format/clang-format.py @@ -49,7 +49,8 @@ if sys.platform.startswith('win32'): # Call formatter. p = subprocess.Popen([binary, '-lines', lines, '-style', style, - '-cursor', str(cursor)], + '-cursor', str(cursor), + '-assume-filename', vim.current.buffer.name], stdout=subprocess.PIPE, stderr=subprocess.PIPE, stdin=subprocess.PIPE, startupinfo=startupinfo) stdout, stderr = p.communicate(input=text) |