From dde7c5506c742252be1402a62273638f94e24c58 Mon Sep 17 00:00:00 2001 From: Georg Lehmann Date: Sun, 26 Mar 2023 20:27:14 +0200 Subject: [PATCH] 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 Part-of: --- 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 e8adaad..84332d8 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: '^(!|;|>>|~)' -- 2.7.4