summaryrefslogtreecommitdiff
path: root/src/amd/compiler/.clang-format
diff options
context:
space:
mode:
authorGeorg Lehmann <dadschoorse@gmail.com>2023-03-26 20:27:14 +0200
committerMarge Bot <emma+marge@anholt.net>2023-03-27 20:43:22 +0000
commitdde7c5506c742252be1402a62273638f94e24c58 (patch)
tree601bcbe7994223f198c755bf07e33f9681d3b56f /src/amd/compiler/.clang-format
parent40a00fc0652d4525eb1bf1969742855abb75602f (diff)
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 <pendingchaos02@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/22122>
Diffstat (limited to 'src/amd/compiler/.clang-format')
-rw-r--r--src/amd/compiler/.clang-format3
1 files changed, 3 insertions, 0 deletions
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: '^(!|;|>>|~)'