clang-tidy: Major clang-tidy fixes#297
Conversation
5c545de to
3a01389
Compare
|
Main errors right now appear to be with the address sanitizer, which is to be expected with these many changes. Yep, some mistakes on my part. Hmm, now the pytests are failing 🤔 I would have thought that these would pass if the ctests were passing. |
3a01389 to
9f84b0d
Compare
Signed-off-by: Cristian Le <[email protected]>
There are many naively distorted crystal structures with respect to ideal symmetry. ctests covers very basis ones, but pytest does more cases. It results in entering specific routines to recover from detailed different symptoms. I feel this PR is dangerous. It would be helpful to divide into small commits. |
Indeed that would be ideal, but it will take a bit of time yo detangle them. At least the safe ones we have it in the other 2 commits.
Hmm I think we should address #291 and its equivalent googletest to actually report the specifics of how it fails. It should be possible to map the pytests 1-to-1 onto the ctests, but it would require a bit of organization, mainly split the unit-tests from the functional tests. All of the python and fortran api tests are only functional ones, and those should be identically covered and use a common set of inputs that we synchronize through a file. For this testpytests should be moved to When to label a test as a unit-test or functional testunit test
functional test
integration test (yes, there's one more technically)
|
5c0ca04 to
32ffcb6
Compare
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
50288e0 to
0725ad1
Compare
Signed-off-by: Cristian Le <[email protected]>
80c3e5f to
5e7c295
Compare
- Moved loop variables initialization inside - Removed conditional initializations - Made a few static const arrays const - Reduced goto statements - Added missing assertion checks - Resolved some memory leaks Signed-off-by: Cristian Le <[email protected]>
Signed-off-by: Cristian Le <[email protected]>
5e7c295 to
41c458e
Compare
Manually fix various
clang-tidyfixesThis PR concerns the commit 3a01389. This should be reviewed carefully. If I have the energy I might split them off at some point.
Basically what this commit does is:
(Prone to initialization errors)
I'll pull up some examples in the commit to show some of the changes