summaryrefslogtreecommitdiffstats
path: root/clang/lib/Format/UnwrappedLineParser.cpp
diff options
context:
space:
mode:
authorDaniel Jasper <djasper@google.com>2017-06-19 07:30:04 +0000
committerDaniel Jasper <djasper@google.com>2017-06-19 07:30:04 +0000
commit271dd0603e4ddb63e1c7cc140459cb42fe13a2ac (patch)
treebb7f5b6edd0c5e94a599e1c05502a879dc1eed7b /clang/lib/Format/UnwrappedLineParser.cpp
parentf955efc01be806f8a8813c2b50b7a693db66c0de (diff)
downloadbcm5719-llvm-271dd0603e4ddb63e1c7cc140459cb42fe13a2ac.tar.gz
bcm5719-llvm-271dd0603e4ddb63e1c7cc140459cb42fe13a2ac.zip
clang-format: Add capability to format the diff on save in vim.
With this patch, one can configure a BufWrite hook that will make the clang-format integration compute a diff of the current buffer with the file that's on disk and format all changed lines. This should create a zero-overhead auto-format solution that doesn't require the file to already be clang-format clean to avoid spurious diffs. Review: https://reviews.llvm.org/D32429 llvm-svn: 305665
Diffstat (limited to 'clang/lib/Format/UnwrappedLineParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud