run clang-tidy with readability-braces-around-statements (#2899)

* run clang-tidy with readability-braces-around-statements
clang-format the results
clean up all the parts that clang-tidy-8 broke

* fix problem on windows
This commit is contained in:
Greg Landrum
2020-01-25 14:19:32 +01:00
committed by GitHub
parent fb3cad523e
commit d41752d558
261 changed files with 7449 additions and 3545 deletions

View File

@@ -101,7 +101,9 @@ void test1() {
} catch (...) {
continue;
}
if (!mol) continue;
if (!mol) {
continue;
}
ssslib.addMol(*mol);
delete mol;
}
@@ -122,11 +124,12 @@ void test1() {
int i=0;
for(auto lib: libs) {
ROMol *query = SmartsToMol("[#6;$([#6]([#6])[!#6])]");
if (i == 0)
if (i == 0) {
hasMatch = runTest(*lib, *query, 1);
else
} else {
runTest(*lib, *query, 1, hasMatch);
}
#ifdef RDK_TEST_MULTITHREADED
runTest(*lib, *query, -1, hasMatch);
#endif
@@ -137,10 +140,11 @@ void test1() {
i = 0;
for(auto lib: libs) {
ROMol *query = SmartsToMol("[$([O,S]-[!$(*=O)])]");
if (i == 0)
if (i == 0) {
hasMatch = runTest(*lib, *query, 1);
else
} else {
runTest(*lib, *query, 1, hasMatch);
}
#ifdef RDK_TEST_MULTITHREADED
runTest(*lib, *query, -1, hasMatch);
@@ -172,7 +176,9 @@ void test2() {
} catch (...) {
continue;
}
if (!mol) continue;
if (!mol) {
continue;
}
ssslib.addMol(*mol);
delete mol;
}