llvm-project/clang/tools
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
..
arcmt-test [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
c-arcmt-test Remove autoconf support 2016-01-26 21:30:40 +00:00
c-index-test [c-index-test] Make sure to check that clang_Cursor_getNumTemplateArguments did not return -1. 2016-07-30 02:20:21 +00:00
clang-check Frontend: Simplify ownership model for clang's output streams. 2016-07-15 00:55:40 +00:00
clang-format Minor cleanups in clang-format.el. 2016-10-04 09:53:04 +00:00
clang-format-vs clang-format VS plugin: upgrade the project files to VS2015 2016-09-15 19:44:49 +00:00
clang-fuzzer Add missing header in ClangFuzzer (after r275882 cleanup) 2016-07-18 20:33:09 +00:00
clang-offload-bundler [clang-offload-bundler] Fix some Clang-tidy modernize-use-override and Include What You Use warnings; other minor fixes. 2016-09-07 17:37:28 +00:00
diag-build Briefly document diag-build.sh 2013-12-28 21:59:11 +00:00
diagtool [NFC] Header cleanup 2016-07-18 19:02:11 +00:00
driver [cmake] Install 'clang-cpp' symlink 2016-10-02 19:28:57 +00:00
libclang ObjectiveC generics: Add ObjCTypeParamType in the type system. 2016-09-13 17:25:08 +00:00
scan-build scan-build: Add an option to show the description in the list of defect 2016-08-01 08:04:45 +00:00
scan-build-py [analyzer][scan-build-py] subprocess output handling reviewed in clang module 2016-09-24 00:20:59 +00:00
scan-view Remove autoconf support 2016-01-26 21:30:40 +00:00
CMakeLists.txt clang-offload-bundler - offload files bundling/unbundling tool 2016-08-24 15:21:05 +00:00