summaryrefslogtreecommitdiff
path: root/docs/ClangFormatStyleOptions.rst
Commit message (Collapse)AuthorAge
* Escaping a literal character to fix an RST warning.Aaron Ballman2014-06-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211690 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Introduce style with spaces on both sides of */&.Daniel Jasper2014-06-17
| | | | | | | Patch by Janusz Sobczak (slightly extended). This fixes llvm.org/19929. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@211098 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Fix Sphinx build error.Daniel Jasper2014-05-15
| | | | | | Patch by Adam Strzelecki, thank you! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208882 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Add option to allow short blocks on a single line.Daniel Jasper2014-05-14
| | | | | | | | | With AllowShortBlocksOnASingleLine, clang-format allows: if (a) { return; } Based on patch by Gonzalo BG, thank you! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@208765 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix sphinx-build warnings in clang docs.Reid Kleckner2014-04-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@206661 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Update flag documentation, and generation script.Daniel Jasper2014-04-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205853 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Support configurable list of foreach-macros.Daniel Jasper2014-04-01
| | | | | | | | This fixes llvm.org/PR17242. Patch by Brian Green, thank you! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@205307 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Improve documentation of DerivePointerBinding.Daniel Jasper2014-02-13
| | | | | | | | For reference: llvm.org/PR18690. Also updated generated help page and page creation script. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@201323 91177308-0d34-0410-b5e6-96231b3b80d8
* Support GNU style rule to put a space before opening parenthesis.Alexander Kornienko2013-12-10
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The rule from the GNU style states: "We find it easier to read a program when it has spaces before the open-parentheses and after the commas." http://www.gnu.org/prep/standards/standards.html#index-spaces-before-open_002dparen This patch makes clang-format adds an option to put spaces before almost all open parentheses, except the cases, where different behavior is dictated by the style rules or language syntax: * preprocessor: ** function-like macro definitions can't have a space between the macro name and the parenthesis; ** `#if defined(...)` can have a space, but it seems, that it's more frequently used without a space in GCC, for example; * never add spaces after unary operators; * adding spaces between two opening parentheses is controlled with the `SpacesInParentheses` option; * never add spaces between `[` and `(` (there's no option yet). Reviewers: djasper Reviewed By: djasper CC: cfe-commits, klimek Differential Revision: http://llvm-reviews.chandlerc.com/D2326 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@196901 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated examples of UseTab optionAlexander Kornienko2013-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191529 91177308-0d34-0410-b5e6-96231b3b80d8
* Updated clang-format style options doc.Alexander Kornienko2013-09-27
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191528 91177308-0d34-0410-b5e6-96231b3b80d8
* clang-format: Option to removing the space before assignment operators.Daniel Jasper2013-09-25
| | | | | | Patch contributed by Aaron Wishnick. Thank you! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@191375 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow _clang-format as alternative to .clang-format config filenameHans Wennborg2013-09-10
| | | | | | | | | | | Dotfiles are impractical on Windows. This makes clang-format search for the style configuration file as '_clang-format' in addition to the usual '.clang-format'. This is similar to how VIM searches for '_vimrc' on Windows. Differential Revision: http://llvm-reviews.chandlerc.com/D1629 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@190413 91177308-0d34-0410-b5e6-96231b3b80d8
* A minor fix in the documentation.Alexander Kornienko2013-09-04
| | | | git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189947 91177308-0d34-0410-b5e6-96231b3b80d8
* Added documentation for clang-format style options.Alexander Kornienko2013-09-04
Summary: The main contents is in the ClangFormatStyleOptions.rst, which can be updated from the Format.h by the dump_format_style.py script. Reviewers: djasper, klimek Reviewed By: klimek CC: cfe-commits Differential Revision: http://llvm-reviews.chandlerc.com/D1597 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@189946 91177308-0d34-0410-b5e6-96231b3b80d8