Skip to content

Commit 2e1ed51

Browse files
GHA clang-format (#31)
* check file formatting * Committing clang-format changes --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 93b5b61 commit 2e1ed51

8 files changed

Lines changed: 227 additions & 227 deletions

File tree

.github/workflows/pull_request.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
uses: NWChemEx/.github/.github/workflows/common_pull_request.yaml@master
2626
with:
2727
config_file: '.github/.licenserc.yaml'
28-
source_dir: ''
28+
source_dir: 'include src tests'
2929
compilers: '["gcc-11", "clang-14"]'
3030
doc_target: 'scf_cxx_api'
3131
secrets: inherit

include/scf/scf.hpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,25 @@
1515
*/
1616

1717
#pragma once
18+
#include <scf/driver/commutator.hpp>
1819
#include <scf/scf_mm.hpp>
1920
#include <simde/simde.hpp>
20-
#include <scf/driver/commutator.hpp>
2121
#ifdef BUILD_TAMM_SCF
2222
#include <tamm/tamm.hpp>
2323
#endif
2424

2525
namespace scf {
2626

27-
inline auto initialize(int argc, char *argv[]) {
27+
inline auto initialize(int argc, char* argv[]) {
2828
#ifdef BUILD_TAMM_SCF
29-
tamm::initialize(argc, argv);
29+
tamm::initialize(argc, argv);
3030
#endif
31-
return parallelzone::runtime::RuntimeView(argc, argv);
31+
return parallelzone::runtime::RuntimeView(argc, argv);
3232
}
3333

3434
inline auto finalize() {
3535
#ifdef BUILD_TAMM_SCF
36-
tamm::finalize();
36+
tamm::finalize();
3737
#endif
3838
}
3939

src/python/export_scf.cpp

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -21,20 +21,19 @@
2121
namespace scf {
2222

2323
EXPORT_PLUGIN(scf, m) {
24-
pybind11::module::import("parallelzone");
25-
m.def("initialize", [](pybind11::list py_args) {
26-
std::vector<std::string> args;
27-
for (const auto &arg : py_args)
28-
args.push_back(arg.cast<std::string>());
24+
pybind11::module::import("parallelzone");
25+
m.def("initialize", [](pybind11::list py_args) {
26+
std::vector<std::string> args;
27+
for(const auto& arg : py_args) args.push_back(arg.cast<std::string>());
2928

30-
std::vector<char *> argv;
31-
for (const auto &arg : args)
32-
argv.push_back(const_cast<char *>(arg.c_str()));
29+
std::vector<char*> argv;
30+
for(const auto& arg : args)
31+
argv.push_back(const_cast<char*>(arg.c_str()));
3332

34-
int argc = static_cast<int>(argv.size());
35-
return scf::initialize(argc, argv.data());
36-
});
37-
m.def("finalize", []() { scf::finalize(); });
33+
int argc = static_cast<int>(argv.size());
34+
return scf::initialize(argc, argv.data());
35+
});
36+
m.def("finalize", []() { scf::finalize(); });
3837
}
3938

4039
} // namespace scf

src/scf/matrix_builder/electronic_energy.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,9 @@ MODULE_RUN(ElectronicEnergy) {
9999
}
100100
if(i == 0)
101101
e = temp;
102-
else { e("") = e("") + temp(""); }
102+
else {
103+
e("") = e("") + temp("");
104+
}
103105
}
104106

105107
auto rv = results();

0 commit comments

Comments
 (0)