Skip to content

Commit e70c483

Browse files
authored
Update clang-format for LLVM 22 (#549)
Signed-off-by: Angela Burton <angelab@nvidia.com>
1 parent dfd4983 commit e70c483

3 files changed

Lines changed: 4 additions & 5 deletions

File tree

.github/workflows/pr_sanity_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ concurrency:
1111
cancel-in-progress: true
1212

1313
env:
14-
LLVM_VERSION: 16
14+
LLVM_VERSION: 22
1515

1616
jobs:
1717
check-changes:

libs/core/unittests/test_core.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -672,9 +672,8 @@ TEST(TensorTest, CopyData) {
672672

673673
TEST(TensorTest, TakeData) {
674674
std::vector<std::size_t> shape = {2, 2};
675-
auto data = new std::complex<double>[4] {
676-
{1.0, 0.0}, {0.0, 1.0}, {0.0, -1.0}, { 1.0, 0.0 }
677-
};
675+
auto data = new std::complex<double>[4]{
676+
{1.0, 0.0}, {0.0, 1.0}, {0.0, -1.0}, {1.0, 0.0}};
678677
cudaqx::tensor t(shape);
679678

680679
t.take(data, shape);

libs/solvers/include/cudaq/solvers/operators/molecule/molecule_package_driver.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class MoleculePackageDriver
4141

4242
/// Virtual destructor needed when deleting an instance of a derived class
4343
/// via a pointer to the base class.
44-
virtual ~MoleculePackageDriver(){};
44+
virtual ~MoleculePackageDriver() {};
4545
};
4646

4747
} // namespace cudaq::solvers

0 commit comments

Comments
 (0)