Skip to content

Commit

Permalink
Add check for 'm_' prefix in class members
Browse files Browse the repository at this point in the history
  • Loading branch information
vaithak committed Nov 22, 2023
1 parent d99d4ab commit 4a18c59
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .clang-tidy
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ CheckOptions:
value: aNy_CasE
- key: readability-identifier-naming.MemberCase
value: aNy_CasE
- key: readability-identifier-naming.ClassMemberPrefix
value: 'm_'
- key: readability-identifier-naming.ParameterCase
value: aNy_CasE
- key: readability-identifier-naming.UnionCase
Expand Down
4 changes: 4 additions & 0 deletions include/clad/Differentiator/VectorForwardModeVisitor.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ class VectorForwardModeVisitor : public BaseForwardModeVisitor {
/// the derivatives.
clang::Expr* m_IndVarCountExpr;

clang::Expr* test;
clang::Expr* m_test;
clang::Expr* M_test;

public:
VectorForwardModeVisitor(DerivativeBuilder& builder);
~VectorForwardModeVisitor();
Expand Down

0 comments on commit 4a18c59

Please sign in to comment.