Skip to content

Commit

Permalink
Add member access tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikir committed Nov 26, 2024
1 parent e34ec5c commit 3918c12
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
24 changes: 24 additions & 0 deletions test/language/member_access/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
add_library(member_access_zs STATIC ${TEST_ZS_ROOT}/member_access.zs)
zserio_generate_cpp(
TARGET member_access_zs
SRC_DIR ${TEST_ZS_ROOT}
GEN_DIR ${CMAKE_CURRENT_BINARY_DIR}/gen
EXTRA_ARGS ${ZSERIO_EXTRA_ARGS}
GENERATED_SOURCES_VAR GENERATED_SOURCES
OUTPUT_VAR ZSERIO_LOG
ERROR_VAR ZSERIO_LOG
)
target_link_libraries(member_access_zs PUBLIC ZserioCpp17Runtime)
if (ZSERIO_LOG)
file(WRITE ${CMAKE_CURRENT_BINARY_DIR}/zserio_log.txt "${ZSERIO_LOG}")
check_zserio_warnings("${ZSERIO_LOG}" 0)
endif ()

add_custom_test(member_access
DEPENDS
member_access_zs
SOURCES
#
GENERATED_SOURCES
${GENERATED_SOURCES}
)
1 change: 1 addition & 0 deletions test/language/member_access/ClangTidySuppressions.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
performance-move-const-arg:gen/member_access/access_within_type/Message.cpp

0 comments on commit 3918c12

Please sign in to comment.