-
Notifications
You must be signed in to change notification settings - Fork 107
clang-tidy fixes for f3dwy #3199
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -138,7 +138,7 @@ typedef struct bandmat_type { | |
| * * | ||
| ******************************************************************/ | ||
|
|
||
| #define PVODE_BAND_ELEM(A, i, j) ((A->data)[j][i - j + (A->smu)]) | ||
| #define PVODE_BAND_ELEM(A, i, j) (((A)->data)[j][(i) - (j) + ((A)->smu)]) | ||
|
|
||
| /****************************************************************** | ||
| * * | ||
|
|
@@ -153,7 +153,7 @@ typedef struct bandmat_type { | |
| * * | ||
| ******************************************************************/ | ||
|
|
||
| #define PVODE_BAND_COL(A, j) (((A->data)[j]) + (A->smu)) | ||
| #define PVODE_BAND_COL(A, j) ((((A)->data)[j]) + ((A)->smu)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: function-like macro 'PVODE_BAND_COL' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage] #define PVODE_BAND_COL(A, j) ((((A)->data)[j]) + ((A)->smu))
^ |
||
|
|
||
| /****************************************************************** | ||
| * * | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -153,7 +153,7 @@ typedef struct bandmat_type { | |
| * * | ||
| ******************************************************************/ | ||
|
|
||
| #define PVODE_BAND_COL(A, j) (((A->data)[j]) + (A->smu)) | ||
| #define PVODE_BAND_COL(A, j) ((((A)->data)[j]) + ((A)->smu)) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: function-like macro 'PVODE_BAND_COL' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage] #define PVODE_BAND_COL(A, j) ((((A)->data)[j]) + ((A)->smu))
^ |
||
|
|
||
| /****************************************************************** | ||
| * * | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -166,8 +166,8 @@ protected: | |
| #if HS_USE_PETSC | ||
| PetscLib* petsclib; | ||
| bool isInit{false}; | ||
| Mat petscWeights; | ||
| Vec rhs, result; | ||
| Mat petscWeights{}; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: member variable 'petscWeights' has protected visibility [cppcoreguidelines-non-private-member-variables-in-classes] Mat petscWeights{};
^ |
||
| Vec rhs{}, result{}; | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: member variable 'result' has protected visibility [cppcoreguidelines-non-private-member-variables-in-classes] Vec rhs{}, result{};
^
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. warning: member variable 'rhs' has protected visibility [cppcoreguidelines-non-private-member-variables-in-classes] Vec rhs{}, result{};
^ |
||
| #endif | ||
|
|
||
| public: | ||
|
|
||
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.
warning: function-like macro 'PVODE_BAND_ELEM' used; consider a 'constexpr' template function [cppcoreguidelines-macro-usage]