Lines Matching +full:clang +full:- +full:tidy
12 execute_process(COMMAND ${ASTYLE_TOOL} --version OUTPUT_VARIABLE ASTYLE_TOOL_VERSION ERROR_VARIABLE…
13 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" ASTYLE_TOOL_VERSION "${ASTYLE_TOOL_VERSION}")
16 find_program(CLANG_TOOL NAMES clang++-HEAD clang++-15 clang++-14 clang++-13 clang++-12 clang++-11 c…
17 execute_process(COMMAND ${CLANG_TOOL} --version OUTPUT_VARIABLE CLANG_TOOL_VERSION ERROR_VARIABLE C…
18 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" CLANG_TOOL_VERSION "${CLANG_TOOL_VERSION}")
19 message(STATUS " Clang ${CLANG_TOOL_VERSION} (${CLANG_TOOL})")
21 find_program(CLANG_TIDY_TOOL NAMES clang-tidy-15 clang-tidy-14 clang-tidy-13 clang-tidy-12 clang-ti…
22 execute_process(COMMAND ${CLANG_TIDY_TOOL} --version OUTPUT_VARIABLE CLANG_TIDY_TOOL_VERSION ERROR_…
23 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" CLANG_TIDY_TOOL_VERSION "${CLANG_TIDY_TOOL_VERSION}")
24 message(STATUS " Clang-Tidy ${CLANG_TIDY_TOOL_VERSION} (${CLANG_TIDY_TOOL})")
29 execute_process(COMMAND ${CPPCHECK_TOOL} --version OUTPUT_VARIABLE CPPCHECK_TOOL_VERSION ERROR_VARI…
30 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" CPPCHECK_TOOL_VERSION "${CPPCHECK_TOOL_VERSION}")
33 find_program(GCC_TOOL NAMES g++-latest g++-HEAD g++-11 g++-10)
34 execute_process(COMMAND ${GCC_TOOL} --version OUTPUT_VARIABLE GCC_TOOL_VERSION ERROR_VARIABLE GCC_T…
35 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" GCC_TOOL_VERSION "${GCC_TOOL_VERSION}")
38 find_program(GCOV_TOOL NAMES gcov-HEAD gcov-11 gcov-10 gcov)
39 execute_process(COMMAND ${GCOV_TOOL} --version OUTPUT_VARIABLE GCOV_TOOL_VERSION ERROR_VARIABLE GCO…
40 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" GCOV_TOOL_VERSION "${GCOV_TOOL_VERSION}")
44 execute_process(COMMAND ${GIT_TOOL} --version OUTPUT_VARIABLE GIT_TOOL_VERSION ERROR_VARIABLE GIT_T…
45 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" GIT_TOOL_VERSION "${GIT_TOOL_VERSION}")
48 find_program(IWYU_TOOL NAMES include-what-you-use iwyu)
49 execute_process(COMMAND ${IWYU_TOOL} --version OUTPUT_VARIABLE IWYU_TOOL_VERSION ERROR_VARIABLE IWY…
50 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" IWYU_TOOL_VERSION "${IWYU_TOOL_VERSION}")
51 message(STATUS " include-what-you-use ${IWYU_TOOL_VERSION} (${IWYU_TOOL})")
54 execute_process(COMMAND ${INFER_TOOL} --version OUTPUT_VARIABLE INFER_TOOL_VERSION ERROR_VARIABLE I…
55 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" INFER_TOOL_VERSION "${INFER_TOOL_VERSION}")
59 execute_process(COMMAND ${LCOV_TOOL} --version OUTPUT_VARIABLE LCOV_TOOL_VERSION ERROR_VARIABLE LCO…
60 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" LCOV_TOOL_VERSION "${LCOV_TOOL_VERSION}")
64 execute_process(COMMAND ${NINJA_TOOL} --version OUTPUT_VARIABLE NINJA_TOOL_VERSION ERROR_VARIABLE N…
65 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" NINJA_TOOL_VERSION "${NINJA_TOOL_VERSION}")
68 find_program(OCLINT_TOOL NAMES oclint-json-compilation-database)
70 execute_process(COMMAND ${OCLINT_VERSION_TOOL} --version OUTPUT_VARIABLE OCLINT_TOOL_VERSION ERROR_…
71 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" OCLINT_TOOL_VERSION "${OCLINT_TOOL_VERSION}")
75 execute_process(COMMAND ${VALGRIND_TOOL} --version OUTPUT_VARIABLE VALGRIND_TOOL_VERSION ERROR_VARI…
76 string(REGEX MATCH "[0-9]+(\\.[0-9]+)+" VALGRIND_TOOL_VERSION "${VALGRIND_TOOL_VERSION}")
80 find_program(PLOG_CONVERTER_TOOL NAMES plog-converter)
81 find_program(PVS_STUDIO_ANALYZER_TOOL NAMES pvs-studio-analyzer)
82 find_program(SCAN_BUILD_TOOL NAMES scan-build-15 scan-build-14 scan-build-13 scan-build-12 scan-bui…
91 # Ignored Clang warnings:
92 # -Wno-c++98-compat The library targets C++11.
93 # -Wno-c++98-compat-pedantic The library targets C++11.
94 # -Wno-deprecated-declarations The library contains annotations for deprecated functions.
95 # -Wno-extra-semi-stmt The library uses std::assert which triggers this warning.
96 # -Wno-padded We do not care about padding warnings.
97 # -Wno-covered-switch-default All switches list all cases and a default case.
98 # -Wno-weak-vtables The library is header-only.
99 # -Wreserved-identifier See https://github.com/onqtam/doctest/issues/536.
102 -Werror
103 -Weverything
104 -Wno-c++98-compat
105 -Wno-c++98-compat-pedantic
106 -Wno-deprecated-declarations
107 -Wno-extra-semi-stmt
108 -Wno-padded
109 -Wno-covered-switch-default
110 -Wno-weak-vtables
111 -Wno-reserved-identifier
116 # -Wno-abi-tag We do not care about ABI tags.
117 # -Wno-aggregate-return The library uses aggregate returns.
118 # -Wno-long-long The library uses the long long type to interface with system func…
119 # -Wno-namespaces The library uses namespaces.
120 # -Wno-padded We do not care about padding warnings.
121 # -Wno-system-headers We do not care about warnings in system headers.
122 # -Wno-templates The library uses templates.
125 -pedantic
126 -Werror
127 --all-warnings
128 --extra-warnings
129 -W
130 -WNSObject-attribute
131 -Wno-abi-tag
132 -Waddress
133 -Waddress-of-packed-member
134 -Wno-aggregate-return
135 -Waggressive-loop-optimizations
136 -Waligned-new=all
137 -Wall
138 -Walloc-zero
139 -Walloca
140 -Wanalyzer-double-fclose
141 -Wanalyzer-double-free
142 -Wanalyzer-exposure-through-output-file
143 -Wanalyzer-file-leak
144 -Wanalyzer-free-of-non-heap
145 -Wanalyzer-malloc-leak
146 -Wanalyzer-mismatching-deallocation
147 -Wanalyzer-null-argument
148 -Wanalyzer-null-dereference
149 -Wanalyzer-possible-null-argument
150 -Wanalyzer-possible-null-dereference
151 -Wanalyzer-shift-count-negative
152 -Wanalyzer-shift-count-overflow
153 -Wanalyzer-stale-setjmp-buffer
154 -Wanalyzer-tainted-allocation-size
155 -Wanalyzer-tainted-array-index
156 -Wanalyzer-tainted-divisor
157 -Wanalyzer-tainted-offset
158 -Wanalyzer-tainted-size
159 -Wanalyzer-too-complex
160 -Wanalyzer-unsafe-call-within-signal-handler
161 -Wanalyzer-use-after-free
162 -Wanalyzer-use-of-pointer-in-stale-stack-frame
163 -Wanalyzer-use-of-uninitialized-value
164 -Wanalyzer-va-arg-type-mismatch
165 -Wanalyzer-va-list-exhausted
166 -Wanalyzer-va-list-leak
167 -Wanalyzer-va-list-use-after-va-end
168 -Wanalyzer-write-to-const
169 -Wanalyzer-write-to-string-literal
170 -Warith-conversion
171 -Warray-bounds=2
172 -Warray-compare
173 -Warray-parameter=2
174 -Wattribute-alias=2
175 -Wattribute-warning
176 -Wattributes
177 -Wbool-compare
178 -Wbool-operation
179 -Wbuiltin-declaration-mismatch
180 -Wbuiltin-macro-redefined
181 -Wc++0x-compat
182 -Wc++11-compat
183 -Wc++11-extensions
184 -Wc++14-compat
185 -Wc++14-extensions
186 -Wc++17-compat
187 -Wc++17-extensions
188 -Wc++1z-compat
189 -Wc++20-compat
190 -Wc++20-extensions
191 -Wc++23-extensions
192 -Wc++2a-compat
193 -Wcannot-profile
194 -Wcast-align
195 -Wcast-align=strict
196 -Wcast-function-type
197 -Wcast-qual
198 -Wcatch-value=3
199 -Wchar-subscripts
200 -Wclass-conversion
201 -Wclass-memaccess
202 -Wclobbered
203 -Wcomma-subscript
204 -Wcomment
205 -Wcomments
206 -Wconditionally-supported
207 -Wconversion
208 -Wconversion-null
209 -Wcoverage-invalid-line-number
210 -Wcoverage-mismatch
211 -Wcpp
212 -Wctad-maybe-unsupported
213 -Wctor-dtor-privacy
214 -Wdangling-else
215 -Wdangling-pointer=2
216 -Wdate-time
217 -Wdelete-incomplete
218 -Wdelete-non-virtual-dtor
219 -Wdeprecated
220 -Wdeprecated-copy
221 -Wdeprecated-copy-dtor
222 -Wdeprecated-declarations
223 -Wdeprecated-enum-enum-conversion
224 -Wdeprecated-enum-float-conversion
225 -Wdisabled-optimization
226 -Wdiv-by-zero
227 -Wdouble-promotion
228 -Wduplicated-branches
229 -Wduplicated-cond
230 -Weffc++
231 -Wempty-body
232 -Wendif-labels
233 -Wenum-compare
234 -Wenum-conversion
235 -Wexceptions
236 -Wexpansion-to-defined
237 -Wextra
238 -Wextra-semi
239 -Wfloat-conversion
240 -Wfloat-equal
241 -Wformat-diag
242 -Wformat-overflow=2
243 -Wformat-signedness
244 -Wformat-truncation=2
245 -Wformat=2
246 -Wframe-address
247 -Wfree-nonheap-object
248 -Whsa
249 -Wif-not-aligned
250 -Wignored-attributes
251 -Wignored-qualifiers
252 -Wimplicit-fallthrough=5
253 -Winaccessible-base
254 -Winfinite-recursion
255 -Winherited-variadic-ctor
256 -Winit-list-lifetime
257 -Winit-self
258 -Winline
259 -Wint-in-bool-context
260 -Wint-to-pointer-cast
261 -Winterference-size
262 -Winvalid-imported-macros
263 -Winvalid-memory-model
264 -Winvalid-offsetof
265 -Winvalid-pch
266 -Wliteral-suffix
267 -Wlogical-not-parentheses
268 -Wlogical-op
269 -Wno-long-long
270 -Wlto-type-mismatch
271 -Wmain
272 -Wmaybe-uninitialized
273 -Wmemset-elt-size
274 -Wmemset-transposed-args
275 -Wmisleading-indentation
276 -Wmismatched-dealloc
277 -Wmismatched-new-delete
278 -Wmismatched-tags
279 -Wmissing-attributes
280 -Wmissing-braces
281 -Wmissing-declarations
282 -Wmissing-field-initializers
283 -Wmissing-include-dirs
284 -Wmissing-profile
285 -Wmissing-requires
286 -Wmissing-template-keyword
287 -Wmultichar
288 -Wmultiple-inheritance
289 -Wmultistatement-macros
290 -Wno-namespaces
291 -Wnarrowing
292 -Wnoexcept
293 -Wnoexcept-type
294 -Wnon-template-friend
295 -Wnon-virtual-dtor
296 -Wnonnull
297 -Wnonnull-compare
298 -Wnormalized=nfkc
299 -Wnull-dereference
300 -Wodr
301 -Wold-style-cast
302 -Wopenacc-parallelism
303 -Wopenmp-simd
304 -Woverflow
305 -Woverlength-strings
306 -Woverloaded-virtual
307 -Wpacked
308 -Wpacked-bitfield-compat
309 -Wpacked-not-aligned
310 -Wno-padded
311 -Wparentheses
312 -Wpedantic
313 -Wpessimizing-move
314 -Wplacement-new=2
315 -Wpmf-conversions
316 -Wpointer-arith
317 -Wpointer-compare
318 -Wpragmas
319 -Wprio-ctor-dtor
320 -Wpsabi
321 -Wrange-loop-construct
322 -Wredundant-decls
323 -Wredundant-move
324 -Wredundant-tags
325 -Wregister
326 -Wreorder
327 -Wrestrict
328 -Wreturn-local-addr
329 -Wreturn-type
330 -Wscalar-storage-order
331 -Wsequence-point
332 -Wshadow=compatible-local
333 -Wshadow=global
334 -Wshadow=local
335 -Wshift-count-negative
336 -Wshift-count-overflow
337 -Wshift-negative-value
338 -Wshift-overflow=2
339 -Wsign-compare
340 -Wsign-conversion
341 -Wsign-promo
342 -Wsized-deallocation
343 -Wsizeof-array-argument
344 -Wsizeof-array-div
345 -Wsizeof-pointer-div
346 -Wsizeof-pointer-memaccess
347 -Wstack-protector
348 -Wstrict-aliasing=3
349 -Wstrict-null-sentinel
350 -Wno-strict-overflow
351 -Wstring-compare
352 -Wstringop-overflow=4
353 -Wstringop-overread
354 -Wstringop-truncation
355 -Wsubobject-linkage
356 -Wsuggest-attribute=cold
357 -Wsuggest-attribute=const
358 -Wsuggest-attribute=format
359 -Wsuggest-attribute=malloc
360 -Wsuggest-attribute=noreturn
361 -Wsuggest-attribute=pure
362 -Wsuggest-final-methods
363 -Wsuggest-final-types
364 -Wsuggest-override
365 -Wswitch
366 -Wswitch-bool
367 -Wswitch-default
368 -Wswitch-enum
369 -Wswitch-outside-range
370 -Wswitch-unreachable
371 -Wsync-nand
372 -Wsynth
373 -Wno-system-headers
374 -Wtautological-compare
375 -Wno-templates
376 -Wterminate
377 -Wtrampolines
378 -Wtrigraphs
379 -Wtrivial-auto-var-init
380 -Wtsan
381 -Wtype-limits
382 -Wundef
383 -Wuninitialized
384 -Wunknown-pragmas
385 -Wunreachable-code
386 -Wunsafe-loop-optimizations
387 -Wunused
388 -Wunused-but-set-parameter
389 -Wunused-but-set-variable
390 -Wunused-const-variable=2
391 -Wunused-function
392 -Wunused-label
393 -Wunused-local-typedefs
394 -Wunused-macros
395 -Wunused-parameter
396 -Wunused-result
397 -Wunused-value
398 -Wunused-variable
399 -Wuse-after-free=3
400 -Wuseless-cast
401 -Wvarargs
402 -Wvariadic-macros
403 -Wvector-operation-performance
404 -Wvexing-parse
405 -Wvirtual-inheritance
406 -Wvirtual-move-assign
407 -Wvla
408 -Wvla-parameter
409 -Wvolatile
410 -Wvolatile-register-var
411 -Wwrite-strings
412 -Wzero-as-null-pointer-constant
413 -Wzero-length-bounds
418 -DCMAKE_BUILD_TYPE=Debug -GNinja
419 -DJSON_BuildTests=ON
420 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_gcc
421 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_gcc
422 …ND cd ${PROJECT_BINARY_DIR}/build_gcc && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
428 -DCMAKE_BUILD_TYPE=Debug -GNinja
429 -DJSON_BuildTests=ON
430 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_clang
431 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_clang
432 … cd ${PROJECT_BINARY_DIR}/build_clang && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
433 COMMENT "Compile and test with Clang using maximal warning flags"
443 -DCMAKE_BUILD_TYPE=Debug -GNinja
444 -DJSON_BuildTests=ON -DJSON_FastTests=ON
445 -DJSON_TestStandards=${CXX_STANDARD}
446 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_gcc_cxx${CXX_STANDARD}
447 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_gcc_cxx${CXX_STANDARD}
448 …ARY_DIR}/build_gcc_cxx${CXX_STANDARD} && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
454 -DCMAKE_BUILD_TYPE=Debug -GNinja
455 -DJSON_BuildTests=ON -DJSON_FastTests=ON
456 -DJSON_TestStandards=${CXX_STANDARD}
457 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_clang_cxx${CXX_STANDARD}
458 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_clang_cxx${CXX_STANDARD}
459 …Y_DIR}/build_clang_cxx${CXX_STANDARD} && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
460 COMMENT "Compile and test with Clang for C++${CXX_STANDARD}"
470 -DCMAKE_BUILD_TYPE=Debug -GNinja
471 -DJSON_BuildTests=ON -DCMAKE_CXX_FLAGS=-DJSON_NOEXCEPTION -DDOCTEST_TEST_FILTER=--no-throw
472 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_noexceptions
473 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_noexceptions
474 …ROJECT_BINARY_DIR}/build_noexceptions && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
484 -DCMAKE_BUILD_TYPE=Debug -GNinja
485 -DJSON_BuildTests=ON -DJSON_ImplicitConversions=OFF
486 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_noimplicitconversions
487 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_noimplicitconversions
488 …NARY_DIR}/build_noimplicitconversions && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
498 -DCMAKE_BUILD_TYPE=Debug -GNinja
499 -DJSON_BuildTests=ON -DJSON_Diagnostics=ON
500 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_diagnostics
501 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_diagnostics
502 …PROJECT_BINARY_DIR}/build_diagnostics && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
512 -DCMAKE_BUILD_TYPE=Debug -GNinja
513 -DJSON_BuildTests=ON -DJSON_LegacyDiscardedValueComparison=ON
514 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_legacycomparison
515 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_legacycomparison
516 …CT_BINARY_DIR}/build_legacycomparison && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
526 -DCMAKE_BUILD_TYPE=Debug -GNinja
527 -DJSON_BuildTests=ON -DJSON_FastTests=ON -DJSON_GlobalUDLs=OFF
528 -DCMAKE_CXX_FLAGS=-DJSON_TEST_NO_GLOBAL_UDLS
529 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_noglobaludls
530 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_noglobaludls
531 …ROJECT_BINARY_DIR}/build_noglobaludls && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
541 … -DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_CXX_FLAGS="--coverage;-fprofile-arcs;-ftest-coverage"
542 -DJSON_BuildTests=ON
543 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_coverage
544 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_coverage
545 … ${PROJECT_BINARY_DIR}/build_coverage && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
548 …-DCMAKE_BUILD_TYPE=Debug -GNinja -DCMAKE_CXX_FLAGS="-m32;--coverage;-fprofile-arcs;-ftest-coverage"
549 -DJSON_BuildTests=ON -DJSON_32bitTest=ONLY
550 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_coverage32
551 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_coverage32
552 …{PROJECT_BINARY_DIR}/build_coverage32 && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
554 COMMAND ${LCOV_TOOL} --directory . --capture --output-file json.info --rc lcov_branch_coverage=1
555 …COMMAND ${LCOV_TOOL} -e json.info ${SRC_FILES} --output-file json.info.filtered --rc lcov_branch_c…
557 …COMMAND genhtml --title "JSON for Modern C++" --legend --demangle-cpp --output-directory html --sh…
566 …-g -O1 -fsanitize=address -fsanitize=undefined -fsanitize=integer -fsanitize=nullability -fno-omit…
570 -DCMAKE_BUILD_TYPE=Debug -GNinja
571 -DJSON_BuildTests=ON
572 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_clang_sanitizer
573 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_clang_sanitizer
574 …ECT_BINARY_DIR}/build_clang_sanitizer && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
582 …--style=allman --indent=spaces=4 --indent-modifiers --indent-switches --indent-preproc-block --ind…
595 COMMAND rm -fr ${include_dir}/json.hpp~ ${include_dir}/json_fwd.hpp~
599 COMMAND ${Python3_EXECUTABLE} ${tool_dir}/amalgamate.py -c ${tool_dir}/config_json.json -s .
600 COMMAND ${Python3_EXECUTABLE} ${tool_dir}/amalgamate.py -c ${tool_dir}/config_json_fwd.json -s .
601 …COMMAND ${ASTYLE_TOOL} ${ASTYLE_FLAGS} --suffix=none --quiet ${include_dir}/json.hpp ${include_dir…
607 COMMAND for FILE in `find . -name '*.orig'`\; do false \; done
619 -DCMAKE_BUILD_TYPE=Debug -GNinja
620 -DJSON_BuildTests=ON -DJSON_MultipleHeaders=OFF -DJSON_FastTests=ON
621 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_single_header
622 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_single_header
623 …OJECT_BINARY_DIR}/build_single_header && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
624 COMMENT "Compile and test single-header version"
633 -DCMAKE_BUILD_TYPE=Debug -GNinja
634 -DJSON_BuildTests=ON -DJSON_Valgrind=ON
635 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_valgrind
636 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_valgrind
637 …CT_BINARY_DIR}/build_valgrind && ${CMAKE_CTEST_COMMAND} -L valgrind --parallel ${N} --output-on-fa…
642 # Check code with Clang Static Analyzer.
645 …ptin.cplusplus.UninitializedObject,optin.cplusplus.VirtualCall,optin.mpi.MPI-Checker,optin.osx.OSO…
649 -DCMAKE_BUILD_TYPE=Debug -GNinja
650 -DJSON_BuildTests=ON
651 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_clang_analyze
652 …lang_analyze && ${SCAN_BUILD_TOOL} -enable-checker ${CLANG_ANALYZER_CHECKS} --use-c++=${CLANG_TOOL…
653 COMMENT "Check code with Clang Analyzer"
661 …--enable=warning --suppress=missingReturn --inline-suppr --inconclusive --force --std=c++11 ${PROJ…
670 …y --filter=-whitespace,-legal,-runtime/references,-runtime/explicit,-runtime/indentation_namespace…
687 -DCMAKE_BUILD_TYPE=Debug
688 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
689 -DJSON_BuildTests=OFF -DJSON_CI=ON
690 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_oclint
691 …COMMAND ${OCLINT_TOOL} -i ${PROJECT_BINARY_DIR}/build_oclint/src_single/all.cpp -p ${PROJECT_BINAR…
692 …-report-type html -enable-global-analysis --max-priority-1=0 --max-priority-2=1000 --max-priority-…
693 --disable-rule=MultipleUnaryOperator
694 --disable-rule=DoubleNegative
695 --disable-rule=ShortVariableName
696 --disable-rule=GotoStatement
697 --disable-rule=LongLine
698 -o ${PROJECT_BINARY_DIR}/build_oclint/oclint_report.html
703 # Check code with Clang-Tidy.
708 -DCMAKE_BUILD_TYPE=Debug -GNinja
709 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON -DCMAKE_CXX_CLANG_TIDY=${CLANG_TIDY_TOOL}
710 -DJSON_BuildTests=ON
711 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_clang_tidy
712 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_clang_tidy
713 COMMENT "Check code with Clang-Tidy"
717 # Check code with PVS-Studio Analyzer <https://www.viva64.com/en/pvs-studio/>.
722 -DCMAKE_BUILD_TYPE=Debug
723 -DCMAKE_EXPORT_COMPILE_COMMANDS=ON
724 -DJSON_BuildTests=ON
725 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_pvs_studio
726 COMMAND cd ${PROJECT_BINARY_DIR}/build_pvs_studio && ${PVS_STUDIO_ANALYZER_TOOL} analyze -j 10
727 …NARY_DIR}/build_pvs_studio && ${PLOG_CONVERTER_TOOL} -a'GA:1,2;64:1;CS' -t fullhtml PVS-Studio.log…
736 COMMAND mkdir -p ${PROJECT_BINARY_DIR}/build_infer
737 …DIR}/build_infer && ${INFER_TOOL} compile -- ${CMAKE_COMMAND} -DCMAKE_BUILD_TYPE=Debug ${PROJECT_S…
738 COMMAND cd ${PROJECT_BINARY_DIR}/build_infer && ${INFER_TOOL} run -- make
747 COMMAND mkdir -p ${PROJECT_BINARY_DIR}/build_offline_testdata/test_data
748 …ata && ${GIT_TOOL} clone -c advice.detachedHead=false --branch v3.1.0 https://github.com/nlohmann/…
750 -DCMAKE_BUILD_TYPE=Debug -GNinja
751 …-DJSON_BuildTests=ON -DJSON_FastTests=ON -DJSON_TestDataDirectory=${PROJECT_BINARY_DIR}/build_offl…
752 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_offline_testdata
753 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_offline_testdata
754 …CT_BINARY_DIR}/build_offline_testdata && ${CMAKE_CTEST_COMMAND} --parallel ${N} --output-on-failure
763 COMMAND git config --global --add safe.directory ${PROJECT_SOURCE_DIR}
764 COMMAND mkdir -p ${PROJECT_BINARY_DIR}/build_non_git_tests/sources
765 …MAND cd ${PROJECT_SOURCE_DIR} && for FILE in `${GIT_TOOL} ls-tree --name-only HEAD`\; do cp -r $$F…
767 -DCMAKE_BUILD_TYPE=Debug -GNinja
768 -DJSON_BuildTests=ON -DJSON_FastTests=ON
769 … -S${PROJECT_BINARY_DIR}/build_non_git_tests/sources -B${PROJECT_BINARY_DIR}/build_non_git_tests
770 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_non_git_tests
771 …RY_DIR}/build_non_git_tests && ${CMAKE_CTEST_COMMAND} --parallel ${N} -LE git_required --output-on…
781 -DCMAKE_BUILD_TYPE=Debug -GNinja
782 -DJSON_BuildTests=ON -DJSON_FastTests=ON
783 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_reproducible_tests
784 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_reproducible_tests
785 …/build_reproducible_tests && ${CMAKE_CTEST_COMMAND} --parallel ${N} -LE not_reproducible --output-…
794 set(iwyu_path_and_options ${IWYU_TOOL} -Xiwyu --max_line_length=300)
815 COMMENT "Check if headers are self-contained"
824 -DCMAKE_BUILD_TYPE=Release -GNinja
825 -S${PROJECT_SOURCE_DIR}/benchmarks -B${PROJECT_BINARY_DIR}/build_benchmarks
826 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_benchmarks --target json_benchmarks
837 set(${var} ${PROJECT_BINARY_DIR}/cmake-${version}-Darwin64/CMake.app/Contents/bin/cmake)
840 …COMMAND wget -nc https://github.com/Kitware/CMake/releases/download/v${version}/cmake-${version}-D…
841 COMMAND tar xfz cmake-${version}-Darwin64.tar.gz
842 COMMAND rm cmake-${version}-Darwin64.tar.gz
847 set(${var} ${PROJECT_BINARY_DIR}/cmake-${version}-Linux-x86_64/bin/cmake)
850 …COMMAND wget -nc https://github.com/Kitware/CMake/releases/download/v${version}/cmake-${version}-L…
851 COMMAND tar xfz cmake-${version}-Linux-x86_64.tar.gz
852 COMMAND rm cmake-${version}-Linux-x86_64.tar.gz
874 -Werror=dev
875 -D${flag}=ON
876 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_${flag_target}
880 COMMAND mkdir -pv ${PROJECT_BINARY_DIR}/build_${flag_target}_${min_version_var}
882 && ${cmake_binary} -Werror=dev ${PROJECT_SOURCE_DIR} -D${flag}=ON
908 …-4.8 g++-4.9 g++-5 g++-6 g++-7 g++-8 g++-9 g++-10 g++-11 clang++-3.5 clang++-3.6 clang++-3.7 clang…
911 if ("${COMPILER}" STREQUAL "clang++-9")
912 …# fix for https://github.com/nlohmann/json/pull/3101#issuecomment-998788786 / https://stackoverflo…
913 set(ADDITIONAL_FLAGS "-DCMAKE_CXX_FLAGS=--gcc-toolchain=/root/gcc/9")
920 -DCMAKE_BUILD_TYPE=Debug -GNinja
921 -DJSON_BuildTests=ON -DJSON_FastTests=ON
922 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_compiler_${COMPILER}
924 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_compiler_${COMPILER}
925 …compiler_${COMPILER} && ${CMAKE_CTEST_COMMAND} --parallel ${N} --exclude-regex "test-unicode" --ou…
938 -DCMAKE_BUILD_TYPE=Debug -GNinja
939 -DCMAKE_CUDA_HOST_COMPILER=g++-8
940 -S${PROJECT_SOURCE_DIR}/tests/cuda_example -B${PROJECT_BINARY_DIR}/build_cuda_example
941 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_cuda_example
950 -DCMAKE_BUILD_TYPE=Debug -GNinja
951 -DCMAKE_C_COMPILER=icc -DCMAKE_CXX_COMPILER=icpc
952 -DJSON_BuildTests=ON -DJSON_FastTests=ON
953 -S${PROJECT_SOURCE_DIR} -B${PROJECT_BINARY_DIR}/build_icpc
954 COMMAND ${CMAKE_COMMAND} --build ${PROJECT_BINARY_DIR}/build_icpc
955 …NARY_DIR}/build_icpc && ${CMAKE_CTEST_COMMAND} --parallel ${N} --exclude-regex "test-unicode" --ou…
964 COMMAND make CXX="${GCC_TOOL}" check_output_portable -j8
980 …COMMAND rm -fr ${PROJECT_BINARY_DIR}/build_* cmake-3.1.0-Darwin64 ${JSON_CMAKE_FLAG_BUILD_DIRS} ${…