From: Eric Schweitz Date: Mon, 11 Oct 2021 12:05:22 +0000 (+0200) Subject: [fir] Update clang-tidy for the Optimizer directory X-Git-Tag: upstream/15.0.7~29001 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=edec659f480f02642461cebd422ab35152cdfd23;p=platform%2Fupstream%2Fllvm.git [fir] Update clang-tidy for the Optimizer directory Update .clang-tidy file with the value used in fir-dev. This patch is part of the upstreaming effort from fir-dev branch. Reviewed By: rovka Differential Revision: https://reviews.llvm.org/D111525 Co-authored-by: Valentin Clement --- diff --git a/flang/include/flang/Optimizer/.clang-tidy b/flang/include/flang/Optimizer/.clang-tidy index 9a0c8a6..9cc942b 100644 --- a/flang/include/flang/Optimizer/.clang-tidy +++ b/flang/include/flang/Optimizer/.clang-tidy @@ -1,9 +1,19 @@ Checks: '-readability-braces-around-statements,readability-identifier-naming,llvm-include-order,clang-diagnostic-*' InheritParentConfig: true CheckOptions: + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.EnumCase + value: CamelCase + - key: readability-identifier-naming.FunctionCase + value: camelBack - key: readability-identifier-naming.MemberCase value: camelBack - key: readability-identifier-naming.ParameterCase value: camelBack + - key: readability-identifier-naming.UnionCase + value: CamelCase - key: readability-identifier-naming.VariableCase value: camelBack + - key: readability-identifier-naming.IgnoreMainLikeFunctions + value: 1 diff --git a/flang/lib/Optimizer/.clang-tidy b/flang/lib/Optimizer/.clang-tidy index 9a0c8a6..9cc942b 100644 --- a/flang/lib/Optimizer/.clang-tidy +++ b/flang/lib/Optimizer/.clang-tidy @@ -1,9 +1,19 @@ Checks: '-readability-braces-around-statements,readability-identifier-naming,llvm-include-order,clang-diagnostic-*' InheritParentConfig: true CheckOptions: + - key: readability-identifier-naming.ClassCase + value: CamelCase + - key: readability-identifier-naming.EnumCase + value: CamelCase + - key: readability-identifier-naming.FunctionCase + value: camelBack - key: readability-identifier-naming.MemberCase value: camelBack - key: readability-identifier-naming.ParameterCase value: camelBack + - key: readability-identifier-naming.UnionCase + value: CamelCase - key: readability-identifier-naming.VariableCase value: camelBack + - key: readability-identifier-naming.IgnoreMainLikeFunctions + value: 1