• Home
  • Raw
  • Download

Lines Matching +full:stringop +full:- +full:overflow

4 # CMake version 3.16 is the 'de-facto' minimum version for flatbuffers. If the
42 option(FLATBUFFERS_STATIC_FLATC "Build flatbuffers compiler with -static flag"
54 "Add '-fsanitize' flags to 'flattests' and 'flatc' targets."
67 "Run C++ code generator with '--cpp-std c++0x' switch."
75 "Skip generating monster_extra.fbs that contains non-supported numerical\"
78 "Build flatbuffers with all warnings as errors (-Werror or /WX)."
94 add_definitions(-DFLATBUFFERS_MAX_PARSING_DEPTH=${FLATBUFFERS_MAX_PARSING_DEPTH})
98 # Auto-detect locale-narrow 'strtod_l' and 'strtoull_l' functions.
114 add_definitions(-DFLATBUFFERS_LOCALE_INDEPENDENT=$<BOOL:${FLATBUFFERS_LOCALE_INDEPENDENT}>)
283 # https://stackoverflow.com/questions/71772330/override-target-compile-options-via-cmake-command-li…
303 # override default by user-defined sanitizer list
307 -g -fsigned-char -fno-omit-frame-pointer
308 "-fsanitize${_sanitizer_flags}")
310 "-fsanitize${_sanitizer_flags}")
343 # We shouldn't rely on any compiler-extensions to make things work.
363 -Wall
364 -Wno-unknown-warning-option
366 -Werror # Treat all compiler warnings as errors
368 # False positive string overflow
370 -Wno-error=stringop-overflow
372 -pedantic
373 -Wextra
374 -Wno-unused-parameter
375 -Wold-style-cast
376 -Wimplicit-fallthrough
377 -fsigned-char
378 -Wnon-virtual-dtor
381 -Wmissing-declarations
382 -Wzero-as-null-pointer-constant
384 -Wimplicit-fallthrough
385 -Wextra-semi
387 -Werror=unused-private-field
394 -Wunused-result
395 -Wunused-parameter
396 -Werror=unused-parameter
397 -Wmissing-declarations
400 -Wzero-as-null-pointer-constant
403 -faligned-new
405 -Werror=implicit-fallthrough=2
409 -Wextra-semi
414 -g
415 -fprofile-arcs
416 -ftest-coverage
423 -fprofile-arcs
424 -ftest-coverage
465 target_link_libraries(flatc PRIVATE -static)
478 # - micro updated every release when there is no API/ABI changes
479 # - minor updated when there are additions in API/ABI
480 # - major (ABI number) updated when there are changes in ABI (or removals)
508 set(OPT ${OPT};--cpp-std c++0x)
510 # --cpp-std is defined by flatc default settings.
518 --cpp --gen-mutable --gen-object-api --reflect-names
519 --cpp-ptr-type flatbuffers::unique_ptr # Used to test with C++98 STLs
521 -I "${CMAKE_CURRENT_SOURCE_DIR}/tests/include_test"
522 -o "${SRC_FBS_DIR}"
530 compile_flatbuffers_schema_to_cpp_opt(${SRC_FBS} "--no-includes;--gen-compare")
541 -b --schema --bfbs-comments --bfbs-builtins
542 --bfbs-filenames ${SRC_FBS_DIR}
543 -I "${CMAKE_CURRENT_SOURCE_DIR}/tests/include_test"
544 -o "${SRC_FBS_DIR}"
553 set(OPT ${OPT};--cpp-std c++0x)
555 # --cpp-std is defined by flatc default settings.
564 --cpp --gen-mutable --gen-object-api --reflect-names
565 --cpp-ptr-type flatbuffers::unique_ptr # Used to test with C++98 STLs
567 --bfbs-comments --bfbs-builtins --bfbs-gen-embed
568 --bfbs-filenames ${SRC_FBS_DIR}
569 -I "${CMAKE_CURRENT_SOURCE_DIR}/tests/include_test"
570 -o "${SRC_FBS_DIR}"
581 # TODO Add (monster_test.fbs monsterdata_test.json)->monsterdata_test.mon
584 …ema_to_cpp_opt(tests/namespace_test/namespace_test1.fbs "--no-includes;--gen-compare;--gen-name-st…
585 …ema_to_cpp_opt(tests/namespace_test/namespace_test2.fbs "--no-includes;--gen-compare;--gen-name-st…
586 …s_schema_to_cpp_opt(tests/union_vector/union_vector.fbs "--no-includes;--gen-compare;--gen-name-st…
589 compile_flatbuffers_schema_to_cpp_opt(tests/arrays_test.fbs "--scoped-enums;--gen-compare")
591 …compile_flatbuffers_schema_to_embedded_binary(tests/monster_test.fbs "--no-includes;--gen-compare")
593 compile_flatbuffers_schema_to_cpp(tests/monster_extra.fbs) # Test floating-point NAN/INF.
740 # This target is sync-barrier.
741 # Other generate-dependent targets can depend on 'generated_code' only.