diff options
| author | Daniel Jasper <djasper@google.com> | 2014-04-01 12:55:11 +0000 |
|---|---|---|
| committer | Daniel Jasper <djasper@google.com> | 2014-04-01 12:55:11 +0000 |
| commit | 33df7ef5ffbc4a6a0ef0dd0818d49c680d73102d (patch) | |
| tree | e4d9e8601957c7b9fc5df047acc7f5b8525d70b5 /docs | |
| parent | fcd13765fb9bc542ff4f470a16faa70f49d332a5 (diff) | |
| download | clang-33df7ef5ffbc4a6a0ef0dd0818d49c680d73102d.tar.gz clang-33df7ef5ffbc4a6a0ef0dd0818d49c680d73102d.tar.bz2 clang-33df7ef5ffbc4a6a0ef0dd0818d49c680d73102d.tar.xz | |
clang-format: Support configurable list of foreach-macros.
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
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ClangFormatStyleOptions.rst | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/docs/ClangFormatStyleOptions.rst b/docs/ClangFormatStyleOptions.rst index 662f49d994..db77372724 100644 --- a/docs/ClangFormatStyleOptions.rst +++ b/docs/ClangFormatStyleOptions.rst @@ -212,6 +212,14 @@ the configuration (without a prefix: ``Auto``). NOTE: This is an experimental flag, that might go away or be renamed. Do not use this in config files, etc. Use at your own risk. +**ForEachMacros** (``std::vector<std::string>``) + A list of macros that should be interpreted as foreach loops instead of as + function calls. + + For example, ``ForEachMacros: [BOOST_FOREACH, Q_FOREACH]`` tells + clang-format to treat ``BOOST_FOREACH`` and ``Q_FOREACH`` as loop control + statements. + **IndentCaseLabels** (``bool``) Indent case labels one level from the switch statement. |
