From: commit-queue@webkit.org Date: Wed, 20 Oct 2021 17:18:12 +0000 (+0000) Subject: Add ObjC as supported .clang-format language X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=70be32d56267fba4d1cfc35e72b1d8aab4ea759c Add ObjC as supported .clang-format language https://bugs.webkit.org/show_bug.cgi?id=230401 Patch by Kimmo Kinnunen on 2021-10-20 Reviewed by Jonathan Bedard. Add ObjC and change few properties useful for ObjC formatting. * .clang-format: git-svn-id: https://svn.webkit.org/repository/webkit/trunk@284543 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/.clang-format b/.clang-format index eb85667e40a9..da2407cafda9 100644 --- a/.clang-format +++ b/.clang-format @@ -1,5 +1,4 @@ --- -Language: Cpp # BasedOnStyle: WebKit AccessModifierOffset: -4 AlignAfterOpenBracket: DontAlign @@ -62,10 +61,14 @@ IncludeCategories: - Regex: '^"config\.h"' Priority: -1 # The main header for a source file automatically gets category 0 + - Regex: '^<.*SoftLink.h>' + Priority: 4 + - Regex: '^".*SoftLink.h"' + Priority: 3 + - Regex: '^<.*>' + Priority: 2 - Regex: '.*' Priority: 1 - - Regex: '^<.*\.h>' - Priority: 2 IncludeIsMainRegex: '(Test)?$' IndentCaseLabels: false IndentWidth: 4 @@ -106,5 +109,7 @@ SpacesInSquareBrackets: false Standard: Cpp11 TabWidth: 8 UseTab: Never +--- +Language: ObjC +PointerAlignment: Right ... - diff --git a/ChangeLog b/ChangeLog index 3db8ac9ba2e2..cdc06ecd48c6 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,15 @@ +2021-10-20 Kimmo Kinnunen + + Add ObjC as supported .clang-format language + https://bugs.webkit.org/show_bug.cgi?id=230401 + + Reviewed by Jonathan Bedard. + + Add ObjC and change few properties useful + for ObjC formatting. + + * .clang-format: + 2021-10-20 Carlos Garcia Campos [WPE] Reenable -fvisibility=hidden and -fvisibility-inlines-hidden