[webkit-reviews] review requested: [Bug 183302] Add clang-format configuration : [Attachment 334924] Patch

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Mar 2 13:53:44 PST 2018


Don Olmstead <don.olmstead at sony.com> has asked	for review:
Bug 183302: Add clang-format configuration
https://bugs.webkit.org/show_bug.cgi?id=183302

Attachment 334924: Patch

https://bugs.webkit.org/attachment.cgi?id=334924&action=review




--- Comment #2 from Don Olmstead <don.olmstead at sony.com> ---
Comment on attachment 334924
  --> https://bugs.webkit.org/attachment.cgi?id=334924
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=334924&action=review

This file was created by running the following

clang-format --dump-config -style=WebKit > .clang-format

> .clang-format:68
> +IncludeCategories:
> +  - Regex:		'^"config\.h"'
> +    Priority:	-1
> +  # The main header for a source file automatically gets category 0
> +  - Regex:		'.*'
> +    Priority:	1
> +  - Regex:		'^<.*\.h>'
> +    Priority:	2

This is the only part modified from the stock WebKit configuration. If its not
present then clang-format won't keep "config.h" configs at the top.


More information about the webkit-reviews mailing list