Skip to content

Commit 4a98fd7

Browse files
author
MarkusB
committed
after applying pre-commit first-time
1 parent 26845da commit 4a98fd7

6 files changed

Lines changed: 19 additions & 8 deletions

File tree

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,8 @@
99
build/
1010
/compile_commands.json
1111

12+
# python
13+
venv
14+
1215
# misc
1316
CMakeUserPresets.json

CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,10 @@ target_sources(
3737
PUBLIC FILE_SET HEADERS BASE_DIRS "${CMAKE_CURRENT_SOURCE_DIR}/include"
3838
)
3939

40-
set_target_properties(mb.cpp-lib-template PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON)
40+
set_target_properties(
41+
mb.cpp-lib-template
42+
PROPERTIES VERIFY_INTERFACE_HEADER_SETS ON
43+
)
4144

4245
add_subdirectory(include/mb/cpp-lib-template)
4346

examples/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ message("Examples to be built: ${ALL_EXAMPLES}")
44

55
foreach(example ${ALL_EXAMPLES})
66
add_executable(mb.cpp-lib-template.examples.${example})
7-
target_sources(mb.cpp-lib-template.examples.${example} PRIVATE ${example}.cpp)
7+
target_sources(
8+
mb.cpp-lib-template.examples.${example}
9+
PRIVATE ${example}.cpp
10+
)
811
target_link_libraries(
912
mb.cpp-lib-template.examples.${example}
1013
PRIVATE mb::cpp-lib-template
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1-
target_sources(mb.cpp-lib-template PUBLIC FILE_SET HEADERS FILES cpp-lib-template.hpp)
1+
target_sources(
2+
mb.cpp-lib-template
3+
PUBLIC FILE_SET HEADERS FILES cpp-lib-template.hpp
4+
)

include/mb/cpp-lib-template/cpp-lib-template.hpp

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,9 @@
44
#include <cstdint>
55

66
namespace mb::cpp_lib_template {
7-
inline int32_t sum( int32_t a, int32_t b ) {
8-
return
9-
a + b ;
10-
}
7+
inline int32_t sum(int32_t a, int32_t b) {
8+
return a + b;
119
}
10+
} // namespace mb::cpp_lib_template
1211

1312
#endif

src/cpp-lib-template/cpp-lib-template.test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ TEST(SumTest, neg) {
1414
TEST(SumTest, zero) {
1515
EXPECT_EQ(sum(0, 5), 5);
1616
}
17-
}
17+
} // namespace mb::cpp_lib_template

0 commit comments

Comments
 (0)