Skip to content

Commit b41f0fd

Browse files
authored
Update .clang-format: set InsertNewlineAtEOF to Yes (#138)
Updating to follow suit from NVIDIA/cuda-quantum#2771. Update run_clang_format.sh to catch CUDA files too. --------- Signed-off-by: Ben Howe <[email protected]>
1 parent 3d101e1 commit b41f0fd

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+51
-50
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ IncludeCategories:
77
Priority: 2
88
- Regex: '.*'
99
Priority: 1
10+
InsertNewlineAtEOF: Yes

docs/sphinx/examples/solvers/cpp/adapt_h2.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,4 @@ int main() {
3737
h, opPool, {{"grad_norm_tolerance", 1e-3}});
3838

3939
printf("Final <H> = %.12lf\n", energy);
40-
}
40+
}

docs/sphinx/examples/solvers/cpp/molecular_docking_qaoa.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,4 +57,4 @@ int main() {
5757
std::cout << "Sampled states: ";
5858
opt_config.dump();
5959
std::cout << "Optimal configuraiton: " << opt_config.most_probable() << "\n";
60-
}
60+
}

docs/sphinx/examples/solvers/cpp/uccsd_vqe.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ int main() {
5151
{{"verbose", true}});
5252

5353
printf("Final <H> = %.12lf\n", energy);
54-
}
54+
}

libs/core/include/cuda-qx/core/extension_point.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,4 +199,4 @@ class extension_point {
199199
return registry; \
200200
}
201201

202-
} // namespace cudaqx
202+
} // namespace cudaqx

libs/core/include/cuda-qx/core/graph.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,4 @@ class graph {
119119
void clear();
120120
};
121121

122-
} // namespace cudaqx
122+
} // namespace cudaqx

libs/core/include/cuda-qx/core/heterogeneous_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,4 +200,4 @@ class heterogeneous_map {
200200
}
201201
};
202202

203-
} // namespace cudaqx
203+
} // namespace cudaqx

libs/core/include/cuda-qx/core/tear_down.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ class tear_down {
3232
/// @brief Schedule a new tear down routine
3333
void scheduleTearDown(std::unique_ptr<tear_down>);
3434

35-
} // namespace cudaqx
35+
} // namespace cudaqx

libs/core/include/cuda-qx/core/tuple_utils.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,4 @@ void tuple_for_each(TupleType &&t, FunctionType f) {
3636
std::integral_constant<size_t, 0>());
3737
}
3838

39-
} // namespace cudaqx
39+
} // namespace cudaqx

libs/core/include/cuda-qx/core/type_traits.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,4 +116,4 @@ constexpr std::string_view type_to_string<std::complex<float>>() {
116116
return "complex<float>";
117117
}
118118

119-
} // namespace cudaqx
119+
} // namespace cudaqx

0 commit comments

Comments
 (0)