diff options
author | Manuel Klimek <klimek@google.com> | 2016-10-04 09:53:04 +0000 |
---|---|---|
committer | Manuel Klimek <klimek@google.com> | 2016-10-04 09:53:04 +0000 |
commit | 8a70450590d811b440c7652be9886f7b16800bb9 (patch) | |
tree | 201bb1229624427fe1c2ecf4ce05e8720e0d57bc /lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py | |
parent | c6f125e9a5edbf93a6399c0e48c64473aa0900a6 (diff) | |
download | bcm5719-llvm-8a70450590d811b440c7652be9886f7b16800bb9.tar.gz bcm5719-llvm-8a70450590d811b440c7652be9886f7b16800bb9.zip |
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
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/symbol-context/TestSymbolContext.py')
0 files changed, 0 insertions, 0 deletions