X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=.clang-format;h=c592dda681fecfaa6bf64fb3f539eafaf4123ed8;hb=a78305ffbca58e49a7cdad901df0ae779bbed8fb;hp=12a89f95f993546888410613458c9385b16f0108;hpb=b5cc90f548375fa8d5ae78a2879eabae78f19ae4;p=platform%2Fupstream%2Fgit.git diff --git a/.clang-format b/.clang-format index 12a89f9..c592dda 100644 --- a/.clang-format +++ b/.clang-format @@ -6,6 +6,8 @@ # Use tabs whenever we need to fill whitespace that spans at least from one tab # stop to the next one. +# +# These settings are mirrored in .editorconfig. Keep them in sync. UseTab: Always TabWidth: 8 IndentWidth: 8 @@ -146,8 +148,21 @@ SpacesInSquareBrackets: false Cpp11BracedListStyle: false # A list of macros that should be interpreted as foreach loops instead of as -# function calls. -ForEachMacros: ['for_each_string_list_item'] +# function calls. Taken from: +# git grep -h '^#define [^[:space:]]*for_each[^[:space:]]*(' \ +# | sed "s,^#define \([^[:space:]]*for_each[^[:space:]]*\)(.*$, - '\1'," \ +# | sort | uniq +ForEachMacros: + - 'for_each_abbrev' + - 'for_each_builtin' + - 'for_each_string_list_item' + - 'for_each_ut' + - 'for_each_wanted_builtin' + - 'list_for_each' + - 'list_for_each_dir' + - 'list_for_each_prev' + - 'list_for_each_prev_safe' + - 'list_for_each_safe' # The maximum number of consecutive empty lines to keep. MaxEmptyLinesToKeep: 1