llvm-project/clang/tools/clang-format
Manuel Klimek 8a70450590 Minor cleanups in clang-format.el.
- Enable lexical binding
- Formatting
- Enable file name completion for the clang-format-executable variable
- Add a missing docstring
- When available, use bufferpos-to-filepos and filepos-to-bufferpos. These functions given more precise mapping than byte-to-position and position-bytes.
- Rename arguments of clang-format-region to match the docstring
- Instead of binding local variables to nil and then assigning them, bind them directly to their values
- Make use of the fact that insert-file-contents returns the number of characters it inserted
- Use cl-destructuring-bind to make the code a bit shorter
- Use standard iteration (dolist) instead of mapc with a lambda, which is more common and shorter
- Remove a message that was most likely only present for debugging purposes

Patch by Philipp Stephani.

llvm-svn: 283206
2016-10-04 09:53:04 +00:00
..
fuzzer [libFuzzer] make LLVMFuzzerTestOneInput (the fuzzer target function) return int instead of void. (following llvm r249214) 2015-10-02 23:34:37 +00:00
CMakeLists.txt [CMake] Add install-clang-format target by migrating to add_clang_tool 2016-02-23 20:33:15 +00:00
ClangFormat.cpp Make clang-format remove duplicate headers when sorting #includes. 2016-08-10 09:32:23 +00:00
clang-format-bbedit.applescript Basic clang-format integration for BBEdit. 2013-05-02 17:37:36 +00:00
clang-format-diff.py clang-format-diff: Replace hard-code default for clang-format binary with flag. 2016-01-20 18:55:57 +00:00
clang-format-sublime.py clang-format: Enable #include sorting by default. 2015-11-16 12:38:56 +00:00
clang-format.el Minor cleanups in clang-format.el. 2016-10-04 09:53:04 +00:00
clang-format.py [clang-format-vim] Support vim linked against py3 2016-08-31 13:36:36 +00:00
git-clang-format clang-format: Add an option to git-clang-format to diff between to commits 2016-09-22 05:52:55 +00:00