Skip to content

Commit 7abfcf6

Browse files
clang-tidy warning as error
1 parent 43d940c commit 7abfcf6

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/linux.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
compiler: clang-18
3838
protoc: find
3939
sanitize: OFF
40-
extra_cmake_configure_flags: -DCMAKE_CXX_CLANG_TIDY=clang-tidy-18
40+
extra_cmake_configure_flags: "-DCMAKE_CXX_CLANG_TIDY=clang-tidy-18;-warnings-as-errors=*"
4141

4242
runs-on: ubuntu-24.04
4343

include/hpp_proto/hpp_options.proto

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
syntax = "proto2";
12
import "google/protobuf/descriptor.proto";
23
package hpp.proto;
34

third-parties.cmake

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ get_target_property(IS_UTF8_COMPILER_OPTIONS is_utf8 COMPILE_OPTIONS)
2727
if(IS_UTF8_COMPILER_OPTIONS MATCHES "fsanitize=address")
2828
message(FATAL_ERROR "is_utf8 is not compatible with address sanitizer")
2929
endif()
30+
set_target_properties(is_utf8 PROPERTIES CXX_CLANG_TIDY "")
3031

3132
CPMAddPackage("gh:fmtlib/fmt#10.1.0")
3233

0 commit comments

Comments
 (0)