Skip to content

Commit c9aae62

Browse files
committed
[core] now use clang-format-14 as default in formatting cpp command
1 parent b1f8a15 commit c9aae62

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cmake/modules/AutoClangFormat.cmake

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,11 @@ add_custom_target(format-cpp-files
2121
COMMAND find ${DIRS_TO_FORMAT_CPP} ${FIND_TO_FORMAT_CPP})
2222

2323
#
24-
# Use clang-format-12 for code format
24+
# Use clang-format-14 for code format
2525
#
2626
add_custom_target(format-cpp
2727
COMMAND find ${DIRS_TO_FORMAT_CPP} ${FIND_TO_FORMAT_CPP} |
28-
xargs -P ${CPU_COUNT} clang-format-12 -style=file -i)
28+
xargs -P ${CPU_COUNT} clang-format-14 -style=file -i)
2929

3030
#
3131
# Use simple python script for fixing C like boxed comments

libs/libvtrutil/src/vtr_geometry.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class Point {
7777
friend bool operator!=<>(Point<T> lhs, Point<T> rhs);
7878

7979
///@brief < operator
80-
friend bool operator<<>(Point<T> lhs, Point<T> rhs);
80+
friend bool operator< <>(Point<T> lhs, Point<T> rhs);
8181

8282
public: //Mutators
8383
///@brief Set x and y values

libs/libvtrutil/src/vtr_strong_id.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ class StrongId {
206206
///@brief != operator
207207
friend bool operator!=<>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
208208
///@brief < operator
209-
friend bool operator<<>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
209+
friend bool operator< <>(const StrongId<tag, T, sentinel>& lhs, const StrongId<tag, T, sentinel>& rhs);
210210

211211
private:
212212
T id_;

0 commit comments

Comments
 (0)