Merge branch 'rs/clang-format-updates'
Custom control structures we invented more recently have been taught to the clang-format file. * rs/clang-format-updates: clang-format: include kh_foreach* macros in ForEachMacros
This commit is contained in:
@ -149,20 +149,25 @@ Cpp11BracedListStyle: false
|
|||||||
|
|
||||||
# A list of macros that should be interpreted as foreach loops instead of as
|
# A list of macros that should be interpreted as foreach loops instead of as
|
||||||
# function calls. Taken from:
|
# function calls. Taken from:
|
||||||
# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' \
|
# git grep -h '^#define [^[:space:]]*for_\?each[^[:space:]]*(' |
|
||||||
# | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \
|
# sed "s/^#define / - '/; s/(.*$/'/" | sort | uniq
|
||||||
# | sort | uniq
|
|
||||||
ForEachMacros:
|
ForEachMacros:
|
||||||
- 'for_each_abbrev'
|
|
||||||
- 'for_each_builtin'
|
- 'for_each_builtin'
|
||||||
- 'for_each_string_list_item'
|
- 'for_each_string_list_item'
|
||||||
- 'for_each_ut'
|
- 'for_each_ut'
|
||||||
- 'for_each_wanted_builtin'
|
- 'for_each_wanted_builtin'
|
||||||
|
- 'hashmap_for_each_entry'
|
||||||
|
- 'hashmap_for_each_entry_from'
|
||||||
|
- 'kh_foreach'
|
||||||
|
- 'kh_foreach_value'
|
||||||
- 'list_for_each'
|
- 'list_for_each'
|
||||||
- 'list_for_each_dir'
|
- 'list_for_each_dir'
|
||||||
- 'list_for_each_prev'
|
- 'list_for_each_prev'
|
||||||
- 'list_for_each_prev_safe'
|
- 'list_for_each_prev_safe'
|
||||||
- 'list_for_each_safe'
|
- 'list_for_each_safe'
|
||||||
|
- 'strintmap_for_each_entry'
|
||||||
|
- 'strmap_for_each_entry'
|
||||||
|
- 'strset_for_each_entry'
|
||||||
|
|
||||||
# The maximum number of consecutive empty lines to keep.
|
# The maximum number of consecutive empty lines to keep.
|
||||||
MaxEmptyLinesToKeep: 1
|
MaxEmptyLinesToKeep: 1
|
||||||
|
Reference in New Issue
Block a user