<commit_before># add a configuration type with the define C4_QUICKTEST
# to make a quick test covering less combinations

include(GetFlags)

get_define(dquicktest C4_QUICKTEST)
add_configuration_type(Quicktest
    DEFAULT_FROM DEBUG
    C_FLAGS ${dquicktest}
    CXX_FLAGS ${dquicktest}
    )
get_define(duse_assert C4_USE_ASSERT)
get_define(duse_xassert C4_USE_XASSERT)
add_configuration_type(QuicktestRelease
    DEFAULT_FROM RELEASE
    C_FLAGS "${dquicktest} ${duse_assert} ${duse_xassert}"
    CXX_FLAGS "${dquicktest} ${duse_assert} ${duse_xassert}"
    )

option(C4STL_PEDANTIC "Compile in pedantic mode" OFF)
if(C4STL_PEDANTIC)
    if(MSVC)
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wall")
    else()
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wshadow -pedantic -Wfloat-equal -fstrict-aliasing")
    endif()
endif()

option(C4STL_WERROR "Compile with compiler warnings as errors" OFF)
if(C4STL_WERROR)
    if(MSVC)<commit_msg>cmake: fix code to get_defines for configuration_types<commit_after># add a configuration type with the define C4_QUICKTEST
# to make a quick test covering less combinations

include(GetFlags)

get_define_flags(qtdefs C4_QUICKTEST)
add_configuration_type(Quicktest
    DEFAULT_FROM DEBUG
    C_FLAGS ${qtdefs}
    CXX_FLAGS ${qtdefs}
    )
get_define_flags(qtreldefs C4_USE_ASSERT C4_USE_XASSERT)
add_configuration_type(QuicktestRelease
    DEFAULT_FROM RELEASE
    C_FLAGS ${qtreldefs}
    CXX_FLAGS ${qtreldefs}
    )

option(C4STL_PEDANTIC "Compile in pedantic mode" OFF)
if(C4STL_PEDANTIC)
    if(MSVC)
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /Wall")
    else()
        set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -Wshadow -pedantic -Wfloat-equal -fstrict-aliasing")
    endif()
endif()

option(C4STL_WERROR "Compile with compiler warnings as errors" OFF)
if(C4STL_WERROR)
    if(MSVC)
{'fraction_non_alphanumeric': 0.0872591006423983, 'fraction_numerical': 0.008565310492505354, 'mean_word_length': 5.068181818181818, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '616010', 'n_tokens_mistral': 706, 'n_tokens_neox': 673, 'n_words': 148}