Module: Mesa Branch: main Commit: dde7c5506c742252be1402a62273638f94e24c58 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=dde7c5506c742252be1402a62273638f94e24c58
Author: Georg Lehmann <[email protected]> Date: Sun Mar 26 20:27:14 2023 +0200 aco: make .clang-format usable with tests Code between BEGIN_TEST and END_TEST should be indented, and comments used by the test itself should not be reformatted. Reviewed-by: Rhys Perry <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22122> --- src/amd/compiler/.clang-format | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/amd/compiler/.clang-format b/src/amd/compiler/.clang-format index e8adaad2b40..84332d8d742 100644 --- a/src/amd/compiler/.clang-format +++ b/src/amd/compiler/.clang-format @@ -128,3 +128,6 @@ IncludeCategories: - Regex: '.*' Priority: 5 +MacroBlockBegin: 'BEGIN_TEST' +MacroBlockEnd: 'END_TEST' +CommentPragmas: '^(!|;|>>|~)'
