fix(clang): add exception for stack_chk naming
The identifiers __stack_chk_guard and __stack_check_fail throw the
bugprone-reserved-identifier error from clang tidy. However since these
identifiers are used by the compiler when "-fstack-protector-all" is
enabled they cannot be renamed so we add an exception in .clang-tidy for
them.
Signed-off-by: Daniel Boulby <daniel.boulby@arm.com>
Change-Id: I9751b13102c46c669a8516916c18fc3776bde9d1
diff --git a/.clang-tidy b/.clang-tidy
index d5d72dd..673dd47 100644
--- a/.clang-tidy
+++ b/.clang-tidy
@@ -2,3 +2,6 @@
HeaderFilterRegex: '^(?!third_party).+'
FormatStyle: file
WarningsAsErrors: '*'
+CheckOptions:
+ - key: bugprone-reserved-identifier.AllowedIdentifiers
+ value: "__stack_chk_guard;__stack_chk_fail"