diff options
author | Philipp Stephani <phst@google.com> | 2017-12-02 21:18:14 +0000 |
---|---|---|
committer | Philipp Stephani <phst@google.com> | 2017-12-02 21:18:14 +0000 |
commit | c256a4ed179ba7cd1459e0846a18ecf06fb82b3d (patch) | |
tree | 8474b400ba4ea33b2ad20d91d4f301099b2ef5dd /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py | |
parent | aa7d6db5c8fc449b2908c6d629d6d9a067f49896 (diff) | |
download | bcm5719-llvm-c256a4ed179ba7cd1459e0846a18ecf06fb82b3d.tar.gz bcm5719-llvm-c256a4ed179ba7cd1459e0846a18ecf06fb82b3d.zip |
Fix assume-filename handling in clang-format.el
Summary:
When 'buffer-file-name' is nil 'call-process-region' returned a segmentation fault error.
This was a problem when using clang-format-buffer on an orgmode source code editing buffer.
I fixed this problem by excluding the '-assume-filename' argument when 'buffer-file-name' is nil.
To make it a bit more flexible I also added an optional argument, 'assume-file-name', to specify an assume-filename that overrides 'buffer-file-name'.
Reviewers: klimek, djasper, phst, phi
Reviewed By: phst, phi
Subscribers: phi, jholewinski, mgorny, javed.absar, eraman, cfe-commits
Differential Revision: https://reviews.llvm.org/D37903
llvm-svn: 319621
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinue.py')
0 files changed, 0 insertions, 0 deletions