-
Notifications
You must be signed in to change notification settings - Fork 122
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes in github actions for clang-tidy and clang-format #611
Conversation
|
||
CheckOptions: | ||
- key: readability-identifier-naming.ClassCase | ||
value: CamelCase | ||
value: aNy_CasE |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed this because clad::array
and clad::matrix
are small cases but Visitors are capital cases.
.clang-tidy
Outdated
@@ -26,14 +26,15 @@ Checks: > | |||
-readability-magic-numbers, | |||
-readability-named-parameter, | |||
-readability-function-cognitive-complexity, | |||
-cppcoreguidelines-pro-bounds-pointer-arithmetic, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed this check because clad::array deals with pointer arithmetic
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we disable that check if a comment in that particular file?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think so; there is a similar discussion here: isocpp/CppCoreGuidelines#862 for implementing a vector-like container.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How about using that approach: https://clang.llvm.org/extra/clang-tidy/#suppressing-undesired-diagnostics
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yup, it worked. I had no idea about this 😅
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There seem to be some unrelated failure with ubuntu22 and llvm 13. Otherwise, lgtm!
No description provided.