Warning: Permanently added '44.223.60.229' (ED25519) to the list of known hosts. You can reproduce this build on your computer by running: sudo dnf install copr-rpmbuild /usr/bin/copr-rpmbuild --verbose --drop-resultdir --task-url https://copr.fedorainfracloud.org/backend/get-build-task/11059310-fedora-rawhide-x86_64 --chroot fedora-rawhide-x86_64 Version: 1.10 PID: 20217 Logging PID: 20219 Task: {'allow_user_ssh': False, 'appstream': False, 'background': True, 'build_id': 11059310, 'buildroot_pkgs': ['fedora-clang-default-cc'], 'chroot': 'fedora-rawhide-x86_64', 'enable_net': False, 'fedora_review': False, 'git_hash': 'f60f7963200a17dc6d6342bd2006195c51434d56', 'git_repo': 'https://copr-dist-git.fedorainfracloud.org/git/@fedora-llvm-team/clang-monthly-fedora-rebuild/cppcheck', 'isolation': 'default', 'memory_reqs': 2048, 'package_name': 'cppcheck', 'package_version': '2.22.0-1', 'project_dirname': 'clang-monthly-fedora-rebuild', 'project_name': 'clang-monthly-fedora-rebuild', 'project_owner': '@fedora-llvm-team', 'repo_priority': None, 'repos': [{'baseurl': 'https://download.copr.fedorainfracloud.org/results/@fedora-llvm-team/clang-monthly-fedora-rebuild/fedora-rawhide-x86_64/', 'id': 'copr_base', 'name': 'Copr repository', 'priority': None, 'repo_gpgcheck': False}, {'baseurl': 'https://download.copr.fedorainfracloud.org/results/tstellar/fedora-clang-default-cc/fedora-rawhide-x86_64/', 'id': 'copr_tstellar_fedora_clang_default_cc', 'name': 'Additional repo copr_tstellar_fedora_clang_default_cc', 'repo_gpgcheck': False}, {'baseurl': 'https://download.copr.fedorainfracloud.org/results/@fedora-llvm-team/llvm-snapshots-big-merge-20260928/fedora-rawhide-x86_64/', 'id': 'copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928', 'module_hotfixes': True, 'name': 'Additional repo copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928', 'repo_gpgcheck': False}], 'sandbox': '@fedora-llvm-team/clang-monthly-fedora-rebuild--kkleine', 'source_json': {}, 'source_type': None, 'ssh_public_keys': None, 'storage': 0, 'submitter': 'kkleine', 'tags': [], 'task_id': '11059310-fedora-rawhide-x86_64', 'timeout': 90000, 'uses_devel_repo': False, 'with_opts': [], 'without_opts': ['toolchain_clang', 'clang_lto']} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/@fedora-llvm-team/clang-monthly-fedora-rebuild/cppcheck /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck --depth 500 --no-single-branch --recursive cmd: ['git', 'clone', 'https://copr-dist-git.fedorainfracloud.org/git/@fedora-llvm-team/clang-monthly-fedora-rebuild/cppcheck', '/var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck'... Running: git checkout f60f7963200a17dc6d6342bd2006195c51434d56 -- cmd: ['git', 'checkout', 'f60f7963200a17dc6d6342bd2006195c51434d56', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck rc: 0 stdout: stderr: Note: switching to 'f60f7963200a17dc6d6342bd2006195c51434d56'. You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by switching back to a branch. If you want to create a new branch to retain commits you create, you may do so (now or later) by using -c with the switch command. Example: git switch -c Or undo this operation with: git switch - Turn off this advice by setting config variable advice.detachedHead to false HEAD is now at f60f796 automatic import of cppcheck Running: dist-git-client sources cmd: ['dist-git-client', 'sources'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck rc: 0 stdout: stderr: INFO: Reading stdout from command: git rev-parse --abbrev-ref HEAD INFO: Reading stdout from command: git rev-parse HEAD INFO: Reading sources specification file: sources INFO: Downloading cppcheck-2.22.0.tar.gz INFO: Reading stdout from command: curl --help all INFO: Calling: curl -H Pragma: -H 'Accept-Encoding: identity' -o cppcheck-2.22.0.tar.gz --location --connect-timeout 60 --retry 3 --retry-delay 10 --remote-time --show-error --fail --retry-all-errors https://copr-dist-git.fedorainfracloud.org/repo/pkgs/@fedora-llvm-team/clang-monthly-fedora-rebuild/cppcheck/cppcheck-2.22.0.tar.gz/md5/d1eb0c80d4660eed2c93620a2e0b9de3/cppcheck-2.22.0.tar.gz % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 100 4.01M 100 4.01M 0 0 13.00M 0 0 INFO: Reading stdout from command: md5sum cppcheck-2.22.0.tar.gz tail: /var/lib/copr-rpmbuild/main.log: file truncated Running (timeout=90000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck/cppcheck.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1790849817.256227 -r /var/lib/copr-rpmbuild/results/configs/child.cfg --without toolchain_clang --without clang_lto INFO: mock.py version 6.8 starting (python version = 3.14.5, NVR = mock-6.8-1.fc44), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck/cppcheck.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1790849817.256227 -r /var/lib/copr-rpmbuild/results/configs/child.cfg --without toolchain_clang --without clang_lto Start(bootstrap): init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish(bootstrap): init plugins Start: init plugins INFO: tmpfs initialized INFO: selinux enabled INFO: chroot_scan: initialized INFO: compress_logs: initialized Finish: init plugins INFO: Signal handler active Start: run INFO: Start(/var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck/cppcheck.spec) Config(fedora-rawhide-x86_64) Start: clean chroot Finish: clean chroot Mock Version: 6.8 INFO: Mock Version: 6.8 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1790849817.256227/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata INFO: Guessed host environment type: unknown INFO: Using container image: registry.fedoraproject.org/fedora:rawhide INFO: Pulling image: registry.fedoraproject.org/fedora:rawhide INFO: Tagging container image as mock-bootstrap-26192e5a-d8b7-4292-84f1-ff55dd6e7022 INFO: Checking that f302ae09c5da88a921a2279f1716b78a40453a136311e1bc90339822f97dd102 image matches host's architecture INFO: Copy content of container f302ae09c5da88a921a2279f1716b78a40453a136311e1bc90339822f97dd102 to /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1790849817.256227/root INFO: mounting f302ae09c5da88a921a2279f1716b78a40453a136311e1bc90339822f97dd102 with podman image mount INFO: image f302ae09c5da88a921a2279f1716b78a40453a136311e1bc90339822f97dd102 as /var/lib/containers/storage/overlay/1d1ad910df2ed4d61ba1e22d635a40fe26ed19598464fab648317385c585d8e1/merged INFO: umounting image f302ae09c5da88a921a2279f1716b78a40453a136311e1bc90339822f97dd102 (/var/lib/containers/storage/overlay/1d1ad910df2ed4d61ba1e22d635a40fe26ed19598464fab648317385c585d8e1/merged) with podman image umount INFO: Removing image mock-bootstrap-26192e5a-d8b7-4292-84f1-ff55dd6e7022 INFO: Package manager dnf5 detected and used (fallback) INFO: Not updating bootstrap chroot, bootstrap_image_ready=True Start(bootstrap): creating root cache Finish(bootstrap): creating root cache Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Package manager dnf5 detected and used (direct choice) INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-6.1.0-1.fc46.x86_64 rpm-sequoia-1.10.3-1.fc46.x86_64 dnf5-5.4.6.0-1.fc46.x86_64 dnf5-plugins-5.4.6.0-1.fc46.x86_64 Start: installing minimal buildroot with dnf5 Updating and loading repositories: fedora 100% | 120.0 KiB/s | 24.5 KiB | 00m00s Additional repo copr_tstellar_fedora_c 100% | 13.7 KiB/s | 1.5 KiB | 00m00s Additional repo copr_fedora_llvm_team_ 100% | 14.1 KiB/s | 1.5 KiB | 00m00s Copr repository 100% | 14.2 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash x86_64 0:5.3.15-2.fc46 copr_base 8.5 MiB bzip2 x86_64 0:1.0.8-24.fc46 copr_base 90.6 KiB coreutils x86_64 0:9.12-1.fc46 fedora 6.3 MiB cpio x86_64 0:2.15-10.fc46 copr_base 1.1 MiB diffutils x86_64 0:3.12-6.fc45 fedora 1.6 MiB fedora-release-common noarch 0:46-0.1 fedora 4.6 KiB findutils x86_64 1:4.11.0-2.fc46 copr_base 2.0 MiB gawk x86_64 0:5.4.1-1.fc46 copr_base 2.2 MiB glibc-minimal-langpack x86_64 0:2.44.9000-4.fc46 fedora 0.0 B grep x86_64 0:3.12-4.fc45 fedora 1.0 MiB gzip x86_64 0:1.14-4.fc46 copr_base 409.6 KiB info x86_64 0:7.3-3.fc46 copr_base 395.6 KiB patch x86_64 0:2.8-6.fc46 copr_base 247.0 KiB redhat-rpm-config noarch 0:345-4.fc46 fedora 184.2 KiB rpm-build x86_64 0:6.1.0-1.fc46 fedora 312.1 KiB sed x86_64 0:4.10-2.fc45 fedora 866.5 KiB shadow-utils x86_64 2:4.20.0-1.fc46 copr_base 4.0 MiB tar x86_64 2:1.35-9.fc45 fedora 3.0 MiB unzip x86_64 0:6.0-71.fc45 fedora 441.8 KiB util-linux x86_64 0:2.42.4-2.fc46 fedora 3.7 MiB which x86_64 0:2.25-2.fc46 copr_base 79.0 KiB xz x86_64 1:5.8.4-1.fc46 copr_base 1.4 MiB Installing dependencies: R-srpm-macros noarch 0:1.3.7-3.fc45 fedora 3.5 KiB add-determinism x86_64 0:0.7.3-3.fc45 fedora 2.2 MiB alternatives x86_64 0:1.33-6.fc46 copr_base 61.9 KiB ansible-srpm-macros noarch 0:1-22.fc45 fedora 35.7 KiB audit-libs x86_64 0:4.2.1-2.fc45 fedora 390.5 KiB binutils x86_64 0:2.47.50-12.fc46 fedora 24.4 MiB build-reproducibility-srpm-macros noarch 0:0.7.3-3.fc45 fedora 1.2 KiB bzip2-libs x86_64 0:1.0.8-24.fc46 copr_base 92.3 KiB ca-certificates noarch 0:2026.2.90_v9.0.317-1.fc46 fedora 2.6 MiB cmake-srpm-macros noarch 0:4.3.0-5.fc45 fedora 524.0 B coreutils-common x86_64 0:9.12-1.fc46 fedora 11.5 MiB crypto-policies noarch 0:20260713-2.gitc42da77.fc45 fedora 134.3 KiB curl x86_64 0:8.23.0~rc2-1.fc46 fedora 485.6 KiB cyrus-sasl-lib x86_64 0:2.1.28-37.fc45 fedora 2.3 MiB debugedit x86_64 0:5.3-3.fc46 copr_base 220.3 KiB dwz x86_64 0:0.17-3.fc45 fedora 291.1 KiB ed x86_64 0:1.22.6-1.fc46 copr_base 166.9 KiB efi-srpm-macros noarch 0:6-9.fc45 fedora 40.3 KiB elfutils x86_64 0:0.196-1.fc46 fedora 3.2 MiB elfutils-debuginfod-client x86_64 0:0.196-1.fc46 fedora 79.9 KiB elfutils-libelf x86_64 0:0.196-1.fc46 fedora 1.4 MiB elfutils-libs x86_64 0:0.196-1.fc46 fedora 719.6 KiB erlang-srpm-macros noarch 0:0.3.11-2.fc45 fedora 1.9 KiB fedora-gpg-keys noarch 0:46-0.3 fedora 130.3 KiB fedora-release noarch 0:46-0.1 fedora 0.0 B fedora-release-identity-basic noarch 0:46-0.1 fedora 664.0 B fedora-repos noarch 0:46-0.3 fedora 4.9 KiB fedora-repos-rawhide noarch 0:46-0.3 fedora 2.2 KiB file x86_64 0:5.48-3.fc46 fedora 101.9 KiB file-libs x86_64 0:5.48-3.fc46 fedora 12.3 MiB filesystem x86_64 0:3.18-59.fc45 fedora 112.0 B filesystem-srpm-macros noarch 0:3.18-59.fc45 fedora 38.2 KiB fips-provider x86_64 0:1.5.3-1.fc46 fedora 4.8 MiB fonts-srpm-macros noarch 1:5.0.0-4.fc45 fedora 55.8 KiB forge-srpm-macros noarch 0:0.4.0-5.fc45 fedora 38.9 KiB fpc-srpm-macros noarch 0:1.3-17.fc45 fedora 144.0 B gap-srpm-macros noarch 0:2-3.fc45 fedora 2.1 KiB gdb-minimal x86_64 0:17.2-6.fc46 fedora 14.2 MiB gdbm-libs x86_64 1:1.23-12.fc46 copr_base 133.7 KiB ghc-srpm-macros noarch 0:1.10-2.fc45 fedora 792.0 B glibc x86_64 0:2.44.9000-4.fc46 fedora 7.2 MiB glibc-common x86_64 0:2.44.9000-4.fc46 fedora 1.0 MiB glibc-gconv-extra x86_64 0:2.44.9000-4.fc46 fedora 7.7 MiB gmp x86_64 1:6.3.0-6.fc45 fedora 815.2 KiB gnat-srpm-macros noarch 0:7-3.fc45 fedora 1.0 KiB gnome-srpm-macros noarch 0:1.0-2.fc45 fedora 3.5 KiB gnulib-l10n noarch 0:20241231-4.fc46 copr_base 655.0 KiB gnupg2 x86_64 0:2.4.9-18.fc46 copr_base 6.6 MiB gnupg2-dirmngr x86_64 0:2.4.9-18.fc46 copr_base 680.0 KiB gnupg2-gpg-agent x86_64 0:2.4.9-18.fc46 copr_base 729.9 KiB gnupg2-gpgconf x86_64 0:2.4.9-18.fc46 copr_base 266.9 KiB gnupg2-keyboxd x86_64 0:2.4.9-18.fc46 copr_base 222.2 KiB gnupg2-verify x86_64 0:2.4.9-18.fc46 copr_base 399.2 KiB gnutls x86_64 0:3.8.13-5.fc46 fedora 3.8 MiB go-srpm-macros noarch 0:3.8.0-3.fc45 fedora 61.9 KiB gpgverify noarch 0:2.2-5.fc45 fedora 8.7 KiB ima-evm-utils-libs x86_64 0:1.6.2-12.fc46 copr_base 56.4 KiB jansson x86_64 0:2.14-5.fc46 copr_base 101.1 KiB java-srpm-macros noarch 0:1-9.fc45 fedora 870.0 B json-c x86_64 0:0.18-9.fc46 copr_base 86.4 KiB kernel-srpm-macros noarch 0:1.0-30.fc45 fedora 1.9 KiB keyutils-libs x86_64 0:1.6.3-8.fc46 copr_base 50.0 KiB krb5-libs x86_64 0:1.22.2-9.fc45 fedora 2.4 MiB libacl x86_64 0:2.4.0-2.fc45 fedora 43.9 KiB libarchive x86_64 0:3.8.9-2.fc46 copr_base 1.0 MiB libassuan x86_64 0:2.5.7-6.fc46 copr_base 168.0 KiB libattr x86_64 0:2.6.0-2.fc46 copr_base 24.1 KiB libblkid x86_64 0:2.42.4-2.fc46 fedora 282.3 KiB libbrotli x86_64 0:1.2.0-6.fc46 copr_base 876.8 KiB libcap x86_64 0:2.78-2.fc45 fedora 208.2 KiB libcap-ng x86_64 0:0.9.6-1.fc46 fedora 68.8 KiB libcbor x86_64 0:0.14.0-3.fc45 fedora 83.5 KiB libcom_err x86_64 0:1.47.4-2.fc46 copr_base 62.8 KiB libcurl x86_64 0:8.23.0~rc2-1.fc46 fedora 1.1 MiB libeconf x86_64 0:0.7.9-4.fc46 copr_base 69.0 KiB libevent x86_64 0:2.1.13-1.fc46 copr_base 943.1 KiB libfdisk x86_64 0:2.42.4-2.fc46 fedora 392.3 KiB libffi x86_64 0:3.8.0-1.fc46 fedora 95.5 KiB libfido2 x86_64 0:1.17.0-5.fc46 copr_base 257.4 KiB libfsverity x86_64 0:1.7-4.fc45 fedora 24.4 KiB libgcc x86_64 0:16.2.1-2.fc46.1 fedora 270.7 KiB libgcrypt x86_64 0:1.12.4-1.fc46 fedora 1.7 MiB libgomp x86_64 0:16.2.1-2.fc46.1 fedora 577.5 KiB libgpg-error x86_64 0:1.61-2.fc46 copr_base 966.4 KiB libidn2 x86_64 0:2.3.8-4.fc46 copr_base 556.3 KiB libksba x86_64 0:1.8.1-1.fc46 copr_base 428.9 KiB liblastlog2 x86_64 0:2.42.4-2.fc46 fedora 37.6 KiB libmount x86_64 0:2.42.4-2.fc46 fedora 408.9 KiB libnghttp2 x86_64 0:1.69.0-6.fc46 fedora 166.1 KiB libnghttp3 x86_64 0:1.18.0-1.fc46 copr_base 183.7 KiB libpfm x86_64 0:4.13.0-23.fc45 fedora 1.7 MiB libpkgconf x86_64 0:2.5.1-2.fc46 copr_base 85.8 KiB libpsl x86_64 0:0.23.3-1.fc46 copr_base 80.2 KiB libselinux x86_64 0:3.11-5.fc46 fedora 205.2 KiB libselinux-utils x86_64 0:3.11-5.fc46 fedora 306.0 KiB libsemanage x86_64 0:3.11-4.fc46 fedora 320.6 KiB libsepol x86_64 0:3.11-2.fc46 copr_base 944.4 KiB libsmartcols x86_64 0:2.42.4-2.fc46 fedora 188.5 KiB libssh x86_64 0:0.12.2-1.fc45 fedora 725.7 KiB libssh-config noarch 0:0.12.2-1.fc45 fedora 277.0 B libstdc++ x86_64 0:16.2.1-2.fc46.1 fedora 3.1 MiB libtasn1 x86_64 0:4.21.0-2.fc46 copr_base 188.6 KiB libtool-ltdl x86_64 0:2.6.2-1.fc46 fedora 70.0 KiB libunistring x86_64 0:1.1-12.fc46 copr_base 1.7 MiB libusb1 x86_64 0:1.0.30-2.fc45 fedora 180.1 KiB libuuid x86_64 0:2.42.4-2.fc46 fedora 37.2 KiB libverto x86_64 0:0.3.2-13.fc45 fedora 25.3 KiB libxcrypt x86_64 0:4.5.2-4.fc45 fedora 293.2 KiB libxml2 x86_64 0:2.15.4-1.fc46 fedora 1.7 MiB libzstd x86_64 0:1.5.7-6.fc46 copr_base 963.2 KiB linkdupes x86_64 0:0.7.3-3.fc45 fedora 782.1 KiB lua-libs x86_64 0:5.5.1-2.fc46 fedora 298.0 KiB lua-srpm-macros noarch 0:1-18.fc45 fedora 1.3 KiB lz4-libs x86_64 0:1.10.0-5.fc46 copr_base 173.1 KiB meson-srpm-macros noarch 0:1.12.1-2.fc46 fedora 1.7 KiB mpfr x86_64 0:4.2.2-4.fc45 fedora 849.2 KiB ncurses-base noarch 0:6.6-3.fc46 copr_base 329.7 KiB ncurses-libs x86_64 0:6.6-3.fc46 copr_base 959.0 KiB nettle x86_64 0:4.0-5.fc45 fedora 801.9 KiB ngtcp2 x86_64 0:1.22.1-3.fc45 fedora 334.3 KiB ngtcp2-crypto-ossl x86_64 0:1.22.1-3.fc45 fedora 51.6 KiB npth x86_64 0:1.8-5.fc46 copr_base 53.3 KiB ocaml-srpm-macros noarch 0:11-4.fc45 fedora 1.9 KiB openblas-srpm-macros noarch 0:2-22.fc45 fedora 112.0 B openldap x86_64 0:2.6.14-1.fc46 fedora 678.9 KiB openssl-libs x86_64 1:4.0.3-1.fc46 fedora 6.7 MiB p11-kit x86_64 0:0.26.5-1.fc46 copr_base 2.6 MiB p11-kit-trust x86_64 0:0.26.5-1.fc46 copr_base 511.9 KiB package-notes-srpm-macros noarch 0:0.20-2.fc45 fedora 1.6 KiB pam-libs x86_64 0:1.7.2-4.fc46 copr_base 134.4 KiB pcre2 x86_64 0:10.47-1.fc46.2 copr_base 765.7 KiB pcre2-syntax noarch 0:10.47-1.fc46.2 copr_base 281.9 KiB perl-srpm-macros noarch 0:1-65.fc45 fedora 861.0 B pkgconf x86_64 0:2.5.1-2.fc46 copr_base 94.8 KiB pkgconf-m4 noarch 0:2.5.1-2.fc46 copr_base 14.3 KiB pkgconf-pkg-config x86_64 0:2.5.1-2.fc46 copr_base 989.0 B policycoreutils x86_64 0:3.11-2.fc46 copr_base 882.1 KiB popt x86_64 0:1.19-11.fc46 copr_base 132.5 KiB publicsuffix-list-dafsa noarch 0:20260624-2.fc45 fedora 71.3 KiB pyproject-srpm-macros noarch 0:1.23.2-1.fc45 fedora 3.4 KiB python-srpm-macros noarch 0:3.15-2.fc45 fedora 51.6 KiB qt5-srpm-macros noarch 0:5.15.18-3.fc45 fedora 500.0 B qt6-srpm-macros noarch 0:6.11.2-1.fc46 fedora 472.0 B readline x86_64 0:8.3-6.fc46 copr_base 535.4 KiB redhat-systemd-presets noarch 0:102-3.fc45 fedora 1.0 KiB redhat-systemd-presets-common noarch 0:102-3.fc45 fedora 16.9 KiB rpm x86_64 0:6.1.0-1.fc46 fedora 3.1 MiB rpm-build-libs x86_64 0:6.1.0-1.fc46 fedora 288.3 KiB rpm-libs x86_64 0:6.1.0-1.fc46 fedora 1.1 MiB rpm-plugin-selinux x86_64 0:6.1.0-1.fc46 fedora 11.9 KiB rpm-sequoia x86_64 0:1.10.3-1.fc46 copr_base 2.5 MiB rpm-sign-libs x86_64 0:6.1.0-1.fc46 fedora 39.6 KiB rust-srpm-macros noarch 0:28.5-2.fc45 fedora 5.5 KiB selinux-policy noarch 0:45.20-1.fc46 fedora 32.1 KiB selinux-policy-targeted noarch 0:45.20-1.fc46 fedora 19.0 MiB setup noarch 0:2.15.1-2.fc45 fedora 725.6 KiB sqlite-libs x86_64 0:3.53.4-1.fc45 fedora 1.6 MiB systemd-libs x86_64 0:262-3.fc46 fedora 2.8 MiB systemd-standalone-sysusers x86_64 0:262-3.fc46 fedora 981.3 KiB tpm2-tss x86_64 0:4.2.0-1.fc46 copr_base 1.7 MiB tree-sitter-srpm-macros noarch 0:0.4.6-2.fc45 fedora 8.6 KiB util-linux-core x86_64 0:2.42.4-2.fc46 fedora 1.5 MiB xxhash-libs x86_64 0:0.8.4-1.fc46 copr_base 101.7 KiB xz-libs x86_64 1:5.8.4-1.fc46 copr_base 233.8 KiB zig-srpm-macros noarch 0:1-9.fc45 fedora 1.3 KiB zip x86_64 0:3.0-46.fc45 fedora 694.1 KiB zlib-ng-compat x86_64 0:2.3.3-6.fc46 copr_base 173.4 KiB zstd x86_64 0:1.5.7-6.fc46 copr_base 491.6 KiB Installing groups: Buildsystem building group Transaction Summary: Installing: 190 packages Total size of inbound packages is 71 MiB. Need to download 13 MiB. After this operation, 231 MiB extra will be used (install 231 MiB, remove 0 B). [ 1/190] redhat-rpm-config-0:345-4.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/190] rpm-build-0:6.1.0-1.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/190] unzip-0:6.0-71.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/190] fedora-release-common-0:46-0. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/190] glibc-minimal-langpack-0:2.44 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/190] tar-2:1.35-9.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/190] bzip2-0:1.0.8-24.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/190] cpio-0:2.15-10.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/190] which-0:2.25-2.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 10/190] bash-0:5.3.15-2.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 11/190] coreutils-0:9.12-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 12/190] grep-0:3.12-4.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 13/190] patch-0:2.8-6.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 14/190] sed-0:4.10-2.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 15/190] shadow-utils-2:4.20.0-1.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 16/190] util-linux-0:2.42.4-2.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 17/190] diffutils-0:3.12-6.fc45.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 18/190] findutils-1:4.11.0-2.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 19/190] gawk-0:5.4.1-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 20/190] gzip-0:1.14-4.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 21/190] info-0:7.3-3.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 22/190] xz-1:5.8.4-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 23/190] R-srpm-macros-0:1.3.7-3.fc45. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 24/190] ansible-srpm-macros-0:1-22.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 25/190] build-reproducibility-srpm-ma 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 26/190] cmake-srpm-macros-0:4.3.0-5.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 27/190] dwz-0:0.17-3.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 28/190] efi-srpm-macros-0:6-9.fc45.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 29/190] erlang-srpm-macros-0:0.3.11-2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 30/190] file-0:5.48-3.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 31/190] filesystem-srpm-macros-0:3.18 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 32/190] fonts-srpm-macros-1:5.0.0-4.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 33/190] forge-srpm-macros-0:0.4.0-5.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 34/190] fpc-srpm-macros-0:1.3-17.fc45 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 35/190] gap-srpm-macros-0:2-3.fc45.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 36/190] ghc-srpm-macros-0:1.10-2.fc45 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 37/190] gnat-srpm-macros-0:7-3.fc45.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 38/190] gnome-srpm-macros-0:1.0-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 39/190] go-srpm-macros-0:3.8.0-3.fc45 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 40/190] java-srpm-macros-0:1-9.fc45.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 41/190] kernel-srpm-macros-0:1.0-30.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 42/190] lua-srpm-macros-0:1-18.fc45.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 43/190] meson-srpm-macros-0:1.12.1-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 44/190] ocaml-srpm-macros-0:11-4.fc45 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 45/190] openblas-srpm-macros-0:2-22.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 46/190] package-notes-srpm-macros-0:0 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 47/190] perl-srpm-macros-0:1-65.fc45. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 48/190] pyproject-srpm-macros-0:1.23. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 49/190] python-srpm-macros-0:3.15-2.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 50/190] qt5-srpm-macros-0:5.15.18-3.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 51/190] qt6-srpm-macros-0:6.11.2-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 52/190] rpm-0:6.1.0-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 53/190] rust-srpm-macros-0:28.5-2.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 54/190] tree-sitter-srpm-macros-0:0.4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 55/190] zig-srpm-macros-0:1-9.fc45.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 56/190] zip-0:3.0-46.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 57/190] elfutils-0:0.196-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 58/190] elfutils-libelf-0:0.196-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 59/190] glibc-0:2.44.9000-4.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 60/190] libgcc-0:16.2.1-2.fc46.1.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 61/190] libstdc++-0:16.2.1-2.fc46.1.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 62/190] rpm-build-libs-0:6.1.0-1.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 63/190] rpm-libs-0:6.1.0-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 64/190] fedora-repos-0:46-0.3.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 65/190] redhat-systemd-presets-0:102- 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 66/190] glibc-common-0:2.44.9000-4.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 67/190] libacl-0:2.4.0-2.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 68/190] filesystem-0:3.18-59.fc45.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 69/190] coreutils-common-0:9.12-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 70/190] gmp-1:6.3.0-6.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 71/190] libcap-0:2.78-2.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 72/190] openssl-libs-1:4.0.3-1.fc46.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 73/190] audit-libs-0:4.2.1-2.fc45.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 74/190] libsemanage-0:3.11-4.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 75/190] libxcrypt-0:4.5.2-4.fc45.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 76/190] setup-0:2.15.1-2.fc45.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 77/190] libfdisk-0:2.42.4-2.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 78/190] liblastlog2-0:2.42.4-2.fc46.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 79/190] libsmartcols-0:2.42.4-2.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 80/190] libuuid-0:2.42.4-2.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 81/190] util-linux-core-0:2.42.4-2.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 82/190] mpfr-0:4.2.2-4.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 83/190] add-determinism-0:0.7.3-3.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 84/190] linkdupes-0:0.7.3-3.fc45.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 85/190] file-libs-0:5.48-3.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 86/190] elfutils-debuginfod-client-0: 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 87/190] elfutils-libs-0:0.196-1.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 88/190] libpfm-0:4.13.0-23.fc45.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 89/190] glibc-gconv-extra-0:2.44.9000 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 90/190] libgomp-0:16.2.1-2.fc46.1.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 91/190] lua-libs-0:5.5.1-2.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 92/190] rpm-sign-libs-0:6.1.0-1.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 93/190] fedora-gpg-keys-0:46-0.3.noar 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 94/190] fedora-repos-rawhide-0:46-0.3 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 95/190] redhat-systemd-presets-common 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 96/190] ca-certificates-0:2026.2.90_v 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 97/190] crypto-policies-0:20260713-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 98/190] fips-provider-0:1.5.3-1.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 99/190] libselinux-0:3.11-5.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [100/190] libmount-0:2.42.4-2.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [101/190] libblkid-0:2.42.4-2.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [102/190] xz-libs-1:5.8.4-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [103/190] libeconf-0:0.7.9-4.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [104/190] pam-libs-0:1.7.2-4.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [105/190] ed-0:1.22.6-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [106/190] libattr-0:2.6.0-2.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [107/190] ncurses-libs-0:6.6-3.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [108/190] readline-0:8.3-6.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [109/190] bzip2-libs-0:1.0.8-24.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [110/190] libcap-ng-0:0.9.6-1.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [111/190] zlib-ng-compat-0:2.3.3-6.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [112/190] gnupg2-0:2.4.9-18.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [113/190] gpgverify-0:2.2-5.fc45.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [114/190] libgcrypt-0:1.12.4-1.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [115/190] ima-evm-utils-libs-0:1.6.2-12 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [116/190] libfsverity-0:1.7-4.fc45.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [117/190] popt-0:1.19-11.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [118/190] libzstd-0:1.5.7-6.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [119/190] rpm-sequoia-0:1.10.3-1.fc46.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [120/190] sqlite-libs-0:3.53.4-1.fc45.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [121/190] debugedit-0:5.3-3.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [122/190] libarchive-0:3.8.9-2.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [123/190] libxml2-0:2.15.4-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [124/190] pkgconf-pkg-config-0:2.5.1-2. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [125/190] zstd-0:1.5.7-6.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [126/190] curl-0:8.23.0~rc2-1.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [127/190] libsepol-0:3.11-2.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [128/190] pcre2-0:10.47-1.fc46.2.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [129/190] pcre2-syntax-0:10.47-1.fc46.2 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [130/190] libgpg-error-0:1.61-2.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [131/190] gnupg2-verify-0:2.4.9-18.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [132/190] json-c-0:0.18-9.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [133/190] gnulib-l10n-0:20241231-4.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [134/190] libffi-0:3.8.0-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [135/190] p11-kit-0:0.26.5-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [136/190] p11-kit-trust-0:0.26.5-1.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [137/190] alternatives-0:1.33-6.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [138/190] jansson-0:2.14-5.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [139/190] pkgconf-0:2.5.1-2.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [140/190] pkgconf-m4-0:2.5.1-2.fc46.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [141/190] libpkgconf-0:2.5.1-2.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [142/190] libtasn1-0:4.21.0-2.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [143/190] ncurses-base-0:6.6-3.fc46.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [144/190] lz4-libs-0:1.10.0-5.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [145/190] tpm2-tss-0:4.2.0-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [146/190] libassuan-0:2.5.7-6.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [147/190] npth-0:1.8-5.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [148/190] gnupg2-dirmngr-0:2.4.9-18.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [149/190] gnutls-0:3.8.13-5.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [150/190] openldap-0:2.6.14-1.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [151/190] nettle-0:4.0-5.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [152/190] cyrus-sasl-lib-0:2.1.28-37.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [153/190] libtool-ltdl-0:2.6.2-1.fc46.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [154/190] gnupg2-gpg-agent-0:2.4.9-18.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [155/190] gnupg2-gpgconf-0:2.4.9-18.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [156/190] gnupg2-keyboxd-0:2.4.9-18.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [157/190] libevent-0:2.1.13-1.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [158/190] libidn2-0:2.3.8-4.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [159/190] libunistring-0:1.1-12.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [160/190] gdbm-libs-1:1.23-12.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [161/190] libusb1-0:1.0.30-2.fc45.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [162/190] libksba-0:1.8.1-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [163/190] fedora-release-0:46-0.1.noarc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [164/190] gdb-minimal-0:17.2-6.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [165/190] xxhash-libs-0:0.8.4-1.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [166/190] fedora-release-identity-basic 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [167/190] libcurl-0:8.23.0~rc2-1.fc46.x 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [168/190] krb5-libs-0:1.22.2-9.fc45.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [169/190] libssh-0:0.12.2-1.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [170/190] ngtcp2-0:1.22.1-3.fc45.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [171/190] ngtcp2-crypto-ossl-0:1.22.1-3 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [172/190] libverto-0:0.3.2-13.fc45.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [173/190] libssh-config-0:0.12.2-1.fc45 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [174/190] rpm-plugin-selinux-0:6.1.0-1. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [175/190] policycoreutils-0:3.11-2.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [176/190] libselinux-utils-0:3.11-5.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [177/190] libfido2-0:1.17.0-5.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [178/190] libcbor-0:0.14.0-3.fc45.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [179/190] libbrotli-0:1.2.0-6.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [180/190] libnghttp2-0:1.69.0-6.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [181/190] libnghttp3-0:1.18.0-1.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [182/190] libpsl-0:0.23.3-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [183/190] publicsuffix-list-dafsa-0:202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [184/190] keyutils-libs-0:1.6.3-8.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [185/190] libcom_err-0:1.47.4-2.fc46.x8 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [186/190] systemd-standalone-sysusers-0 100% | 2.8 MiB/s | 433.4 KiB | 00m00s [187/190] systemd-libs-0:262-3.fc46.x86 100% | 5.3 MiB/s | 961.5 KiB | 00m00s [188/190] selinux-policy-0:45.20-1.fc46 100% | 1.8 MiB/s | 41.6 KiB | 00m00s [189/190] binutils-0:2.47.50-12.fc46.x8 100% | 21.1 MiB/s | 5.2 MiB | 00m00s [190/190] selinux-policy-targeted-0:45. 100% | 49.4 MiB/s | 6.8 MiB | 00m00s -------------------------------------------------------------------------------- [190/190] Total 100% | 33.8 MiB/s | 13.4 MiB | 00m00s Running transaction Importing OpenPGP key 0x91211FCE: UserID : "Fedora (46) " Fingerprint: D924B10D3E810DABDD8B56B596E7E91491211FCE From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-46-primary The key was successfully imported. Importing OpenPGP key 0x91211FCE: UserID : "Fedora (46) " Fingerprint: D924B10D3E810DABDD8B56B596E7E91491211FCE From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-46-primary The key was successfully imported. Importing OpenPGP key 0xF577861E: UserID : "Fedora (45) " Fingerprint: 4F50A6114CD5C6976A7F1179655A4B02F577861E From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-45-primary The key was successfully imported. Importing OpenPGP key 0x9488FB64: UserID : "Fedora (47) " Fingerprint: B2E766FA50CA6FA2D5ED06FC09D879E09488FB64 From : file:///usr/share/distribution-gpg-keys/fedora/RPM-GPG-KEY-fedora-47-primary The key was successfully imported. [ 1/192] Verify package files 100% | 701.0 B/s | 190.0 B | 00m00s >>> Running %pretrans scriptlet: filesystem-0:3.18-59.fc45.x86_64 >>> Finished %pretrans scriptlet: filesystem-0:3.18-59.fc45.x86_64 >>> [RPM] /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root/var/cache/dnf/copr_base-64ab9e188b99823d/packages/bzip2-1.0.8-24.fc46.x86_64.rpm: Header OpenPGP V4 RSA/SHA256 signature, key ID 5291f7fa5c4b3009: NOKEY >>> [RPM] failed to open /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root/etc/group for id/name lookup: No such file or directory [ 2/192] Prepare transaction 100% | 3.6 KiB/s | 190.0 B | 00m00s [ 3/192] Installing libgcc-0:16.2.1-2. 100% | 266.0 MiB/s | 272.4 KiB | 00m00s [ 4/192] Installing redhat-systemd-pre 100% | 0.0 B/s | 1.5 KiB | 00m00s [ 5/192] Installing redhat-systemd-pre 100% | 0.0 B/s | 18.1 KiB | 00m00s [ 6/192] Installing publicsuffix-list- 100% | 0.0 B/s | 72.0 KiB | 00m00s [ 7/192] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 8/192] Installing fedora-release-ide 100% | 0.0 B/s | 920.0 B | 00m00s [ 9/192] Installing fedora-gpg-keys-0: 100% | 59.2 MiB/s | 181.7 KiB | 00m00s [ 10/192] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.5 KiB | 00m00s [ 11/192] Installing fedora-repos-0:46- 100% | 0.0 B/s | 5.9 KiB | 00m00s [ 12/192] Installing fedora-release-com 100% | 0.0 B/s | 8.0 KiB | 00m00s [ 13/192] Installing fedora-release-0:4 100% | 20.2 KiB/s | 124.0 B | 00m00s >>> Running sysusers scriptlet: setup-0:2.15.1-2.fc45.noarch >>> Finished sysusers scriptlet: setup-0:2.15.1-2.fc45.noarch >>> Scriptlet output: >>> Creating group 'adm' with GID 4. >>> Creating group 'audio' with GID 63. >>> Creating group 'cdrom' with GID 11. >>> Creating group 'clock' with GID 103. >>> Creating group 'dialout' with GID 18. >>> Creating group 'disk' with GID 6. >>> Creating group 'floppy' with GID 19. >>> Creating group 'ftp' with GID 50. >>> Creating group 'games' with GID 20. >>> Creating group 'input' with GID 104. >>> Creating group 'kmem' with GID 9. >>> Creating group 'kvm' with GID 36. >>> Creating group 'lock' with GID 54. >>> Creating group 'lp' with GID 7. >>> Creating group 'mail' with GID 12. >>> Creating group 'man' with GID 15. >>> Creating group 'mem' with GID 8. >>> Creating group 'nobody' with GID 65534. >>> Creating group 'render' with GID 105. >>> Creating group 'root' with GID 0. >>> Creating group 'sgx' with GID 106. >>> Creating group 'sys' with GID 3. >>> Creating group 'tape' with GID 33. >>> Creating group 'tty' with GID 5. >>> Creating group 'users' with GID 100. >>> Creating group 'utmp' with GID 22. >>> Creating group 'video' with GID 39. >>> Creating group 'wheel' with GID 10. >>> Creating user 'adm' (adm) with UID 3 and GID 4. >>> Creating group 'bin' with GID 1. >>> Creating user 'bin' (bin) with UID 1 and GID 1. >>> Creating group 'daemon' with GID 2. >>> Creating user 'daemon' (daemon) with UID 2 and GID 2. >>> Creating user 'ftp' (FTP User) with UID 14 and GID 50. >>> Creating user 'games' (games) with UID 12 and GID 100. >>> Creating user 'halt' (halt) with UID 7 and GID 0. >>> Creating user 'lp' (lp) with UID 4 and GID 7. >>> Creating user 'mail' (mail) with UID 8 and GID 12. >>> Creating user 'nobody' (Kernel Overflow User) with UID 65534 and GID 65534. >>> Creating user 'operator' (operator) with UID 11 and GID 0. >>> Creating user 'root' (Super User) with UID 0 and GID 0. >>> Creating user 'shutdown' (shutdown) with UID 6 and GID 0. >>> Creating user 'sync' (sync) with UID 5 and GID 0. >>> [ 14/192] Installing setup-0:2.15.1-2.f 100% | 39.7 MiB/s | 731.3 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 15/192] Installing filesystem-0:3.18- 100% | 2.7 MiB/s | 253.6 KiB | 00m00s [ 16/192] Installing ncurses-base-0:6.6 100% | 86.7 MiB/s | 355.3 KiB | 00m00s [ 17/192] Installing glibc-common-0:2.4 100% | 51.8 MiB/s | 1.0 MiB | 00m00s [ 18/192] Installing glibc-gconv-extra- 100% | 299.5 MiB/s | 7.8 MiB | 00m00s [ 19/192] Installing glibc-0:2.44.9000- 100% | 179.5 MiB/s | 7.2 MiB | 00m00s [ 20/192] Installing ncurses-libs-0:6.6 100% | 314.1 MiB/s | 964.9 KiB | 00m00s [ 21/192] Installing bash-0:5.3.15-2.fc 100% | 249.3 MiB/s | 8.5 MiB | 00m00s [ 22/192] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 23/192] Installing zlib-ng-compat-0:2 100% | 170.1 MiB/s | 174.2 KiB | 00m00s [ 24/192] Installing bzip2-libs-0:1.0.8 100% | 0.0 B/s | 93.4 KiB | 00m00s [ 25/192] Installing libgpg-error-0:1.6 100% | 52.7 MiB/s | 972.2 KiB | 00m00s [ 26/192] Installing readline-0:8.3-6.f 100% | 262.5 MiB/s | 537.6 KiB | 00m00s [ 27/192] Installing libstdc++-0:16.2.1 100% | 440.9 MiB/s | 3.1 MiB | 00m00s [ 28/192] Installing libzstd-0:1.5.7-6. 100% | 470.9 MiB/s | 964.5 KiB | 00m00s [ 29/192] Installing elfutils-libelf-0: 100% | 481.0 MiB/s | 1.4 MiB | 00m00s [ 30/192] Installing libgcrypt-0:1.12.4 100% | 416.6 MiB/s | 1.7 MiB | 00m00s [ 31/192] Installing libassuan-0:2.5.7- 100% | 165.9 MiB/s | 169.8 KiB | 00m00s [ 32/192] Installing libacl-0:2.4.0-2.f 100% | 0.0 B/s | 44.7 KiB | 00m00s [ 33/192] Installing gmp-1:6.3.0-6.fc45 100% | 399.1 MiB/s | 817.4 KiB | 00m00s [ 34/192] Installing systemd-libs-0:262 100% | 395.7 MiB/s | 2.8 MiB | 00m00s [ 35/192] Installing libuuid-0:2.42.4-2 100% | 0.0 B/s | 38.2 KiB | 00m00s [ 36/192] Installing xz-libs-1:5.8.4-1. 100% | 229.4 MiB/s | 234.9 KiB | 00m00s [ 37/192] Installing popt-0:1.19-11.fc4 100% | 67.9 MiB/s | 139.1 KiB | 00m00s [ 38/192] Installing sqlite-libs-0:3.53 100% | 404.7 MiB/s | 1.6 MiB | 00m00s [ 39/192] Installing npth-0:1.8-5.fc46. 100% | 0.0 B/s | 54.4 KiB | 00m00s [ 40/192] Installing elfutils-libs-0:0. 100% | 352.2 MiB/s | 721.3 KiB | 00m00s [ 41/192] Installing libblkid-0:2.42.4- 100% | 276.6 MiB/s | 283.3 KiB | 00m00s [ 42/192] Installing libsepol-0:3.11-2. 100% | 461.6 MiB/s | 945.4 KiB | 00m00s [ 43/192] Installing gnupg2-gpgconf-0:2 100% | 11.9 MiB/s | 269.0 KiB | 00m00s [ 44/192] Installing crypto-policies-0: 100% | 38.9 MiB/s | 159.5 KiB | 00m00s [ 45/192] Installing libxcrypt-0:4.5.2- 100% | 289.0 MiB/s | 295.9 KiB | 00m00s [ 46/192] Installing json-c-0:0.18-9.fc 100% | 85.6 MiB/s | 87.7 KiB | 00m00s [ 47/192] Installing libtasn1-0:4.21.0- 100% | 186.0 MiB/s | 190.5 KiB | 00m00s [ 48/192] Installing libunistring-0:1.1 100% | 347.6 MiB/s | 1.7 MiB | 00m00s [ 49/192] Installing libidn2-0:2.3.8-4. 100% | 183.1 MiB/s | 562.5 KiB | 00m00s [ 50/192] Installing gnupg2-verify-0:2. 100% | 21.7 MiB/s | 400.6 KiB | 00m00s [ 51/192] Installing mpfr-0:4.2.2-4.fc4 100% | 277.0 MiB/s | 850.9 KiB | 00m00s [ 52/192] Installing gawk-0:5.4.1-1.fc4 100% | 104.7 MiB/s | 2.2 MiB | 00m00s [ 53/192] Installing dwz-0:0.17-3.fc45. 100% | 17.9 MiB/s | 292.5 KiB | 00m00s [ 54/192] Installing libksba-0:1.8.1-1. 100% | 210.7 MiB/s | 431.5 KiB | 00m00s [ 55/192] Installing unzip-0:6.0-71.fc4 100% | 25.6 MiB/s | 445.3 KiB | 00m00s [ 56/192] Installing file-libs-0:5.48-3 100% | 726.1 MiB/s | 12.3 MiB | 00m00s [ 57/192] Installing file-0:5.48-3.fc46 100% | 6.3 MiB/s | 103.4 KiB | 00m00s [ 58/192] Installing diffutils-0:3.12-6 100% | 78.2 MiB/s | 1.6 MiB | 00m00s [ 59/192] Installing libsmartcols-0:2.4 100% | 185.2 MiB/s | 189.6 KiB | 00m00s [ 60/192] Installing lua-libs-0:5.5.1-2 100% | 292.4 MiB/s | 299.4 KiB | 00m00s [ 61/192] Installing libeconf-0:0.7.9-4 100% | 69.0 MiB/s | 70.6 KiB | 00m00s [ 62/192] Installing libattr-0:2.6.0-2. 100% | 0.0 B/s | 25.1 KiB | 00m00s [ 63/192] Installing libcap-ng-0:0.9.6- 100% | 69.0 MiB/s | 70.6 KiB | 00m00s [ 64/192] Installing audit-libs-0:4.2.1 100% | 383.9 MiB/s | 393.1 KiB | 00m00s [ 65/192] Installing pam-libs-0:1.7.2-4 100% | 133.6 MiB/s | 136.9 KiB | 00m00s [ 66/192] Installing libcap-0:2.78-2.fc 100% | 12.3 MiB/s | 213.3 KiB | 00m00s [ 67/192] Installing libffi-0:3.8.0-1.f 100% | 94.6 MiB/s | 96.9 KiB | 00m00s [ 68/192] Installing p11-kit-0:0.26.5-1 100% | 112.1 MiB/s | 2.6 MiB | 00m00s [ 69/192] Installing alternatives-0:1.3 100% | 3.9 MiB/s | 63.4 KiB | 00m00s [ 70/192] Installing p11-kit-trust-0:0. 100% | 21.8 MiB/s | 513.6 KiB | 00m00s [ 71/192] Installing ngtcp2-0:1.22.1-3. 100% | 164.0 MiB/s | 335.8 KiB | 00m00s [ 72/192] Installing liblastlog2-0:2.42 100% | 7.8 MiB/s | 39.8 KiB | 00m00s [ 73/192] Installing zip-0:3.0-46.fc45. 100% | 35.9 MiB/s | 698.0 KiB | 00m00s [ 74/192] Installing gnupg2-keyboxd-0:2 100% | 43.6 MiB/s | 223.5 KiB | 00m00s [ 75/192] Installing libpsl-0:0.23.3-1. 100% | 79.4 MiB/s | 81.3 KiB | 00m00s [ 76/192] Installing libfdisk-0:2.42.4- 100% | 384.0 MiB/s | 393.2 KiB | 00m00s [ 77/192] Installing fips-provider-0:1. 100% | 439.0 MiB/s | 4.8 MiB | 00m00s [ 78/192] Installing libusb1-0:1.0.30-2 100% | 177.5 MiB/s | 181.8 KiB | 00m00s [ 79/192] Installing nettle-0:4.0-5.fc4 100% | 393.1 MiB/s | 805.0 KiB | 00m00s [ 80/192] Installing gnutls-0:3.8.13-5. 100% | 426.4 MiB/s | 3.8 MiB | 00m00s [ 81/192] Installing zstd-0:1.5.7-6.fc4 100% | 25.5 MiB/s | 495.2 KiB | 00m00s [ 82/192] Installing libxml2-0:2.15.4-1 100% | 82.7 MiB/s | 1.7 MiB | 00m00s [ 83/192] Installing bzip2-0:1.0.8-24.f 100% | 5.8 MiB/s | 95.1 KiB | 00m00s [ 84/192] Installing add-determinism-0: 100% | 102.8 MiB/s | 2.2 MiB | 00m00s [ 85/192] Installing filesystem-srpm-ma 100% | 38.0 MiB/s | 38.9 KiB | 00m00s [ 86/192] Installing ed-0:1.22.6-1.fc46 100% | 10.3 MiB/s | 169.2 KiB | 00m00s [ 87/192] Installing patch-0:2.8-6.fc46 100% | 15.2 MiB/s | 248.5 KiB | 00m00s [ 88/192] Installing cpio-0:2.15-10.fc4 100% | 59.7 MiB/s | 1.1 MiB | 00m00s [ 89/192] Installing libpfm-0:4.13.0-23 100% | 576.1 MiB/s | 1.7 MiB | 00m00s [ 90/192] Installing libgomp-0:16.2.1-2 100% | 282.7 MiB/s | 578.9 KiB | 00m00s [ 91/192] Installing jansson-0:2.14-5.f 100% | 100.1 MiB/s | 102.5 KiB | 00m00s [ 92/192] Installing libpkgconf-0:2.5.1 100% | 0.0 B/s | 87.0 KiB | 00m00s [ 93/192] Installing pkgconf-0:2.5.1-2. 100% | 5.9 MiB/s | 97.3 KiB | 00m00s [ 94/192] Installing lz4-libs-0:1.10.0- 100% | 170.0 MiB/s | 174.0 KiB | 00m00s [ 95/192] Installing libtool-ltdl-0:2.6 100% | 0.0 B/s | 71.1 KiB | 00m00s [ 96/192] Installing gdbm-libs-1:1.23-1 100% | 132.2 MiB/s | 135.4 KiB | 00m00s [ 97/192] Installing cyrus-sasl-lib-0:2 100% | 111.4 MiB/s | 2.3 MiB | 00m00s [ 98/192] Installing systemd-standalone 100% | 56.4 MiB/s | 981.8 KiB | 00m00s [ 99/192] Installing xxhash-libs-0:0.8. 100% | 100.7 MiB/s | 103.1 KiB | 00m00s [100/192] Installing libverto-0:0.3.2-1 100% | 0.0 B/s | 27.1 KiB | 00m00s [101/192] Installing libcbor-0:0.14.0-3 100% | 0.0 B/s | 84.9 KiB | 00m00s [102/192] Installing libbrotli-0:1.2.0- 100% | 286.2 MiB/s | 879.1 KiB | 00m00s [103/192] Installing libnghttp2-0:1.69. 100% | 163.3 MiB/s | 167.3 KiB | 00m00s [104/192] Installing libnghttp3-0:1.18. 100% | 180.7 MiB/s | 185.1 KiB | 00m00s [105/192] Installing keyutils-libs-0:1. 100% | 0.0 B/s | 51.4 KiB | 00m00s [106/192] Installing libcom_err-0:1.47. 100% | 0.0 B/s | 64.0 KiB | 00m00s [107/192] Installing pkgconf-m4-0:2.5.1 100% | 0.0 B/s | 14.7 KiB | 00m00s [108/192] Installing pkgconf-pkg-config 100% | 118.2 KiB/s | 1.8 KiB | 00m00s [109/192] Installing gnulib-l10n-0:2024 100% | 215.5 MiB/s | 661.9 KiB | 00m00s [110/192] Installing coreutils-common-0 100% | 444.7 MiB/s | 11.6 MiB | 00m00s [111/192] Installing pcre2-syntax-0:10. 100% | 277.7 MiB/s | 284.3 KiB | 00m00s [112/192] Installing pcre2-0:10.47-1.fc 100% | 374.6 MiB/s | 767.1 KiB | 00m00s [113/192] Installing libselinux-0:3.11- 100% | 201.6 MiB/s | 206.4 KiB | 00m00s [114/192] Installing grep-0:3.12-4.fc45 100% | 50.1 MiB/s | 1.0 MiB | 00m00s [115/192] Installing sed-0:4.10-2.fc45. 100% | 45.0 MiB/s | 874.9 KiB | 00m00s [116/192] Installing findutils-1:4.11.0 100% | 94.4 MiB/s | 2.0 MiB | 00m00s [117/192] Installing xz-1:5.8.4-1.fc46. 100% | 68.5 MiB/s | 1.4 MiB | 00m00s [118/192] Installing libsemanage-0:3.11 100% | 314.8 MiB/s | 322.4 KiB | 00m00s [119/192] Installing libmount-0:2.42.4- 100% | 200.2 MiB/s | 410.0 KiB | 00m00s [120/192] Installing util-linux-core-0: 100% | 72.0 MiB/s | 1.5 MiB | 00m00s [121/192] Installing openssl-libs-1:4.0 100% | 394.0 MiB/s | 6.7 MiB | 00m00s [122/192] Installing coreutils-0:9.12-1 100% | 176.5 MiB/s | 6.4 MiB | 00m00s [123/192] Installing ca-certificates-0: 100% | 2.4 MiB/s | 2.5 MiB | 00m01s [124/192] Installing libarchive-0:3.8.9 100% | 248.5 MiB/s | 1.0 MiB | 00m00s [125/192] Installing krb5-libs-0:1.22.2 100% | 183.6 MiB/s | 2.4 MiB | 00m00s >>> Running sysusers scriptlet: tpm2-tss-0:4.2.0-1.fc46.x86_64 >>> Finished sysusers scriptlet: tpm2-tss-0:4.2.0-1.fc46.x86_64 >>> Scriptlet output: >>> Creating group 'tss' with GID 59. >>> Creating user 'tss' (Account used for TPM access) with UID 59 and GID 59. >>> [126/192] Installing tpm2-tss-0:4.2.0-1 100% | 281.1 MiB/s | 1.7 MiB | 00m00s [127/192] Installing ima-evm-utils-libs 100% | 56.4 MiB/s | 57.7 KiB | 00m00s [128/192] Installing gnupg2-gpg-agent-0 100% | 28.7 MiB/s | 733.7 KiB | 00m00s [129/192] Installing util-linux-0:2.42. 100% | 98.9 MiB/s | 3.8 MiB | 00m00s [130/192] Installing gzip-0:1.14-4.fc46 100% | 22.5 MiB/s | 415.1 KiB | 00m00s [131/192] Installing libfsverity-0:1.7- 100% | 24.8 MiB/s | 25.4 KiB | 00m00s [132/192] Installing rpm-sequoia-0:1.10 100% | 350.7 MiB/s | 2.5 MiB | 00m00s [133/192] Installing rpm-libs-0:6.1.0-1 100% | 366.4 MiB/s | 1.1 MiB | 00m00s [134/192] Installing libevent-0:2.1.13- 100% | 308.2 MiB/s | 946.8 KiB | 00m00s [135/192] Installing openldap-0:2.6.14- 100% | 333.3 MiB/s | 682.7 KiB | 00m00s [136/192] Installing gnupg2-dirmngr-0:2 100% | 27.8 MiB/s | 682.8 KiB | 00m00s [137/192] Installing gnupg2-0:2.4.9-18. 100% | 201.5 MiB/s | 6.7 MiB | 00m00s [138/192] Installing rpm-sign-libs-0:6. 100% | 39.5 MiB/s | 40.5 KiB | 00m00s [139/192] Installing rpm-build-libs-0:6 100% | 282.4 MiB/s | 289.2 KiB | 00m00s [140/192] Installing gpgverify-0:2.2-5. 100% | 0.0 B/s | 9.4 KiB | 00m00s [141/192] Installing ngtcp2-crypto-ossl 100% | 0.0 B/s | 52.5 KiB | 00m00s [142/192] Installing libfido2-0:1.17.0- 100% | 252.8 MiB/s | 258.9 KiB | 00m00s [143/192] Installing libssh-0:0.12.2-1. 100% | 355.4 MiB/s | 727.8 KiB | 00m00s [144/192] Installing libcurl-0:8.23.0~r 100% | 360.6 MiB/s | 1.1 MiB | 00m00s [145/192] Installing elfutils-debuginfo 100% | 4.7 MiB/s | 82.2 KiB | 00m00s [146/192] Installing elfutils-0:0.196-1 100% | 138.1 MiB/s | 3.2 MiB | 00m00s [147/192] Installing binutils-0:2.47.50 100% | 326.5 MiB/s | 24.5 MiB | 00m00s [148/192] Installing gdb-minimal-0:17.2 100% | 267.2 MiB/s | 14.2 MiB | 00m00s [149/192] Installing debugedit-0:5.3-3. 100% | 12.8 MiB/s | 223.6 KiB | 00m00s [150/192] Installing curl-0:8.23.0~rc2- 100% | 19.1 MiB/s | 488.2 KiB | 00m00s [151/192] Installing rpm-0:6.1.0-1.fc46 100% | 73.6 MiB/s | 2.5 MiB | 00m00s [152/192] Installing cmake-srpm-macros- 100% | 0.0 B/s | 804.0 B | 00m00s [153/192] Installing efi-srpm-macros-0: 100% | 0.0 B/s | 41.3 KiB | 00m00s [154/192] Installing java-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [155/192] Installing lua-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [156/192] Installing tree-sitter-srpm-m 100% | 0.0 B/s | 9.6 KiB | 00m00s [157/192] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [158/192] Installing tar-2:1.35-9.fc45. 100% | 123.9 MiB/s | 3.0 MiB | 00m00s [159/192] Installing linkdupes-0:0.7.3- 100% | 42.5 MiB/s | 783.5 KiB | 00m00s [160/192] Installing libselinux-utils-0 100% | 17.4 MiB/s | 320.4 KiB | 00m00s [161/192] Installing policycoreutils-0: 100% | 31.8 MiB/s | 910.5 KiB | 00m00s [162/192] Installing selinux-policy-0:4 100% | 2.0 MiB/s | 34.5 KiB | 00m00s [163/192] Installing selinux-policy-tar 100% | 210.4 MiB/s | 15.2 MiB | 00m00s [164/192] Installing build-reproducibil 100% | 0.0 B/s | 1.5 KiB | 00m00s [165/192] Installing rust-srpm-macros-0 100% | 0.0 B/s | 6.4 KiB | 00m00s [166/192] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 748.0 B | 00m00s [167/192] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [168/192] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [169/192] Installing package-notes-srpm 100% | 0.0 B/s | 2.1 KiB | 00m00s [170/192] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [171/192] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.1 KiB | 00m00s [172/192] Installing meson-srpm-macros- 100% | 0.0 B/s | 1.9 KiB | 00m00s [173/192] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [174/192] Installing gnome-srpm-macros- 100% | 0.0 B/s | 4.1 KiB | 00m00s [175/192] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [176/192] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [177/192] Installing gap-srpm-macros-0: 100% | 0.0 B/s | 2.7 KiB | 00m00s [178/192] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [179/192] Installing ansible-srpm-macro 100% | 0.0 B/s | 36.2 KiB | 00m00s [180/192] Installing redhat-rpm-config- 100% | 93.0 MiB/s | 190.4 KiB | 00m00s [181/192] Installing forge-srpm-macros- 100% | 0.0 B/s | 40.3 KiB | 00m00s [182/192] Installing rpm-build-0:6.1.0- 100% | 15.7 MiB/s | 322.1 KiB | 00m00s [183/192] Installing erlang-srpm-macros 100% | 0.0 B/s | 2.5 KiB | 00m00s [184/192] Installing pyproject-srpm-mac 100% | 0.0 B/s | 4.0 KiB | 00m00s [185/192] Installing fonts-srpm-macros- 100% | 0.0 B/s | 57.0 KiB | 00m00s [186/192] Installing go-srpm-macros-0:3 100% | 0.0 B/s | 63.0 KiB | 00m00s [187/192] Installing R-srpm-macros-0:1. 100% | 0.0 B/s | 4.4 KiB | 00m00s [188/192] Installing python-srpm-macros 100% | 0.0 B/s | 52.9 KiB | 00m00s [189/192] Installing rpm-plugin-selinux 100% | 0.0 B/s | 12.9 KiB | 00m00s [190/192] Installing which-0:2.25-2.fc4 100% | 4.7 MiB/s | 81.2 KiB | 00m00s [191/192] Installing shadow-utils-2:4.2 100% | 131.3 MiB/s | 4.1 MiB | 00m00s [192/192] Installing info-0:7.3-3.fc46. 100% | 57.8 KiB/s | 396.0 KiB | 00m07s Warning: skipped OpenPGP checks for 66 packages from repository: copr_base Complete! Updating and loading repositories: fedora 100% | 134.5 KiB/s | 24.5 KiB | 00m00s Additional repo copr_tstellar_fedora_c 100% | 14.4 KiB/s | 1.5 KiB | 00m00s Additional repo copr_fedora_llvm_team_ 100% | 14.3 KiB/s | 1.5 KiB | 00m00s Copr repository 100% | 14.6 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package Arch Version Repository Size Installing: fedora-clang-default-cc noarch 0:1-1.fc43 copr_tstellar_fedora_clang_default_cc 17.0 B Installing dependencies: annobin-docs noarch 0:13.32-1.fc46 fedora 99.7 KiB annobin-plugin-gcc x86_64 0:13.32-1.fc46 fedora 724.5 KiB clang x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 70.5 MiB clang-libs x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 112.2 MiB clang-resource-filesystem x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 15.3 KiB compiler-rt x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 44.1 MiB cpp x86_64 0:16.2.1-2.fc46.1 fedora 42.6 MiB expat x86_64 0:2.8.3-1.fc46 copr_base 342.1 KiB gcc x86_64 0:16.2.1-2.fc46.1 fedora 121.8 MiB gcc-c++ x86_64 0:16.2.1-2.fc46.1 fedora 46.8 MiB gcc-plugin-annobin x86_64 0:16.2.1-2.fc46.1 fedora 57.1 KiB glibc-devel x86_64 0:2.44.9000-4.fc46 fedora 2.3 MiB kernel-headers x86_64 0:7.3.0-0.rc5.45.fc46 fedora 7.1 MiB libatomic x86_64 0:16.2.1-2.fc46.1 fedora 45.6 KiB libedit x86_64 0:3.1-60.20260512cvs.fc46 copr_base 256.8 KiB libmpc x86_64 0:1.4.1-2.fc46 copr_base 164.7 KiB libomp x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 3.3 MiB libstdc++-devel x86_64 0:16.2.1-2.fc46.1 fedora 41.2 MiB libxcrypt-devel x86_64 0:4.5.2-4.fc45 fedora 31.0 KiB lld x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 42.8 KiB lld-libs x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 6.3 MiB llvm x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 135.7 MiB llvm-filesystem x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 0.0 B llvm-libs x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 150.9 MiB make x86_64 1:4.4.1-13.fc46 copr_base 1.8 MiB mpdecimal x86_64 0:4.0.1-4.fc46 copr_base 249.0 KiB python-pip-wheel noarch 0:26.2.1-1.fc46 fedora 1.3 MiB python3 x86_64 0:3.15.0~rc2-1.fc46 fedora 28.7 KiB python3-libs x86_64 0:3.15.0~rc2-1.fc46 fedora 48.2 MiB tzdata noarch 0:2026c-2.fc46 fedora 1.2 MiB Transaction Summary: Installing: 31 packages Total size of inbound packages is 215 MiB. Need to download 0 B. After this operation, 839 MiB extra will be used (install 839 MiB, remove 0 B). [ 1/31] fedora-clang-default-cc-0:1-1.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/31] clang-0:24.0.0~pre20260928.g690 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/31] clang-libs-0:24.0.0~pre20260928 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/31] llvm-libs-0:24.0.0~pre20260928. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/31] clang-resource-filesystem-0:24. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/31] llvm-filesystem-0:24.0.0~pre202 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/31] llvm-0:24.0.0~pre20260928.g6909 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/31] lld-0:24.0.0~pre20260928.g6909c 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/31] libomp-0:24.0.0~pre20260928.g69 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [10/31] compiler-rt-0:24.0.0~pre2026092 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [11/31] lld-libs-0:24.0.0~pre20260928.g 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [12/31] libedit-0:3.1-60.20260512cvs.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [13/31] python3-0:3.15.0~rc2-1.fc46.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [14/31] python3-libs-0:3.15.0~rc2-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [15/31] python-pip-wheel-0:26.2.1-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [16/31] gcc-c++-0:16.2.1-2.fc46.1.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [17/31] gcc-0:16.2.1-2.fc46.1.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [18/31] cpp-0:16.2.1-2.fc46.1.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [19/31] libstdc++-devel-0:16.2.1-2.fc46 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [20/31] expat-0:2.8.3-1.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [21/31] mpdecimal-0:4.0.1-4.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [22/31] tzdata-0:2026c-2.fc46.noarch 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [23/31] libmpc-0:1.4.1-2.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [24/31] glibc-devel-0:2.44.9000-4.fc46. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [25/31] libxcrypt-devel-0:4.5.2-4.fc45. 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [26/31] libatomic-0:16.2.1-2.fc46.1.x86 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [27/31] make-1:4.4.1-13.fc46.x86_64 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [28/31] kernel-headers-0:7.3.0-0.rc5.45 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [29/31] annobin-plugin-gcc-0:13.32-1.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [30/31] gcc-plugin-annobin-0:16.2.1-2.f 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [31/31] annobin-docs-0:13.32-1.fc46.noa 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded -------------------------------------------------------------------------------- [31/31] Total 100% | 0.0 B/s | 0.0 B | 00m00s Running transaction [ 1/33] Verify package files 100% | 39.0 B/s | 31.0 B | 00m01s [ 2/33] Prepare transaction 100% | 756.0 B/s | 31.0 B | 00m00s [ 3/33] Installing libmpc-0:1.4.1-2.fc4 100% | 54.2 MiB/s | 166.4 KiB | 00m00s [ 4/33] Installing libstdc++-devel-0:16 100% | 497.9 MiB/s | 41.3 MiB | 00m00s [ 5/33] Installing clang-resource-files 100% | 16.3 MiB/s | 16.7 KiB | 00m00s [ 6/33] Installing cpp-0:16.2.1-2.fc46. 100% | 349.1 MiB/s | 42.6 MiB | 00m00s [ 7/33] Installing annobin-docs-0:13.32 100% | 32.8 MiB/s | 100.8 KiB | 00m00s [ 8/33] Installing kernel-headers-0:7.3 100% | 232.8 MiB/s | 7.2 MiB | 00m00s [ 9/33] Installing glibc-devel-0:2.44.9 100% | 199.9 MiB/s | 2.4 MiB | 00m00s [10/33] Installing libxcrypt-devel-0:4. 100% | 0.0 B/s | 33.3 KiB | 00m00s [11/33] Installing make-1:4.4.1-13.fc46 100% | 86.6 MiB/s | 1.8 MiB | 00m00s [12/33] Installing libatomic-0:16.2.1-2 100% | 45.6 MiB/s | 46.7 KiB | 00m00s [13/33] Installing gcc-0:16.2.1-2.fc46. 100% | 411.8 MiB/s | 121.9 MiB | 00m00s [14/33] Installing gcc-c++-0:16.2.1-2.f 100% | 344.4 MiB/s | 46.8 MiB | 00m00s [15/33] Installing tzdata-0:2026c-2.fc4 100% | 57.8 MiB/s | 1.5 MiB | 00m00s [16/33] Installing mpdecimal-0:4.0.1-4. 100% | 244.7 MiB/s | 250.5 KiB | 00m00s [17/33] Installing expat-0:2.8.3-1.fc46 100% | 19.8 MiB/s | 344.2 KiB | 00m00s [18/33] Installing python-pip-wheel-0:2 100% | 181.2 MiB/s | 1.3 MiB | 00m00s [19/33] Installing python3-libs-0:3.15. 100% | 365.6 MiB/s | 48.6 MiB | 00m00s [20/33] Installing python3-0:3.15.0~rc2 100% | 1.8 MiB/s | 30.5 KiB | 00m00s [21/33] Installing compiler-rt-0:24.0.0 100% | 699.6 MiB/s | 44.1 MiB | 00m00s [22/33] Installing libedit-0:3.1-60.202 100% | 252.4 MiB/s | 258.5 KiB | 00m00s [23/33] Installing llvm-filesystem-0:24 100% | 0.0 B/s | 1.1 KiB | 00m00s [24/33] Installing llvm-libs-0:24.0.0~p 100% | 468.6 MiB/s | 150.9 MiB | 00m00s [25/33] Installing clang-libs-0:24.0.0~ 100% | 467.6 MiB/s | 112.2 MiB | 00m00s [26/33] Installing clang-0:24.0.0~pre20 100% | 582.8 MiB/s | 70.5 MiB | 00m00s [27/33] Installing llvm-0:24.0.0~pre202 100% | 425.5 MiB/s | 135.7 MiB | 00m00s [28/33] Installing libomp-0:24.0.0~pre2 100% | 415.2 MiB/s | 3.3 MiB | 00m00s [29/33] Installing lld-libs-0:24.0.0~pr 100% | 448.4 MiB/s | 6.3 MiB | 00m00s [30/33] Installing lld-0:24.0.0~pre2026 100% | 1.9 MiB/s | 45.9 KiB | 00m00s [31/33] Installing fedora-clang-default 100% | 0.0 B/s | 288.0 B | 00m00s [32/33] Installing annobin-plugin-gcc-0 100% | 59.1 MiB/s | 726.2 KiB | 00m00s [33/33] Installing gcc-plugin-annobin-0 100% | 575.3 KiB/s | 58.7 KiB | 00m00s Warning: skipped OpenPGP checks for 16 packages from repositories: copr_base, copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928, copr_tstellar_fedora_clang_default_cc Complete! Finish: installing minimal buildroot with dnf5 Start: creating root cache Finish: creating root cache Finish: chroot init INFO: Installed packages: INFO: R-srpm-macros-1.3.7-3.fc45.noarch add-determinism-0.7.3-3.fc45.x86_64 alternatives-1.33-6.fc46.x86_64 annobin-docs-13.32-1.fc46.noarch annobin-plugin-gcc-13.32-1.fc46.x86_64 ansible-srpm-macros-1-22.fc45.noarch audit-libs-4.2.1-2.fc45.x86_64 bash-5.3.15-2.fc46.x86_64 binutils-2.47.50-12.fc46.x86_64 build-reproducibility-srpm-macros-0.7.3-3.fc45.noarch bzip2-1.0.8-24.fc46.x86_64 bzip2-libs-1.0.8-24.fc46.x86_64 ca-certificates-2026.2.90_v9.0.317-1.fc46.noarch clang-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 clang-libs-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 clang-resource-filesystem-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 cmake-srpm-macros-4.3.0-5.fc45.noarch compiler-rt-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 coreutils-9.12-1.fc46.x86_64 coreutils-common-9.12-1.fc46.x86_64 cpio-2.15-10.fc46.x86_64 cpp-16.2.1-2.fc46.1.x86_64 crypto-policies-20260713-2.gitc42da77.fc45.noarch curl-8.23.0~rc2-1.fc46.x86_64 cyrus-sasl-lib-2.1.28-37.fc45.x86_64 debugedit-5.3-3.fc46.x86_64 diffutils-3.12-6.fc45.x86_64 dwz-0.17-3.fc45.x86_64 ed-1.22.6-1.fc46.x86_64 efi-srpm-macros-6-9.fc45.noarch elfutils-0.196-1.fc46.x86_64 elfutils-debuginfod-client-0.196-1.fc46.x86_64 elfutils-libelf-0.196-1.fc46.x86_64 elfutils-libs-0.196-1.fc46.x86_64 erlang-srpm-macros-0.3.11-2.fc45.noarch expat-2.8.3-1.fc46.x86_64 fedora-clang-default-cc-1-1.fc43.noarch fedora-gpg-keys-46-0.3.noarch fedora-release-46-0.1.noarch fedora-release-common-46-0.1.noarch fedora-release-identity-basic-46-0.1.noarch fedora-repos-46-0.3.noarch fedora-repos-rawhide-46-0.3.noarch file-5.48-3.fc46.x86_64 file-libs-5.48-3.fc46.x86_64 filesystem-3.18-59.fc45.x86_64 filesystem-srpm-macros-3.18-59.fc45.noarch findutils-4.11.0-2.fc46.x86_64 fips-provider-1.5.3-1.fc46.x86_64 fonts-srpm-macros-5.0.0-4.fc45.noarch forge-srpm-macros-0.4.0-5.fc45.noarch fpc-srpm-macros-1.3-17.fc45.noarch gap-srpm-macros-2-3.fc45.noarch gawk-5.4.1-1.fc46.x86_64 gcc-16.2.1-2.fc46.1.x86_64 gcc-c++-16.2.1-2.fc46.1.x86_64 gcc-plugin-annobin-16.2.1-2.fc46.1.x86_64 gdb-minimal-17.2-6.fc46.x86_64 gdbm-libs-1.23-12.fc46.x86_64 ghc-srpm-macros-1.10-2.fc45.noarch glibc-2.44.9000-4.fc46.x86_64 glibc-common-2.44.9000-4.fc46.x86_64 glibc-devel-2.44.9000-4.fc46.x86_64 glibc-gconv-extra-2.44.9000-4.fc46.x86_64 glibc-minimal-langpack-2.44.9000-4.fc46.x86_64 gmp-6.3.0-6.fc45.x86_64 gnat-srpm-macros-7-3.fc45.noarch gnome-srpm-macros-1.0-2.fc45.noarch gnulib-l10n-20241231-4.fc46.noarch gnupg2-2.4.9-18.fc46.x86_64 gnupg2-dirmngr-2.4.9-18.fc46.x86_64 gnupg2-gpg-agent-2.4.9-18.fc46.x86_64 gnupg2-gpgconf-2.4.9-18.fc46.x86_64 gnupg2-keyboxd-2.4.9-18.fc46.x86_64 gnupg2-verify-2.4.9-18.fc46.x86_64 gnutls-3.8.13-5.fc46.x86_64 go-srpm-macros-3.8.0-3.fc45.noarch gpg-pubkey-4f50a6114cd5c6976a7f1179655a4b02f577861e-6888bc98 gpg-pubkey-b2e766fa50ca6fa2d5ed06fc09d879e09488fb64-6a6b46b4 gpg-pubkey-d924b10d3e810dabdd8b56b596e7e91491211fce-697c9899 gpgverify-2.2-5.fc45.noarch grep-3.12-4.fc45.x86_64 gzip-1.14-4.fc46.x86_64 ima-evm-utils-libs-1.6.2-12.fc46.x86_64 info-7.3-3.fc46.x86_64 jansson-2.14-5.fc46.x86_64 java-srpm-macros-1-9.fc45.noarch json-c-0.18-9.fc46.x86_64 kernel-headers-7.3.0-0.rc5.45.fc46.x86_64 kernel-srpm-macros-1.0-30.fc45.noarch keyutils-libs-1.6.3-8.fc46.x86_64 krb5-libs-1.22.2-9.fc45.x86_64 libacl-2.4.0-2.fc45.x86_64 libarchive-3.8.9-2.fc46.x86_64 libassuan-2.5.7-6.fc46.x86_64 libatomic-16.2.1-2.fc46.1.x86_64 libattr-2.6.0-2.fc46.x86_64 libblkid-2.42.4-2.fc46.x86_64 libbrotli-1.2.0-6.fc46.x86_64 libcap-2.78-2.fc45.x86_64 libcap-ng-0.9.6-1.fc46.x86_64 libcbor-0.14.0-3.fc45.x86_64 libcom_err-1.47.4-2.fc46.x86_64 libcurl-8.23.0~rc2-1.fc46.x86_64 libeconf-0.7.9-4.fc46.x86_64 libedit-3.1-60.20260512cvs.fc46.x86_64 libevent-2.1.13-1.fc46.x86_64 libfdisk-2.42.4-2.fc46.x86_64 libffi-3.8.0-1.fc46.x86_64 libfido2-1.17.0-5.fc46.x86_64 libfsverity-1.7-4.fc45.x86_64 libgcc-16.2.1-2.fc46.1.x86_64 libgcrypt-1.12.4-1.fc46.x86_64 libgomp-16.2.1-2.fc46.1.x86_64 libgpg-error-1.61-2.fc46.x86_64 libidn2-2.3.8-4.fc46.x86_64 libksba-1.8.1-1.fc46.x86_64 liblastlog2-2.42.4-2.fc46.x86_64 libmount-2.42.4-2.fc46.x86_64 libmpc-1.4.1-2.fc46.x86_64 libnghttp2-1.69.0-6.fc46.x86_64 libnghttp3-1.18.0-1.fc46.x86_64 libomp-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 libpfm-4.13.0-23.fc45.x86_64 libpkgconf-2.5.1-2.fc46.x86_64 libpsl-0.23.3-1.fc46.x86_64 libselinux-3.11-5.fc46.x86_64 libselinux-utils-3.11-5.fc46.x86_64 libsemanage-3.11-4.fc46.x86_64 libsepol-3.11-2.fc46.x86_64 libsmartcols-2.42.4-2.fc46.x86_64 libssh-0.12.2-1.fc45.x86_64 libssh-config-0.12.2-1.fc45.noarch libstdc++-16.2.1-2.fc46.1.x86_64 libstdc++-devel-16.2.1-2.fc46.1.x86_64 libtasn1-4.21.0-2.fc46.x86_64 libtool-ltdl-2.6.2-1.fc46.x86_64 libunistring-1.1-12.fc46.x86_64 libusb1-1.0.30-2.fc45.x86_64 libuuid-2.42.4-2.fc46.x86_64 libverto-0.3.2-13.fc45.x86_64 libxcrypt-4.5.2-4.fc45.x86_64 libxcrypt-devel-4.5.2-4.fc45.x86_64 libxml2-2.15.4-1.fc46.x86_64 libzstd-1.5.7-6.fc46.x86_64 linkdupes-0.7.3-3.fc45.x86_64 lld-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 lld-libs-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 llvm-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 llvm-filesystem-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 llvm-libs-24.0.0~pre20260928.g6909c17f146832-6.fc46.x86_64 lua-libs-5.5.1-2.fc46.x86_64 lua-srpm-macros-1-18.fc45.noarch lz4-libs-1.10.0-5.fc46.x86_64 make-4.4.1-13.fc46.x86_64 meson-srpm-macros-1.12.1-2.fc46.noarch mpdecimal-4.0.1-4.fc46.x86_64 mpfr-4.2.2-4.fc45.x86_64 ncurses-base-6.6-3.fc46.noarch ncurses-libs-6.6-3.fc46.x86_64 nettle-4.0-5.fc45.x86_64 ngtcp2-1.22.1-3.fc45.x86_64 ngtcp2-crypto-ossl-1.22.1-3.fc45.x86_64 npth-1.8-5.fc46.x86_64 ocaml-srpm-macros-11-4.fc45.noarch openblas-srpm-macros-2-22.fc45.noarch openldap-2.6.14-1.fc46.x86_64 openssl-libs-4.0.3-1.fc46.x86_64 p11-kit-0.26.5-1.fc46.x86_64 p11-kit-trust-0.26.5-1.fc46.x86_64 package-notes-srpm-macros-0.20-2.fc45.noarch pam-libs-1.7.2-4.fc46.x86_64 patch-2.8-6.fc46.x86_64 pcre2-10.47-1.fc46.2.x86_64 pcre2-syntax-10.47-1.fc46.2.noarch perl-srpm-macros-1-65.fc45.noarch pkgconf-2.5.1-2.fc46.x86_64 pkgconf-m4-2.5.1-2.fc46.noarch pkgconf-pkg-config-2.5.1-2.fc46.x86_64 policycoreutils-3.11-2.fc46.x86_64 popt-1.19-11.fc46.x86_64 publicsuffix-list-dafsa-20260624-2.fc45.noarch pyproject-srpm-macros-1.23.2-1.fc45.noarch python-pip-wheel-26.2.1-1.fc46.noarch python-srpm-macros-3.15-2.fc45.noarch python3-3.15.0~rc2-1.fc46.x86_64 python3-libs-3.15.0~rc2-1.fc46.x86_64 qt5-srpm-macros-5.15.18-3.fc45.noarch qt6-srpm-macros-6.11.2-1.fc46.noarch readline-8.3-6.fc46.x86_64 redhat-rpm-config-345-4.fc46.noarch redhat-systemd-presets-102-3.fc45.noarch redhat-systemd-presets-common-102-3.fc45.noarch rpm-6.1.0-1.fc46.x86_64 rpm-build-6.1.0-1.fc46.x86_64 rpm-build-libs-6.1.0-1.fc46.x86_64 rpm-libs-6.1.0-1.fc46.x86_64 rpm-plugin-selinux-6.1.0-1.fc46.x86_64 rpm-sequoia-1.10.3-1.fc46.x86_64 rpm-sign-libs-6.1.0-1.fc46.x86_64 rust-srpm-macros-28.5-2.fc45.noarch sed-4.10-2.fc45.x86_64 selinux-policy-45.20-1.fc46.noarch selinux-policy-targeted-45.20-1.fc46.noarch setup-2.15.1-2.fc45.noarch shadow-utils-4.20.0-1.fc46.x86_64 sqlite-libs-3.53.4-1.fc45.x86_64 systemd-libs-262-3.fc46.x86_64 systemd-standalone-sysusers-262-3.fc46.x86_64 tar-1.35-9.fc45.x86_64 tpm2-tss-4.2.0-1.fc46.x86_64 tree-sitter-srpm-macros-0.4.6-2.fc45.noarch tzdata-2026c-2.fc46.noarch unzip-6.0-71.fc45.x86_64 util-linux-2.42.4-2.fc46.x86_64 util-linux-core-2.42.4-2.fc46.x86_64 which-2.25-2.fc46.x86_64 xxhash-libs-0.8.4-1.fc46.x86_64 xz-5.8.4-1.fc46.x86_64 xz-libs-5.8.4-1.fc46.x86_64 zig-srpm-macros-1-9.fc45.noarch zip-3.0-46.fc45.x86_64 zlib-ng-compat-2.3.3-6.fc46.x86_64 zstd-1.5.7-6.fc46.x86_64 Start: buildsrpm Start: rpmbuild -bs Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1789776000 Wrote: /builddir/build/SRPMS/cppcheck-2.22.0-1.fc46.src.rpm Finish: rpmbuild -bs INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names Finish: buildsrpm INFO: Done(/var/lib/copr-rpmbuild/workspace/workdir-7m743gwd/cppcheck/cppcheck.spec) Config(child) 0 minutes 27 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot INFO: Start(/var/lib/copr-rpmbuild/results/cppcheck-2.22.0-1.fc46.src.rpm) Config(fedora-rawhide-x86_64) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1790849817.256227/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-x86_64-bootstrap-1790849817.256227/root. INFO: calling preinit hooks INFO: enabled root cache INFO: enabled package manager cache Start(bootstrap): cleaning package manager metadata Finish(bootstrap): cleaning package manager metadata Finish(bootstrap): chroot init Start: chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root. INFO: calling preinit hooks INFO: enabled root cache Start: unpacking root cache Finish: unpacking root cache INFO: enabled package manager cache Start: cleaning package manager metadata Finish: cleaning package manager metadata INFO: enabled HW Info plugin INFO: Buildroot is handled by package management downloaded with a bootstrap image: rpm-6.1.0-1.fc46.x86_64 rpm-sequoia-1.10.3-1.fc46.x86_64 dnf5-5.4.6.0-1.fc46.x86_64 dnf5-plugins-5.4.6.0-1.fc46.x86_64 Finish: chroot init Start: build phase for cppcheck-2.22.0-1.fc46.src.rpm Start: build setup for cppcheck-2.22.0-1.fc46.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1789776000 Wrote: /builddir/build/SRPMS/cppcheck-2.22.0-1.fc46.src.rpm Updating and loading repositories: fedora 100% | 98.3 KiB/s | 24.5 KiB | 00m00s Additional repo copr_tstellar_fedora_c 100% | 8.8 KiB/s | 1.5 KiB | 00m00s Additional repo copr_fedora_llvm_team_ 100% | 9.0 KiB/s | 1.5 KiB | 00m00s Copr repository 100% | 9.0 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "gcc-c++-16.2.1-2.fc46.1.x86_64" is already installed. Package "make-1:4.4.1-13.fc46.x86_64" is already installed. Package Arch Version Repository Size Downgrading: clang x86_64 0:23.1.2-1.fc46 fedora 66.5 MiB replacing clang x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 70.5 MiB clang-libs x86_64 0:23.1.2-1.fc46 fedora 110.5 MiB replacing clang-libs x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 112.2 MiB clang-resource-filesystem x86_64 0:23.1.2-1.fc46 fedora 15.3 KiB replacing clang-resource-filesystem x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 15.3 KiB compiler-rt x86_64 0:23.1.2-1.fc46 fedora 42.5 MiB replacing compiler-rt x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 44.1 MiB libomp x86_64 0:23.1.2-1.fc46 fedora 2.9 MiB replacing libomp x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 3.3 MiB lld x86_64 0:23.1.2-1.fc46 fedora 42.5 KiB replacing lld x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 42.8 KiB lld-libs x86_64 0:23.1.2-1.fc46 fedora 6.3 MiB replacing lld-libs x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 6.3 MiB llvm x86_64 0:23.1.2-1.fc46 fedora 86.7 MiB replacing llvm x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 135.7 MiB llvm-filesystem x86_64 0:23.1.2-1.fc46 fedora 0.0 B replacing llvm-filesystem x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 0.0 B llvm-libs x86_64 0:23.1.2-1.fc46 fedora 146.1 MiB replacing llvm-libs x86_64 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 150.9 MiB Installing: boost-devel x86_64 0:1.90.0-13.fc45 fedora 142.7 MiB cmake x86_64 0:4.3.0-5.fc45 fedora 40.4 MiB desktop-file-utils x86_64 0:0.28-8.fc46 copr_base 221.6 KiB docbook-style-xsl noarch 0:1.79.2-29.fc46 fedora 14.6 MiB libxslt x86_64 0:1.1.43-10.fc46 copr_base 455.7 KiB pandoc-cli x86_64 0:3.7.0.2-41.fc45 fedora 204.2 MiB python3-devel x86_64 0:3.15.0~rc2-1.fc46 fedora 2.5 MiB python3-setuptools noarch 0:84.0.0-1.fc46 fedora 7.4 MiB qt6-linguist x86_64 0:6.11.2-1.fc46 fedora 5.5 MiB qt6-qtbase-devel x86_64 0:6.11.2-2.fc46 copr_base 22.4 MiB qt6-qttools-devel x86_64 0:6.11.2-1.fc46 fedora 2.4 MiB tinyxml2-devel x86_64 0:11.0.0-8.fc46 fedora 82.9 KiB zlib-ng-compat-devel x86_64 0:2.3.3-6.fc46 copr_base 107.0 KiB Installing dependencies: SDL3 x86_64 0:3.4.16-1.fc46 copr_base 3.3 MiB abattis-cantarell-vf-fonts noarch 0:0.301-18.fc45 fedora 192.7 KiB adwaita-cursor-theme noarch 0:51.0-1.fc46 fedora 11.4 MiB adwaita-icon-theme noarch 0:51.0-1.fc46 fedora 888.7 KiB adwaita-icon-theme-legacy noarch 0:46.2-12.fc45 fedora 2.1 MiB at-spi2-atk x86_64 0:2.62.0.1-1.fc46 fedora 288.2 KiB at-spi2-core x86_64 0:2.62.0.1-1.fc46 fedora 1.6 MiB atk x86_64 0:2.62.0.1-1.fc46 fedora 252.6 KiB avahi-glib x86_64 0:0.9~rc2-9.fc46 copr_base 19.2 KiB avahi-libs x86_64 0:0.9~rc2-9.fc46 copr_base 168.5 KiB boost x86_64 0:1.90.0-13.fc45 fedora 1.3 KiB boost-atomic x86_64 0:1.90.0-13.fc45 fedora 20.7 KiB boost-charconv x86_64 0:1.90.0-13.fc45 fedora 161.5 KiB boost-chrono x86_64 0:1.90.0-13.fc45 fedora 37.3 KiB boost-cobalt x86_64 0:1.90.0-13.fc45 fedora 630.4 KiB boost-container x86_64 0:1.90.0-13.fc45 fedora 69.3 KiB boost-context x86_64 0:1.90.0-13.fc45 fedora 12.3 KiB boost-contract x86_64 0:1.90.0-13.fc45 fedora 115.0 KiB boost-coroutine x86_64 0:1.90.0-13.fc45 fedora 20.9 KiB boost-date-time x86_64 0:1.90.0-13.fc45 fedora 12.1 KiB boost-fiber x86_64 0:1.90.0-13.fc45 fedora 86.9 KiB boost-filesystem x86_64 0:1.90.0-13.fc45 fedora 159.7 KiB boost-graph x86_64 0:1.90.0-13.fc45 fedora 370.6 KiB boost-iostreams x86_64 0:1.90.0-13.fc45 fedora 90.4 KiB boost-json x86_64 0:1.90.0-13.fc45 fedora 373.0 KiB boost-locale x86_64 0:1.90.0-13.fc45 fedora 699.2 KiB boost-log x86_64 0:1.90.0-13.fc45 fedora 1.5 MiB boost-math x86_64 0:1.90.0-13.fc45 fedora 592.2 KiB boost-nowide x86_64 0:1.90.0-13.fc45 fedora 20.7 KiB boost-numpy3 x86_64 0:1.90.0-13.fc45 fedora 57.5 KiB boost-process x86_64 0:1.90.0-13.fc45 fedora 77.8 KiB boost-program-options x86_64 0:1.90.0-13.fc45 fedora 284.6 KiB boost-python3 x86_64 0:1.90.0-13.fc45 fedora 262.2 KiB boost-random x86_64 0:1.90.0-13.fc45 fedora 29.4 KiB boost-regex x86_64 0:1.90.0-13.fc45 fedora 294.7 KiB boost-serialization x86_64 0:1.90.0-13.fc45 fedora 441.1 KiB boost-stacktrace x86_64 0:1.90.0-13.fc45 fedora 103.1 KiB boost-test x86_64 0:1.90.0-13.fc45 fedora 643.6 KiB boost-thread x86_64 0:1.90.0-13.fc45 fedora 123.7 KiB boost-timer x86_64 0:1.90.0-13.fc45 fedora 20.8 KiB boost-type_erasure x86_64 0:1.90.0-13.fc45 fedora 62.0 KiB boost-url x86_64 0:1.90.0-13.fc45 fedora 335.2 KiB boost-wave x86_64 0:1.90.0-13.fc45 fedora 904.3 KiB bubblewrap x86_64 0:0.12.0-1.fc46 copr_base 139.7 KiB cairo x86_64 0:1.18.6-1.fc46 fedora 1.8 MiB cairo-gobject x86_64 0:1.18.6-1.fc46 fedora 31.0 KiB clang22-libs x86_64 0:22.1.8-3.fc46 fedora 109.7 MiB clang22-resource-filesystem x86_64 0:22.1.8-3.fc46 fedora 14.8 KiB cmake-data noarch 0:4.3.0-5.fc45 fedora 9.4 MiB cmake-filesystem x86_64 0:4.3.0-5.fc45 fedora 0.0 B cmake-rpm-macros noarch 0:4.3.0-5.fc45 fedora 8.4 KiB colord-libs x86_64 0:1.4.8-5.fc45 fedora 830.6 KiB cups-filesystem noarch 1:2.4.19-4.fc46 copr_base 0.0 B cups-libs x86_64 1:2.4.19-4.fc46 copr_base 794.6 KiB dbus x86_64 1:1.16.2-6.fc46 copr_base 0.0 B dbus-libs x86_64 1:1.16.2-6.fc46 copr_base 460.1 KiB default-fonts-core-sans noarch 0:4.3-3.fc45 fedora 11.9 KiB docbook-dtds noarch 0:1.0-93.fc46 fedora 6.7 MiB double-conversion x86_64 0:3.4.0-4.fc46 copr_base 96.5 KiB duktape x86_64 0:2.7.0-12.fc46 copr_base 692.8 KiB emacs-filesystem x86_64 1:31.1-1.fc46 fedora 0.0 B flexiblas x86_64 0:3.5.0-4.fc46 fedora 38.0 KiB flexiblas-netlib x86_64 0:3.5.0-4.fc46 fedora 16.3 MiB flexiblas-openblas-openmp x86_64 0:3.5.0-4.fc46 fedora 39.1 KiB fontconfig x86_64 0:2.18.3-2.fc46 fedora 1.0 MiB fonts-filesystem noarch 1:5.0.0-4.fc45 fedora 0.0 B freetype x86_64 0:2.14.3-2.fc46 copr_base 950.1 KiB fribidi x86_64 0:1.0.17-2.fc46 fedora 394.5 KiB gdk-pixbuf2 x86_64 0:2.44.8-3.fc46 fedora 2.6 MiB glib-networking x86_64 0:2.90.0-1.fc46 fedora 802.7 KiB glib2 x86_64 0:2.90.0-1.fc46 fedora 15.3 MiB glx-utils x86_64 0:9.0.0-12.fc46 copr_base 422.7 KiB glycin-libs x86_64 0:2.2.1-1.fc46 fedora 4.7 MiB glycin-loaders x86_64 0:2.2.1-1.fc46 fedora 14.7 MiB google-noto-fonts-common noarch 0:20260901-4.fc46 fedora 17.7 KiB google-noto-sans-vf-fonts noarch 0:20260901-4.fc46 fedora 1.4 MiB graphite2 x86_64 0:1.3.14-22.fc46 copr_base 200.2 KiB gsettings-desktop-schemas x86_64 0:51.0-1.fc46 fedora 6.7 MiB gtk-update-icon-cache x86_64 0:3.24.52-6.fc45 fedora 62.0 KiB gtk3 x86_64 0:3.24.52-6.fc45 fedora 22.8 MiB harfbuzz x86_64 0:14.5.0-1.fc46 fedora 3.0 MiB hicolor-icon-theme noarch 0:0.18-6.fc45 fedora 72.4 KiB highway x86_64 0:1.3.0-3.fc45 fedora 5.6 MiB hwdata noarch 0:0.411-1.fc46 fedora 10.1 MiB json-glib x86_64 0:1.10.8-11.fc45 fedora 596.2 KiB jsoncpp x86_64 0:1.9.6-3.fc46 copr_base 247.3 KiB lcms2 x86_64 0:2.16-8.fc46 copr_base 548.9 KiB libICE x86_64 0:1.1.2-5.fc45 fedora 198.4 KiB libSM x86_64 0:1.2.5-5.fc45 fedora 100.9 KiB libX11 x86_64 0:1.8.13-3.fc46 fedora 1.3 MiB libX11-common noarch 0:1.8.13-3.fc46 fedora 1.1 MiB libX11-devel x86_64 0:1.8.13-3.fc46 fedora 1.0 MiB libX11-xcb x86_64 0:1.8.13-3.fc46 fedora 10.8 KiB libXau x86_64 0:1.0.12-5.fc45 fedora 72.8 KiB libXau-devel x86_64 0:1.0.12-5.fc45 fedora 7.3 KiB libXcomposite x86_64 0:0.4.6-8.fc45 fedora 44.3 KiB libXcursor x86_64 0:1.2.3-5.fc45 fedora 53.3 KiB libXdamage x86_64 0:1.1.6-8.fc45 fedora 39.5 KiB libXext x86_64 0:1.3.6-6.fc45 fedora 89.9 KiB libXfixes x86_64 0:6.0.1-8.fc45 fedora 30.0 KiB libXft x86_64 0:2.3.8-11.fc45 fedora 168.3 KiB libXi x86_64 0:1.8.3-2.fc45 fedora 80.6 KiB libXinerama x86_64 0:1.1.5-11.fc45 fedora 14.8 KiB libXrandr x86_64 0:1.5.4-8.fc45 fedora 51.7 KiB libXrender x86_64 0:0.9.12-5.fc45 fedora 49.9 KiB libXtst x86_64 0:1.2.5-5.fc45 fedora 33.4 KiB libXxf86vm x86_64 0:1.1.6-5.fc45 fedora 25.1 KiB libaom x86_64 0:3.13.3-3.fc46 copr_base 6.3 MiB libb2 x86_64 0:0.98.1-16.fc46 copr_base 45.5 KiB libcloudproviders x86_64 0:0.4.1-1.fc46 fedora 124.0 KiB libdatrie x86_64 0:0.2.14-3.fc45 fedora 57.7 KiB libdav1d x86_64 0:1.5.4-1.fc46 copr_base 1.8 MiB libdecor x86_64 0:0.2.5-3.fc46 copr_base 164.3 KiB libdrm x86_64 0:2.4.134-2.fc46 copr_base 411.2 KiB libepoxy x86_64 0:1.5.10-13.fc45 fedora 1.1 MiB libevdev x86_64 0:1.13.7-1.fc46 copr_base 81.7 KiB libfbclient2 x86_64 0:5.0.4.1812-2.fc45 fedora 3.3 MiB libffi-devel x86_64 0:3.8.0-1.fc46 fedora 38.7 KiB libgfortran x86_64 0:16.2.1-2.fc46.1 fedora 3.4 MiB libglvnd x86_64 1:1.7.0-10.fc46 copr_base 526.7 KiB libglvnd-core-devel x86_64 1:1.7.0-10.fc46 copr_base 40.3 KiB libglvnd-devel x86_64 1:1.7.0-10.fc46 copr_base 2.1 MiB libglvnd-egl x86_64 1:1.7.0-10.fc46 copr_base 80.9 KiB libglvnd-gles x86_64 1:1.7.0-10.fc46 copr_base 89.6 KiB libglvnd-glx x86_64 1:1.7.0-10.fc46 copr_base 597.1 KiB libglvnd-opengl x86_64 1:1.7.0-10.fc46 copr_base 144.7 KiB libgudev x86_64 0:238-10.fc45 fedora 87.6 KiB libgusb x86_64 0:0.4.9-6.fc45 fedora 162.0 KiB libheif x86_64 0:1.23.5-4.fc46 fedora 2.4 MiB libicu x86_64 0:78.3-8.fc45 fedora 37.8 MiB libicu-devel x86_64 0:78.3-8.fc45 fedora 5.2 MiB libinput x86_64 0:1.32.0-1.fc46 fedora 712.6 KiB libjpeg-turbo x86_64 0:3.1.4.1-2.fc46 copr_base 933.4 KiB libjxl x86_64 1:0.11.2-2.fc45 fedora 4.1 MiB libopenjph x86_64 0:0.31.0-1.fc46 copr_base 509.8 KiB libpciaccess x86_64 0:0.16-18.fc45 fedora 48.4 KiB libpng x86_64 2:1.6.58-2.fc46 copr_base 294.0 KiB libpq x86_64 0:18.4-4.fc46 copr_base 1.1 MiB libproxy x86_64 0:0.5.12-3.fc45 fedora 106.1 KiB libquadmath x86_64 0:16.2.1-2.fc46.1 fedora 321.9 KiB libquadmath-devel x86_64 0:16.2.1-2.fc46.1 fedora 22.2 KiB librsvg2 x86_64 0:2.63.2-1.fc46 fedora 5.0 MiB libseccomp x86_64 0:2.6.1-3.fc45 fedora 222.2 KiB libsoup3 x86_64 0:3.7.3-1.fc46 fedora 1.2 MiB libstemmer x86_64 0:3.1.1-2.fc45 fedora 673.5 KiB libthai x86_64 0:0.1.30-3.fc46 copr_base 804.8 KiB libtinysparql x86_64 0:3.12.0-1.fc46 fedora 1.0 MiB libtommath x86_64 0:1.3.1~rc1-8.fc45 fedora 130.3 KiB libuv x86_64 1:1.52.1-2.fc46 copr_base 592.9 KiB libvmaf x86_64 0:3.2.1-1.fc46 copr_base 1.3 MiB libwacom x86_64 0:2.20.0-1.fc46 copr_base 105.6 KiB libwacom-data noarch 0:2.20.0-1.fc46 copr_base 1.4 MiB libwayland-client x86_64 0:1.26.0-3.fc46 fedora 66.0 KiB libwayland-cursor x86_64 0:1.26.0-3.fc46 fedora 37.2 KiB libwayland-egl x86_64 0:1.26.0-3.fc46 fedora 12.3 KiB libwayland-server x86_64 0:1.26.0-3.fc46 fedora 82.5 KiB libwebp x86_64 0:1.6.0-4.fc45 fedora 968.1 KiB libxcb x86_64 0:1.17.0-8.fc45 fedora 1.1 MiB libxcb-devel x86_64 0:1.17.0-8.fc45 fedora 2.6 MiB libxkbcommon x86_64 0:1.13.1-4.fc46 copr_base 455.9 KiB libxkbcommon-devel x86_64 0:1.13.1-4.fc46 copr_base 393.4 KiB libxkbcommon-x11 x86_64 0:1.13.1-4.fc46 copr_base 39.3 KiB libxml2-devel x86_64 0:2.15.4-1.fc46 fedora 6.7 MiB libxshmfence x86_64 0:1.3.2-9.fc45 fedora 12.3 KiB libyaml x86_64 0:0.2.5-19.fc46 copr_base 141.9 KiB llvm22-filesystem x86_64 0:22.1.8-3.fc46 fedora 0.0 B llvm22-libs x86_64 0:22.1.8-3.fc46 fedora 140.5 MiB lm_sensors-libs x86_64 0:3.6.0-25.fc45 fedora 89.7 KiB lzo x86_64 0:2.10-17.fc45 fedora 178.8 KiB mariadb-connector-c x86_64 0:3.4.9-3.fc46 copr_base 533.3 KiB mariadb-connector-c-config noarch 0:3.4.9-3.fc46 copr_base 26.4 KiB mesa-dri-drivers x86_64 0:26.2.3-1.fc46 fedora 53.2 MiB mesa-filesystem x86_64 0:26.2.3-1.fc46 fedora 3.6 KiB mesa-libEGL x86_64 0:26.2.3-1.fc46 fedora 398.5 KiB mesa-libGL x86_64 0:26.2.3-1.fc46 fedora 378.4 KiB mesa-libgbm x86_64 0:26.2.3-1.fc46 fedora 19.5 KiB mtdev x86_64 0:1.1.6-13.fc46 copr_base 28.8 KiB ninja-build x86_64 0:1.13.2-6.fc46 copr_base 497.4 KiB noopenh264 x86_64 0:2.6.0-5.fc46 copr_base 38.8 KiB numactl-libs x86_64 0:2.0.19-5.fc45 fedora 56.8 KiB odbcinst-generate noarch 0:2.3.14-36.fc45 fedora 22.5 KiB openblas x86_64 0:0.3.34-1.fc45 fedora 138.1 KiB openblas-openmp x86_64 0:0.3.34-1.fc45 fedora 44.8 MiB openjpeg x86_64 0:2.5.4-4.fc46 copr_base 439.9 KiB pandoc-common noarch 0:3.7.0.2-40.fc45 fedora 2.0 MiB pango x86_64 0:1.58.2-1.fc46 copr_base 1.0 MiB pcre2-utf16 x86_64 0:10.47-1.fc46.2 copr_base 694.6 KiB pixman x86_64 0:0.46.2-4.fc46 copr_base 826.7 KiB pyproject-rpm-macros noarch 0:1.23.2-1.fc45 fedora 156.3 KiB python-rpm-macros noarch 0:3.15-2.fc45 fedora 28.0 KiB python3-numpy x86_64 1:2.5.3-1.fc46 fedora 43.0 MiB python3-numpy-f2py x86_64 1:2.5.3-1.fc46 fedora 2.1 MiB python3-packaging noarch 0:26.3-1.fc46 fedora 1.3 MiB python3-rpm-generators noarch 0:14-35.fc46 fedora 81.9 KiB python3-rpm-macros noarch 0:3.15-2.fc45 fedora 6.5 KiB qt6-designer x86_64 0:6.11.2-1.fc46 fedora 638.0 KiB qt6-doctools x86_64 0:6.11.2-1.fc46 fedora 2.5 MiB qt6-filesystem x86_64 0:6.11.2-1.fc46 fedora 0.0 B qt6-qtbase x86_64 0:6.11.2-2.fc46 copr_base 12.4 MiB qt6-qtbase-common noarch 0:6.11.2-2.fc46 copr_base 76.0 B qt6-qtbase-gui x86_64 0:6.11.2-2.fc46 copr_base 24.8 MiB qt6-qtbase-ibase x86_64 0:6.11.2-2.fc46 copr_base 146.7 KiB qt6-qtbase-mysql x86_64 0:6.11.2-2.fc46 copr_base 109.7 KiB qt6-qtbase-odbc x86_64 0:6.11.2-2.fc46 copr_base 145.7 KiB qt6-qtbase-postgresql x86_64 0:6.11.2-2.fc46 copr_base 126.0 KiB qt6-qtdeclarative x86_64 0:6.11.2-2.fc46 fedora 59.3 MiB qt6-qtsvg x86_64 0:6.11.2-1.fc46 fedora 947.8 KiB qt6-qttools x86_64 0:6.11.2-1.fc46 fedora 921.0 KiB qt6-qttools-common noarch 0:6.11.2-1.fc46 fedora 7.5 KiB qt6-qttools-libs-designer x86_64 0:6.11.2-1.fc46 fedora 6.0 MiB qt6-qttools-libs-designercomponents x86_64 0:6.11.2-1.fc46 fedora 3.3 MiB qt6-qttools-libs-help x86_64 0:6.11.2-1.fc46 fedora 631.2 KiB qt6-rpm-macros noarch 0:6.11.2-1.fc46 fedora 3.0 KiB rav1e-libs x86_64 0:0.8.1-5.fc46 fedora 3.0 MiB rhash x86_64 0:1.4.5-5.fc45 fedora 354.8 KiB sdl2-compat x86_64 0:2.32.72-1.fc46 fedora 412.6 KiB sgml-common noarch 0:0.6.3-70.fc46 fedora 168.1 KiB shared-mime-info x86_64 0:2.5.1-3.fc46 fedora 6.6 MiB spirv-tools-libs x86_64 0:2026.3-1.fc46 fedora 6.4 MiB svt-av1-libs x86_64 0:3.1.2-3.fc46 copr_base 6.3 MiB tinyxml2 x86_64 0:11.0.0-8.fc46 fedora 108.7 KiB tslib x86_64 0:1.24-3.fc45 fedora 406.8 KiB unixODBC x86_64 0:2.3.14-36.fc45 fedora 1.0 MiB vim-filesystem noarch 2:9.2.1129-1.fc46 fedora 40.0 B vulkan-headers noarch 0:1.4.357.0-1.fc46 copr_base 39.7 MiB vulkan-loader x86_64 0:1.4.357.0-1.fc46 fedora 598.7 KiB vulkan-loader-devel x86_64 0:1.4.357.0-1.fc46 fedora 8.0 KiB wayland-devel x86_64 0:1.26.0-3.fc46 fedora 724.6 KiB xcb-util x86_64 0:0.4.1-10.fc46 copr_base 26.0 KiB xcb-util-cursor x86_64 0:0.1.6-3.fc46 copr_base 26.9 KiB xcb-util-image x86_64 0:0.4.1-10.fc46 copr_base 25.8 KiB xcb-util-keysyms x86_64 0:0.4.1-10.fc46 copr_base 12.4 KiB xcb-util-renderutil x86_64 0:0.3.10-10.fc46 copr_base 24.0 KiB xcb-util-wm x86_64 0:0.4.2-10.fc46 copr_base 80.6 KiB xkeyboard-config noarch 0:2.48-4.fc45 fedora 6.4 MiB xml-common noarch 0:0.6.3-70.fc46 fedora 78.4 KiB xorg-x11-proto-devel noarch 0:2025.1-3.fc46 copr_base 1.8 MiB xprop x86_64 0:1.2.8-6.fc46 copr_base 54.5 KiB xz-devel x86_64 1:5.8.4-1.fc46 copr_base 258.8 KiB Transaction Summary: Installing: 252 packages Replacing: 10 packages Downgrading: 10 packages Total size of inbound packages is 376 MiB. Need to download 373 MiB. After this operation, 1 GiB extra will be used (install 2 GiB, remove 523 MiB). [ 1/262] docbook-style-xsl-0:1.79.2-29 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 2/262] libxslt-0:1.1.43-10.fc46.x86_ 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 3/262] zlib-ng-compat-devel-0:2.3.3- 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 4/262] docbook-dtds-0:1.0-93.fc46.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 5/262] xml-common-0:0.6.3-70.fc46.no 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 6/262] cmake-filesystem-0:4.3.0-5.fc 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 7/262] emacs-filesystem-1:31.1-1.fc4 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 8/262] sgml-common-0:0.6.3-70.fc46.n 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 9/262] xz-devel-1:5.8.4-1.fc46.x86_6 100% | 0.0 B/s | 0.0 B | 00m00s >>> Already downloaded [ 10/262] qt6-linguist-0:6.11.2-1.fc46. 100% | 4.0 MiB/s | 1.3 MiB | 00m00s [ 11/262] boost-devel-0:1.90.0-13.fc45. 100% | 36.2 MiB/s | 15.0 MiB | 00m00s [ 12/262] desktop-file-utils-0:0.28-8.f 100% | 21.9 MiB/s | 67.3 KiB | 00m00s [ 13/262] python3-devel-0:3.15.0~rc2-1. 100% | 12.7 MiB/s | 482.7 KiB | 00m00s [ 14/262] pandoc-cli-0:3.7.0.2-41.fc45. 100% | 57.9 MiB/s | 28.7 MiB | 00m00s [ 15/262] qt6-qtbase-devel-0:6.11.2-2.f 100% | 78.5 MiB/s | 3.5 MiB | 00m00s [ 16/262] cmake-0:4.3.0-5.fc45.x86_64 100% | 68.6 MiB/s | 14.4 MiB | 00m00s [ 17/262] tinyxml2-devel-0:11.0.0-8.fc4 100% | 885.4 KiB/s | 29.2 KiB | 00m00s [ 18/262] qt6-qttools-devel-0:6.11.2-1. 100% | 10.8 MiB/s | 454.0 KiB | 00m00s [ 19/262] numactl-libs-0:2.0.19-5.fc45. 100% | 885.0 KiB/s | 31.9 KiB | 00m00s [ 20/262] pandoc-common-0:3.7.0.2-40.fc 100% | 16.1 MiB/s | 593.7 KiB | 00m00s [ 21/262] qt6-qttools-common-0:6.11.2-1 100% | 335.4 KiB/s | 11.4 KiB | 00m00s [ 22/262] qt6-qtdeclarative-0:6.11.2-2. 100% | 172.1 MiB/s | 14.8 MiB | 00m00s [ 23/262] qt6-qttools-0:6.11.2-1.fc46.x 100% | 4.5 MiB/s | 235.7 KiB | 00m00s [ 24/262] boost-0:1.90.0-13.fc45.x86_64 100% | 382.1 KiB/s | 12.2 KiB | 00m00s [ 25/262] boost-numpy3-0:1.90.0-13.fc45 100% | 777.2 KiB/s | 28.0 KiB | 00m00s [ 26/262] libicu-devel-0:78.3-8.fc45.x8 100% | 21.4 MiB/s | 810.0 KiB | 00m00s [ 27/262] libquadmath-devel-0:16.2.1-2. 100% | 1.4 MiB/s | 47.5 KiB | 00m00s [ 28/262] rhash-0:1.4.5-5.fc45.x86_64 100% | 5.3 MiB/s | 201.7 KiB | 00m00s [ 29/262] cmake-data-0:4.3.0-5.fc45.noa 100% | 65.4 MiB/s | 2.7 MiB | 00m00s [ 30/262] glib2-0:2.90.0-1.fc46.x86_64 100% | 81.5 MiB/s | 3.2 MiB | 00m00s [ 31/262] qt6-rpm-macros-0:6.11.2-1.fc4 100% | 326.7 KiB/s | 11.8 KiB | 00m00s [ 32/262] qt6-designer-0:6.11.2-1.fc46. 100% | 5.5 MiB/s | 208.1 KiB | 00m00s [ 33/262] qt6-doctools-0:6.11.2-1.fc46. 100% | 24.7 MiB/s | 934.2 KiB | 00m00s [ 34/262] qt6-qttools-libs-help-0:6.11. 100% | 1.7 MiB/s | 221.2 KiB | 00m00s [ 35/262] qt6-qttools-libs-designer-0:6 100% | 20.2 MiB/s | 3.0 MiB | 00m00s [ 36/262] qt6-qttools-libs-designercomp 100% | 6.6 MiB/s | 987.4 KiB | 00m00s [ 37/262] tinyxml2-0:11.0.0-8.fc46.x86_ 100% | 1.3 MiB/s | 46.7 KiB | 00m00s [ 38/262] qt6-qtsvg-0:6.11.2-1.fc46.x86 100% | 8.4 MiB/s | 319.1 KiB | 00m00s [ 39/262] boost-atomic-0:1.90.0-13.fc45 100% | 529.6 KiB/s | 19.1 KiB | 00m00s [ 40/262] boost-charconv-0:1.90.0-13.fc 100% | 2.7 MiB/s | 89.1 KiB | 00m00s [ 41/262] boost-chrono-0:1.90.0-13.fc45 100% | 705.7 KiB/s | 25.4 KiB | 00m00s [ 42/262] boost-cobalt-0:1.90.0-13.fc45 100% | 5.6 MiB/s | 208.1 KiB | 00m00s [ 43/262] boost-container-0:1.90.0-13.f 100% | 1.2 MiB/s | 39.3 KiB | 00m00s [ 44/262] boost-context-0:1.90.0-13.fc4 100% | 410.0 KiB/s | 14.8 KiB | 00m00s [ 45/262] boost-contract-0:1.90.0-13.fc 100% | 1.4 MiB/s | 50.4 KiB | 00m00s [ 46/262] boost-coroutine-0:1.90.0-13.f 100% | 545.0 KiB/s | 18.0 KiB | 00m00s [ 47/262] boost-fiber-0:1.90.0-13.fc45. 100% | 1.2 MiB/s | 43.9 KiB | 00m00s [ 48/262] boost-date-time-0:1.90.0-13.f 100% | 374.5 KiB/s | 13.5 KiB | 00m00s [ 49/262] boost-filesystem-0:1.90.0-13. 100% | 2.1 MiB/s | 72.6 KiB | 00m00s [ 50/262] boost-graph-0:1.90.0-13.fc45. 100% | 4.4 MiB/s | 162.0 KiB | 00m00s [ 51/262] boost-iostreams-0:1.90.0-13.f 100% | 1.1 MiB/s | 40.5 KiB | 00m00s [ 52/262] boost-json-0:1.90.0-13.fc45.x 100% | 4.8 MiB/s | 158.1 KiB | 00m00s [ 53/262] boost-locale-0:1.90.0-13.fc45 100% | 6.6 MiB/s | 243.6 KiB | 00m00s [ 54/262] boost-log-0:1.90.0-13.fc45.x8 100% | 13.7 MiB/s | 517.8 KiB | 00m00s [ 55/262] boost-math-0:1.90.0-13.fc45.x 100% | 5.9 MiB/s | 198.1 KiB | 00m00s [ 56/262] boost-nowide-0:1.90.0-13.fc45 100% | 513.9 KiB/s | 18.5 KiB | 00m00s [ 57/262] boost-process-0:1.90.0-13.fc4 100% | 1.2 MiB/s | 41.3 KiB | 00m00s [ 58/262] boost-program-options-0:1.90. 100% | 3.5 MiB/s | 113.2 KiB | 00m00s [ 59/262] boost-python3-0:1.90.0-13.fc4 100% | 2.7 MiB/s | 100.9 KiB | 00m00s [ 60/262] boost-random-0:1.90.0-13.fc45 100% | 631.0 KiB/s | 22.7 KiB | 00m00s [ 61/262] boost-regex-0:1.90.0-13.fc45. 100% | 3.6 MiB/s | 120.3 KiB | 00m00s [ 62/262] boost-test-0:1.90.0-13.fc45.x 100% | 7.2 MiB/s | 244.8 KiB | 00m00s [ 63/262] boost-serialization-0:1.90.0- 100% | 3.7 MiB/s | 136.7 KiB | 00m00s [ 64/262] boost-stacktrace-0:1.90.0-13. 100% | 1.1 MiB/s | 41.4 KiB | 00m00s [ 65/262] boost-thread-0:1.90.0-13.fc45 100% | 1.7 MiB/s | 56.8 KiB | 00m00s [ 66/262] boost-timer-0:1.90.0-13.fc45. 100% | 564.6 KiB/s | 19.8 KiB | 00m00s [ 67/262] boost-type_erasure-0:1.90.0-1 100% | 977.0 KiB/s | 34.2 KiB | 00m00s [ 68/262] boost-url-0:1.90.0-13.fc45.x8 100% | 3.9 MiB/s | 126.6 KiB | 00m00s [ 69/262] boost-wave-0:1.90.0-13.fc45.x 100% | 6.7 MiB/s | 255.4 KiB | 00m00s [ 70/262] python3-numpy-1:2.5.3-1.fc46. 100% | 148.5 MiB/s | 8.5 MiB | 00m00s [ 71/262] vim-filesystem-2:9.2.1129-1.f 100% | 432.1 KiB/s | 15.6 KiB | 00m00s [ 72/262] libicu-0:78.3-8.fc45.x86_64 100% | 166.0 MiB/s | 11.1 MiB | 00m00s [ 73/262] libquadmath-0:16.2.1-2.fc46.1 100% | 6.1 MiB/s | 207.7 KiB | 00m00s [ 74/262] clang22-libs-0:22.1.8-3.fc46. 100% | 239.3 MiB/s | 28.2 MiB | 00m00s [ 75/262] flexiblas-netlib-0:3.5.0-4.fc 100% | 58.2 MiB/s | 4.5 MiB | 00m00s [ 76/262] python3-numpy-f2py-1:2.5.3-1. 100% | 13.6 MiB/s | 515.9 KiB | 00m00s [ 77/262] clang22-resource-filesystem-0 100% | 543.8 KiB/s | 17.9 KiB | 00m00s [ 78/262] llvm22-filesystem-0:22.1.8-3. 100% | 345.2 KiB/s | 12.4 KiB | 00m00s [ 79/262] flexiblas-0:3.5.0-4.fc46.x86_ 100% | 705.6 KiB/s | 22.6 KiB | 00m00s [ 80/262] llvm22-libs-0:22.1.8-3.fc46.x 100% | 143.2 MiB/s | 34.1 MiB | 00m00s [ 81/262] flexiblas-openblas-openmp-0:3 100% | 270.1 KiB/s | 16.5 KiB | 00m00s [ 82/262] libgfortran-0:16.2.1-2.fc46.1 100% | 24.1 MiB/s | 987.1 KiB | 00m00s [ 83/262] libglvnd-devel-1:1.7.0-10.fc4 100% | 76.7 MiB/s | 157.0 KiB | 00m00s [ 84/262] libX11-devel-0:1.8.13-3.fc46. 100% | 27.2 MiB/s | 1.1 MiB | 00m00s [ 85/262] python3-setuptools-0:84.0.0-1 100% | 37.2 MiB/s | 1.7 MiB | 00m00s [ 86/262] openblas-openmp-0:0.3.34-1.fc 100% | 103.5 MiB/s | 5.5 MiB | 00m00s [ 87/262] libX11-0:1.8.13-3.fc46.x86_64 100% | 19.4 MiB/s | 674.9 KiB | 00m00s [ 88/262] libX11-xcb-0:1.8.13-3.fc46.x8 100% | 301.1 KiB/s | 10.8 KiB | 00m00s [ 89/262] libX11-common-0:1.8.13-3.fc46 100% | 4.9 MiB/s | 175.2 KiB | 00m00s [ 90/262] libxkbcommon-devel-0:1.13.1-4 100% | 36.2 MiB/s | 74.2 KiB | 00m00s [ 91/262] pcre2-utf16-0:10.47-1.fc46.2. 100% | 76.5 MiB/s | 235.0 KiB | 00m00s [ 92/262] qt6-qtbase-0:6.11.2-2.fc46.x8 100% | 302.7 MiB/s | 3.6 MiB | 00m00s [ 93/262] libxcb-0:1.17.0-8.fc45.x86_64 100% | 7.0 MiB/s | 237.9 KiB | 00m00s [ 94/262] libXau-0:1.0.12-5.fc45.x86_64 100% | 958.4 KiB/s | 33.5 KiB | 00m00s [ 95/262] qt6-qtbase-gui-0:6.11.2-2.fc4 100% | 278.1 MiB/s | 7.2 MiB | 00m00s [ 96/262] qt6-filesystem-0:6.11.2-1.fc4 100% | 290.3 KiB/s | 10.5 KiB | 00m00s [ 97/262] libICE-0:1.1.2-5.fc45.x86_64 100% | 2.2 MiB/s | 79.9 KiB | 00m00s [ 98/262] libSM-0:1.2.5-5.fc45.x86_64 100% | 1.3 MiB/s | 44.5 KiB | 00m00s [ 99/262] qt6-qtbase-ibase-0:6.11.2-2.f 100% | 31.1 MiB/s | 63.8 KiB | 00m00s [100/262] qt6-qtbase-mysql-0:6.11.2-2.f 100% | 24.0 MiB/s | 49.1 KiB | 00m00s [101/262] qt6-qtbase-odbc-0:6.11.2-2.fc 100% | 30.2 MiB/s | 61.9 KiB | 00m00s [102/262] mesa-libgbm-0:26.2.3-1.fc46.x 100% | 584.8 KiB/s | 20.5 KiB | 00m00s [103/262] tslib-0:1.24-3.fc45.x86_64 100% | 4.2 MiB/s | 158.3 KiB | 00m00s [104/262] qt6-qtbase-postgresql-0:6.11. 100% | 26.9 MiB/s | 55.1 KiB | 00m00s [105/262] unixODBC-0:2.3.14-36.fc45.x86 100% | 11.7 MiB/s | 420.7 KiB | 00m00s [106/262] odbcinst-generate-0:2.3.14-36 100% | 612.2 KiB/s | 22.0 KiB | 00m00s [107/262] vulkan-loader-devel-0:1.4.357 100% | 341.3 KiB/s | 12.3 KiB | 00m00s [108/262] vulkan-loader-0:1.4.357.0-1.f 100% | 4.9 MiB/s | 169.3 KiB | 00m00s [109/262] wayland-devel-0:1.26.0-3.fc46 100% | 4.4 MiB/s | 161.3 KiB | 00m00s [110/262] libwayland-client-0:1.26.0-3. 100% | 985.6 KiB/s | 35.5 KiB | 00m00s [111/262] libwayland-cursor-0:1.26.0-3. 100% | 586.1 KiB/s | 19.3 KiB | 00m00s [112/262] dbus-libs-1:1.16.2-6.fc46.x86 100% | 46.1 MiB/s | 188.6 KiB | 00m00s [113/262] double-conversion-0:3.4.0-4.f 100% | 25.0 MiB/s | 51.2 KiB | 00m00s [114/262] libwayland-egl-0:1.26.0-3.fc4 100% | 346.2 KiB/s | 12.5 KiB | 00m00s [115/262] libb2-0:0.98.1-16.fc46.x86_64 100% | 11.5 MiB/s | 23.6 KiB | 00m00s [116/262] qt6-qtbase-common-0:6.11.2-2. 100% | 10.9 MiB/s | 11.2 KiB | 00m00s [117/262] libxkbcommon-0:1.13.1-4.fc46. 100% | 91.8 MiB/s | 188.1 KiB | 00m00s [118/262] libwayland-server-0:1.26.0-3. 100% | 1.2 MiB/s | 43.9 KiB | 00m00s [119/262] libglvnd-1:1.7.0-10.fc46.x86_ 100% | 37.1 MiB/s | 114.1 KiB | 00m00s [120/262] libglvnd-egl-1:1.7.0-10.fc46. 100% | 18.8 MiB/s | 38.6 KiB | 00m00s [121/262] libproxy-0:0.5.12-3.fc45.x86_ 100% | 1.2 MiB/s | 45.0 KiB | 00m00s [122/262] xkeyboard-config-0:2.48-4.fc4 100% | 25.9 MiB/s | 1.0 MiB | 00m00s [123/262] mesa-libEGL-0:26.2.3-1.fc46.x 100% | 4.0 MiB/s | 145.9 KiB | 00m00s [124/262] libxshmfence-0:1.3.2-9.fc45.x 100% | 396.6 KiB/s | 13.1 KiB | 00m00s [125/262] mesa-dri-drivers-0:26.2.3-1.f 100% | 162.9 MiB/s | 13.8 MiB | 00m00s [126/262] lm_sensors-libs-0:3.6.0-25.fc 100% | 647.0 KiB/s | 41.4 KiB | 00m00s [127/262] mesa-filesystem-0:26.2.3-1.fc 100% | 328.5 KiB/s | 14.5 KiB | 00m00s [128/262] libglvnd-gles-1:1.7.0-10.fc46 100% | 14.0 MiB/s | 28.6 KiB | 00m00s [129/262] libglvnd-glx-1:1.7.0-10.fc46. 100% | 41.1 MiB/s | 126.2 KiB | 00m00s [130/262] mesa-libGL-0:26.2.3-1.fc46.x8 100% | 4.1 MiB/s | 144.4 KiB | 00m00s [131/262] spirv-tools-libs-0:2026.3-1.f 100% | 40.8 MiB/s | 1.8 MiB | 00m00s [132/262] libXext-0:1.3.6-6.fc45.x86_64 100% | 932.8 KiB/s | 40.1 KiB | 00m00s [133/262] libglvnd-opengl-1:1.7.0-10.fc 100% | 17.7 MiB/s | 36.3 KiB | 00m00s [134/262] libglvnd-core-devel-1:1.7.0-1 100% | 8.3 MiB/s | 17.0 KiB | 00m00s [135/262] vulkan-headers-0:1.4.357.0-1. 100% | 347.2 MiB/s | 1.7 MiB | 00m00s [136/262] libXxf86vm-0:1.1.6-5.fc45.x86 100% | 545.0 KiB/s | 18.0 KiB | 00m00s [137/262] SDL3-0:3.4.16-1.fc46.x86_64 100% | 292.8 MiB/s | 1.2 MiB | 00m00s [138/262] libyaml-0:0.2.5-19.fc46.x86_6 100% | 28.3 MiB/s | 57.9 KiB | 00m00s [139/262] libffi-devel-0:3.8.0-1.fc46.x 100% | 906.8 KiB/s | 32.6 KiB | 00m00s [140/262] libdrm-0:2.4.134-2.fc46.x86_6 100% | 50.7 MiB/s | 155.8 KiB | 00m00s [141/262] sdl2-compat-0:2.32.72-1.fc46. 100% | 3.8 MiB/s | 140.9 KiB | 00m00s [142/262] openblas-0:0.3.34-1.fc45.x86_ 100% | 1.5 MiB/s | 48.2 KiB | 00m00s [143/262] duktape-0:2.7.0-12.fc46.x86_6 100% | 88.0 MiB/s | 180.2 KiB | 00m00s [144/262] libpciaccess-0:0.16-18.fc45.x 100% | 754.5 KiB/s | 27.2 KiB | 00m00s [145/262] xorg-x11-proto-devel-0:2025.1 100% | 87.1 MiB/s | 267.6 KiB | 00m00s [146/262] jsoncpp-0:1.9.6-3.fc46.x86_64 100% | 46.1 MiB/s | 94.4 KiB | 00m00s [147/262] hwdata-0:0.411-1.fc46.noarch 100% | 41.8 MiB/s | 1.7 MiB | 00m00s [148/262] libuv-1:1.52.1-2.fc46.x86_64 100% | 131.2 MiB/s | 268.8 KiB | 00m00s [149/262] libpq-0:18.4-4.fc46.x86_64 100% | 140.9 MiB/s | 288.6 KiB | 00m00s [150/262] mariadb-connector-c-0:3.4.9-3 100% | 70.7 MiB/s | 217.1 KiB | 00m00s [151/262] libxcb-devel-0:1.17.0-8.fc45. 100% | 37.6 MiB/s | 1.5 MiB | 00m00s [152/262] cups-libs-1:2.4.19-4.fc46.x86 100% | 75.9 MiB/s | 310.7 KiB | 00m00s [153/262] libfbclient2-0:5.0.4.1812-2.f 100% | 29.4 MiB/s | 1.2 MiB | 00m00s [154/262] libtommath-0:1.3.1~rc1-8.fc45 100% | 1.6 MiB/s | 64.3 KiB | 00m00s [155/262] fontconfig-0:2.18.3-2.fc46.x8 100% | 11.3 MiB/s | 382.2 KiB | 00m00s [156/262] default-fonts-core-sans-0:4.3 100% | 808.7 KiB/s | 29.1 KiB | 00m00s [157/262] fonts-filesystem-1:5.0.0-4.fc 100% | 240.9 KiB/s | 8.7 KiB | 00m00s [158/262] abattis-cantarell-vf-fonts-0: 100% | 3.6 MiB/s | 120.3 KiB | 00m00s [159/262] freetype-0:2.14.3-2.fc46.x86_ 100% | 108.0 MiB/s | 442.2 KiB | 00m00s [160/262] glx-utils-0:9.0.0-12.fc46.x86 100% | 31.4 MiB/s | 64.3 KiB | 00m00s [161/262] google-noto-fonts-common-0:20 100% | 439.5 KiB/s | 16.7 KiB | 00m00s [162/262] google-noto-sans-vf-fonts-0:2 100% | 15.8 MiB/s | 613.9 KiB | 00m00s [163/262] libjpeg-turbo-0:3.1.4.1-2.fc4 100% | 83.6 MiB/s | 256.7 KiB | 00m00s [164/262] libpng-2:1.6.58-2.fc46.x86_64 100% | 68.1 MiB/s | 139.5 KiB | 00m00s [165/262] libxkbcommon-x11-0:1.13.1-4.f 100% | 22.0 MiB/s | 22.5 KiB | 00m00s [166/262] mtdev-0:1.1.6-13.fc46.x86_64 100% | 20.5 MiB/s | 21.0 KiB | 00m00s [167/262] xcb-util-cursor-0:0.1.6-3.fc4 100% | 6.0 MiB/s | 18.6 KiB | 00m00s [168/262] xcb-util-image-0:0.4.1-10.fc4 100% | 18.1 MiB/s | 18.5 KiB | 00m00s [169/262] xcb-util-keysyms-0:0.4.1-10.f 100% | 13.4 MiB/s | 13.7 KiB | 00m00s [170/262] harfbuzz-0:14.5.0-1.fc46.x86_ 100% | 32.9 MiB/s | 1.2 MiB | 00m00s [171/262] xcb-util-renderutil-0:0.3.10- 100% | 8.0 MiB/s | 16.4 KiB | 00m00s [172/262] xcb-util-wm-0:0.4.2-10.fc46.x 100% | 14.6 MiB/s | 29.9 KiB | 00m00s [173/262] mariadb-connector-c-config-0: 100% | 10.6 MiB/s | 21.6 KiB | 00m00s [174/262] avahi-libs-0:0.9~rc2-9.fc46.x 100% | 32.9 MiB/s | 67.3 KiB | 00m00s [175/262] cups-filesystem-1:2.4.19-4.fc 100% | 5.9 MiB/s | 12.1 KiB | 00m00s [176/262] libdecor-0:0.2.5-3.fc46.x86_6 100% | 26.0 MiB/s | 53.3 KiB | 00m00s [177/262] libinput-0:1.32.0-1.fc46.x86_ 100% | 7.5 MiB/s | 282.3 KiB | 00m00s [178/262] adwaita-icon-theme-0:51.0-1.f 100% | 10.8 MiB/s | 399.9 KiB | 00m00s [179/262] gtk3-0:3.24.52-6.fc45.x86_64 100% | 101.2 MiB/s | 6.1 MiB | 00m00s [180/262] at-spi2-atk-0:2.62.0.1-1.fc46 100% | 1.8 MiB/s | 89.7 KiB | 00m00s [181/262] atk-0:2.62.0.1-1.fc46.x86_64 100% | 2.5 MiB/s | 83.0 KiB | 00m00s [182/262] colord-libs-0:1.4.8-5.fc45.x8 100% | 6.2 MiB/s | 234.6 KiB | 00m00s [183/262] gdk-pixbuf2-0:2.44.8-3.fc46.x 100% | 13.1 MiB/s | 509.8 KiB | 00m00s [184/262] gtk-update-icon-cache-0:3.24. 100% | 1.0 MiB/s | 34.3 KiB | 00m00s [185/262] hicolor-icon-theme-0:0.18-6.f 100% | 1.8 MiB/s | 65.8 KiB | 00m00s [186/262] libXcomposite-0:0.4.6-8.fc45. 100% | 666.7 KiB/s | 24.0 KiB | 00m00s [187/262] libXcursor-0:1.2.3-5.fc45.x86 100% | 975.9 KiB/s | 32.2 KiB | 00m00s [188/262] libXdamage-0:1.1.6-8.fc45.x86 100% | 642.9 KiB/s | 23.1 KiB | 00m00s [189/262] libXfixes-0:6.0.1-8.fc45.x86_ 100% | 531.0 KiB/s | 19.1 KiB | 00m00s [190/262] libXi-0:1.8.3-2.fc45.x86_64 100% | 1.3 MiB/s | 41.3 KiB | 00m00s [191/262] libcloudproviders-0:0.4.1-1.f 100% | 1.4 MiB/s | 46.7 KiB | 00m00s [192/262] libXinerama-0:1.1.5-11.fc45.x 100% | 393.5 KiB/s | 14.2 KiB | 00m00s [193/262] libXrandr-0:1.5.4-8.fc45.x86_ 100% | 769.7 KiB/s | 27.7 KiB | 00m00s [194/262] libepoxy-0:1.5.10-13.fc45.x86 100% | 6.6 MiB/s | 229.9 KiB | 00m00s [195/262] adwaita-cursor-theme-0:51.0-1 100% | 10.0 MiB/s | 380.2 KiB | 00m00s [196/262] adwaita-icon-theme-legacy-0:4 100% | 52.7 MiB/s | 2.5 MiB | 00m00s [197/262] at-spi2-core-0:2.62.0.1-1.fc4 100% | 11.2 MiB/s | 400.4 KiB | 00m00s [198/262] libgusb-0:0.4.9-6.fc45.x86_64 100% | 1.8 MiB/s | 64.7 KiB | 00m00s [199/262] glycin-libs-0:2.2.1-1.fc46.x8 100% | 43.4 MiB/s | 1.7 MiB | 00m00s [200/262] shared-mime-info-0:2.5.1-3.fc 100% | 14.3 MiB/s | 481.7 KiB | 00m00s [201/262] libXrender-0:0.9.12-5.fc45.x8 100% | 793.2 KiB/s | 27.8 KiB | 00m00s [202/262] libXtst-0:1.2.5-5.fc45.x86_64 100% | 581.2 KiB/s | 20.9 KiB | 00m00s [203/262] json-glib-0:1.10.8-11.fc45.x8 100% | 5.2 MiB/s | 176.1 KiB | 00m00s [204/262] libseccomp-0:2.6.1-3.fc45.x86 100% | 2.1 MiB/s | 75.6 KiB | 00m00s [205/262] libheif-0:1.23.5-4.fc46.x86_6 100% | 24.5 MiB/s | 854.6 KiB | 00m00s [206/262] libwebp-0:1.6.0-4.fc45.x86_64 100% | 8.9 MiB/s | 328.9 KiB | 00m00s [207/262] rav1e-libs-0:0.8.1-5.fc46.x86 100% | 28.2 MiB/s | 1.0 MiB | 00m00s [208/262] libevdev-0:1.13.7-1.fc46.x86_ 100% | 18.2 MiB/s | 37.2 KiB | 00m00s [209/262] libwacom-0:2.20.0-1.fc46.x86_ 100% | 24.9 MiB/s | 50.9 KiB | 00m00s [210/262] libXau-devel-0:1.0.12-5.fc45. 100% | 385.5 KiB/s | 13.9 KiB | 00m00s [211/262] glycin-loaders-0:2.2.1-1.fc46 100% | 24.9 MiB/s | 3.4 MiB | 00m00s [212/262] libgudev-0:238-10.fc45.x86_64 100% | 1.0 MiB/s | 34.9 KiB | 00m00s [213/262] libaom-0:3.13.3-3.fc46.x86_64 100% | 157.8 MiB/s | 2.1 MiB | 00m00s [214/262] libopenjph-0:0.31.0-1.fc46.x8 100% | 84.6 MiB/s | 173.3 KiB | 00m00s [215/262] libdav1d-0:1.5.4-1.fc46.x86_6 100% | 111.0 MiB/s | 682.0 KiB | 00m00s [216/262] noopenh264-0:2.6.0-5.fc46.x86 100% | 5.2 MiB/s | 21.3 KiB | 00m00s [217/262] openjpeg-0:2.5.4-4.fc46.x86_6 100% | 38.8 MiB/s | 198.8 KiB | 00m00s [218/262] graphite2-0:1.3.14-22.fc46.x8 100% | 31.7 MiB/s | 97.4 KiB | 00m00s [219/262] svt-av1-libs-0:3.1.2-3.fc46.x 100% | 255.8 MiB/s | 2.0 MiB | 00m00s [220/262] cairo-0:1.18.6-1.fc46.x86_64 100% | 20.0 MiB/s | 757.6 KiB | 00m00s [221/262] lzo-0:2.10-17.fc45.x86_64 100% | 1.9 MiB/s | 70.6 KiB | 00m00s [222/262] cairo-gobject-0:1.18.6-1.fc46 100% | 490.9 KiB/s | 16.7 KiB | 00m00s [223/262] fribidi-0:1.0.17-2.fc46.x86_6 100% | 2.8 MiB/s | 101.8 KiB | 00m00s [224/262] libtinysparql-0:3.12.0-1.fc46 100% | 9.5 MiB/s | 361.4 KiB | 00m00s [225/262] libstemmer-0:3.1.1-2.fc45.x86 100% | 4.4 MiB/s | 153.9 KiB | 00m00s [226/262] pango-0:1.58.2-1.fc46.x86_64 100% | 90.0 MiB/s | 368.5 KiB | 00m00s [227/262] bubblewrap-0:0.12.0-1.fc46.x8 100% | 32.2 MiB/s | 66.0 KiB | 00m00s [228/262] libXft-0:2.3.8-11.fc45.x86_64 100% | 2.0 MiB/s | 73.7 KiB | 00m00s [229/262] librsvg2-0:2.63.2-1.fc46.x86_ 100% | 50.6 MiB/s | 1.9 MiB | 00m00s [230/262] libjxl-1:0.11.2-2.fc45.x86_64 100% | 30.3 MiB/s | 1.2 MiB | 00m00s [231/262] lcms2-0:2.16-8.fc46.x86_64 100% | 35.2 MiB/s | 216.2 KiB | 00m00s [232/262] pixman-0:0.46.2-4.fc46.x86_64 100% | 92.3 MiB/s | 283.5 KiB | 00m00s [233/262] dbus-1:1.16.2-6.fc46.x86_64 100% | 7.5 MiB/s | 7.7 KiB | 00m00s [234/262] xprop-0:1.2.8-6.fc46.x86_64 100% | 17.0 MiB/s | 34.9 KiB | 00m00s [235/262] xcb-util-0:0.4.1-10.fc46.x86_ 100% | 16.9 MiB/s | 17.3 KiB | 00m00s [236/262] libthai-0:0.1.30-3.fc46.x86_6 100% | 70.1 MiB/s | 215.4 KiB | 00m00s [237/262] libwacom-data-0:2.20.0-1.fc46 100% | 106.0 MiB/s | 217.1 KiB | 00m00s [238/262] avahi-glib-0:0.9~rc2-9.fc46.x 100% | 14.2 MiB/s | 14.6 KiB | 00m00s [239/262] libvmaf-0:3.2.1-1.fc46.x86_64 100% | 121.7 MiB/s | 373.9 KiB | 00m00s [240/262] libdatrie-0:0.2.14-3.fc45.x86 100% | 913.0 KiB/s | 32.9 KiB | 00m00s [241/262] glib-networking-0:2.90.0-1.fc 100% | 6.1 MiB/s | 212.8 KiB | 00m00s [242/262] libsoup3-0:3.7.3-1.fc46.x86_6 100% | 11.1 MiB/s | 421.4 KiB | 00m00s [243/262] highway-0:1.3.0-3.fc45.x86_64 100% | 18.6 MiB/s | 705.1 KiB | 00m00s [244/262] gsettings-desktop-schemas-0:5 100% | 24.8 MiB/s | 938.7 KiB | 00m00s [245/262] libxml2-devel-0:2.15.4-1.fc46 100% | 13.4 MiB/s | 536.4 KiB | 00m00s [246/262] pyproject-rpm-macros-0:1.23.2 100% | 1.5 MiB/s | 54.8 KiB | 00m00s [247/262] python-rpm-macros-0:3.15-2.fc 100% | 617.8 KiB/s | 19.8 KiB | 00m00s [248/262] python3-rpm-generators-0:14-3 100% | 800.8 KiB/s | 28.8 KiB | 00m00s [249/262] cmake-rpm-macros-0:4.3.0-5.fc 100% | 428.7 KiB/s | 13.7 KiB | 00m00s [250/262] python3-rpm-macros-0:3.15-2.f 100% | 339.7 KiB/s | 12.2 KiB | 00m00s [251/262] ninja-build-0:1.13.2-6.fc46.x 100% | 64.8 MiB/s | 199.1 KiB | 00m00s [252/262] python3-packaging-0:26.3-1.fc 100% | 7.7 MiB/s | 293.6 KiB | 00m00s [253/262] llvm-filesystem-0:23.1.2-1.fc 100% | 396.9 KiB/s | 13.1 KiB | 00m00s [254/262] lld-libs-0:23.1.2-1.fc46.x86_ 100% | 40.1 MiB/s | 1.7 MiB | 00m00s [255/262] lld-0:23.1.2-1.fc46.x86_64 100% | 1.1 MiB/s | 38.3 KiB | 00m00s [256/262] libomp-0:23.1.2-1.fc46.x86_64 100% | 21.4 MiB/s | 855.2 KiB | 00m00s [257/262] llvm-libs-0:23.1.2-1.fc46.x86 100% | 195.6 MiB/s | 36.2 MiB | 00m00s [258/262] llvm-0:23.1.2-1.fc46.x86_64 100% | 103.9 MiB/s | 24.3 MiB | 00m00s [259/262] clang-0:23.1.2-1.fc46.x86_64 100% | 94.9 MiB/s | 7.6 MiB | 00m00s [260/262] clang-resource-filesystem-0:2 100% | 526.2 KiB/s | 18.9 KiB | 00m00s [261/262] clang-libs-0:23.1.2-1.fc46.x8 100% | 177.0 MiB/s | 28.5 MiB | 00m00s [262/262] compiler-rt-0:23.1.2-1.fc46.x 100% | 61.2 MiB/s | 3.1 MiB | 00m00s -------------------------------------------------------------------------------- [262/262] Total 100% | 111.5 MiB/s | 373.3 MiB | 00m03s Running transaction [ 1/274] Verify package files 100% | 204.0 B/s | 262.0 B | 00m01s >>> Running %pretrans scriptlet: xkeyboard-config-0:2.48-4.fc45.noarch >>> Finished %pretrans scriptlet: xkeyboard-config-0:2.48-4.fc45.noarch >>> [RPM] /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root/var/cache/dnf/copr_base-64ab9e188b99823d/packages/desktop-file-utils-0.28-8.fc46.x86_64.rpm: Header OpenPGP V4 RSA/SHA256 signature, key ID 5291f7fa5c4b3009: NOKEY [ 2/274] Prepare transaction 100% | 1.3 KiB/s | 272.0 B | 00m00s [ 3/274] Installing glib2-0:2.90.0-1.f 100% | 289.4 MiB/s | 15.3 MiB | 00m00s [ 4/274] Installing boost-container-0: 100% | 68.7 MiB/s | 70.3 KiB | 00m00s [ 5/274] Installing cmake-filesystem-0 100% | 9.1 MiB/s | 9.4 KiB | 00m00s [ 6/274] Installing boost-date-time-0: 100% | 0.0 B/s | 13.1 KiB | 00m00s [ 7/274] Installing libicu-0:78.3-8.fc 100% | 425.2 MiB/s | 37.8 MiB | 00m00s [ 8/274] Installing boost-chrono-0:1.9 100% | 37.4 MiB/s | 38.3 KiB | 00m00s [ 9/274] Installing boost-atomic-0:1.9 100% | 0.0 B/s | 21.7 KiB | 00m00s [ 10/274] Installing boost-thread-0:1.9 100% | 121.8 MiB/s | 124.7 KiB | 00m00s [ 11/274] Installing libwayland-client- 100% | 65.6 MiB/s | 67.2 KiB | 00m00s [ 12/274] Installing boost-filesystem-0 100% | 157.0 MiB/s | 160.8 KiB | 00m00s [ 13/274] Installing boost-regex-0:1.90 100% | 288.8 MiB/s | 295.7 KiB | 00m00s [ 14/274] Installing libglvnd-1:1.7.0-1 100% | 515.7 MiB/s | 528.0 KiB | 00m00s [ 15/274] Installing dbus-libs-1:1.16.2 100% | 450.5 MiB/s | 461.3 KiB | 00m00s [ 16/274] Installing libX11-xcb-0:1.8.1 100% | 0.0 B/s | 11.7 KiB | 00m00s [ 17/274] Installing boost-context-0:1. 100% | 0.0 B/s | 13.3 KiB | 00m00s [ 18/274] Installing qt6-qttools-common 100% | 0.0 B/s | 7.9 KiB | 00m00s [ 19/274] Installing libwayland-cursor- 100% | 0.0 B/s | 38.3 KiB | 00m00s [ 20/274] Installing libquadmath-0:16.2 100% | 315.6 MiB/s | 323.2 KiB | 00m00s [ 21/274] Installing avahi-libs-0:0.9~r 100% | 167.1 MiB/s | 171.1 KiB | 00m00s [ 22/274] Installing boost-graph-0:1.90 100% | 362.9 MiB/s | 371.6 KiB | 00m00s [ 23/274] Installing python-rpm-macros- 100% | 0.0 B/s | 28.9 KiB | 00m00s [ 24/274] Installing libpng-2:1.6.58-2. 100% | 288.3 MiB/s | 295.3 KiB | 00m00s [ 25/274] Installing fonts-filesystem-1 100% | 0.0 B/s | 788.0 B | 00m00s [ 26/274] Installing libwayland-egl-0:1 100% | 0.0 B/s | 13.4 KiB | 00m00s [ 27/274] Installing boost-serializatio 100% | 432.2 MiB/s | 442.6 KiB | 00m00s [ 28/274] Installing boost-random-0:1.9 100% | 5.9 MiB/s | 30.4 KiB | 00m00s [ 29/274] Installing xml-common-0:0.6.3 100% | 79.2 MiB/s | 81.1 KiB | 00m00s [ 30/274] Installing python3-rpm-macros 100% | 0.0 B/s | 6.8 KiB | 00m00s [ 31/274] Installing boost-python3-0:1. 100% | 257.0 MiB/s | 263.2 KiB | 00m00s [ 32/274] Installing boost-charconv-0:1 100% | 158.7 MiB/s | 162.5 KiB | 00m00s [ 33/274] Installing libglvnd-opengl-1: 100% | 71.0 MiB/s | 145.5 KiB | 00m00s [ 34/274] Installing shared-mime-info-0 100% | 104.5 MiB/s | 3.2 MiB | 00m00s [ 35/274] Installing json-glib-0:1.10.8 100% | 148.5 MiB/s | 608.3 KiB | 00m00s [ 36/274] Downgrading clang-resource-fi 100% | 0.0 B/s | 16.7 KiB | 00m00s [ 37/274] Installing fribidi-0:1.0.17-2 100% | 22.8 MiB/s | 397.2 KiB | 00m00s [ 38/274] Installing libdav1d-0:1.5.4-1 100% | 368.0 MiB/s | 1.8 MiB | 00m00s [ 39/274] Installing libevdev-0:1.13.7- 100% | 0.0 B/s | 82.8 KiB | 00m00s [ 40/274] Installing mtdev-0:1.1.6-13.f 100% | 0.0 B/s | 30.0 KiB | 00m00s [ 41/274] Installing libjpeg-turbo-0:3. 100% | 304.4 MiB/s | 935.1 KiB | 00m00s [ 42/274] Installing xorg-x11-proto-dev 100% | 299.3 MiB/s | 1.8 MiB | 00m00s [ 43/274] Installing libICE-0:1.1.2-5.f 100% | 195.1 MiB/s | 199.8 KiB | 00m00s [ 44/274] Installing pcre2-utf16-0:10.4 100% | 339.5 MiB/s | 695.4 KiB | 00m00s [ 45/274] Installing libXau-0:1.0.12-5. 100% | 72.6 MiB/s | 74.3 KiB | 00m00s [ 46/274] Installing libxcb-0:1.17.0-8. 100% | 270.3 MiB/s | 1.1 MiB | 00m00s [ 47/274] Installing xcb-util-renderuti 100% | 24.8 MiB/s | 25.4 KiB | 00m00s [ 48/274] Installing libgfortran-0:16.2 100% | 486.0 MiB/s | 3.4 MiB | 00m00s [ 49/274] Installing vim-filesystem-2:9 100% | 4.7 MiB/s | 4.8 KiB | 00m00s [ 50/274] Installing emacs-filesystem-1 100% | 0.0 B/s | 1.1 KiB | 00m00s [ 51/274] Installing ninja-build-0:1.13 100% | 27.2 MiB/s | 500.5 KiB | 00m00s [ 52/274] Installing cmake-rpm-macros-0 100% | 0.0 B/s | 9.0 KiB | 00m00s [ 53/274] Installing xcb-util-keysyms-0 100% | 0.0 B/s | 13.5 KiB | 00m00s [ 54/274] Installing xcb-util-wm-0:0.4. 100% | 0.0 B/s | 82.6 KiB | 00m00s [ 55/274] Installing xcb-util-0:0.4.1-1 100% | 0.0 B/s | 27.4 KiB | 00m00s [ 56/274] Installing xcb-util-image-0:0 100% | 0.0 B/s | 27.2 KiB | 00m00s [ 57/274] Installing xcb-util-cursor-0: 100% | 0.0 B/s | 28.4 KiB | 00m00s [ 58/274] Installing libXau-devel-0:1.0 100% | 1.8 MiB/s | 9.1 KiB | 00m00s [ 59/274] Installing libxcb-devel-0:1.1 100% | 94.3 MiB/s | 3.0 MiB | 00m00s [ 60/274] Installing libSM-0:1.2.5-5.fc 100% | 99.9 MiB/s | 102.3 KiB | 00m00s [ 61/274] Installing libgusb-0:0.4.9-6. 100% | 159.8 MiB/s | 163.7 KiB | 00m00s [ 62/274] Installing boost-locale-0:1.9 100% | 341.9 MiB/s | 700.2 KiB | 00m00s [ 63/274] Installing pyproject-rpm-macr 100% | 154.9 MiB/s | 158.6 KiB | 00m00s [ 64/274] Installing boost-iostreams-0: 100% | 89.2 MiB/s | 91.3 KiB | 00m00s [ 65/274] Installing boost-math-0:1.90. 100% | 290.7 MiB/s | 595.3 KiB | 00m00s [ 66/274] Installing boost-log-0:1.90.0 100% | 377.4 MiB/s | 1.5 MiB | 00m00s [ 67/274] Installing boost-wave-0:1.90. 100% | 442.0 MiB/s | 905.3 KiB | 00m00s [ 68/274] Installing abattis-cantarell- 100% | 189.9 MiB/s | 194.4 KiB | 00m00s [ 69/274] Installing avahi-glib-0:0.9~r 100% | 0.0 B/s | 20.0 KiB | 00m00s [ 70/274] Installing libquadmath-devel- 100% | 0.0 B/s | 23.7 KiB | 00m00s [ 71/274] Installing boost-cobalt-0:1.9 100% | 308.5 MiB/s | 631.8 KiB | 00m00s [ 72/274] Installing boost-coroutine-0: 100% | 0.0 B/s | 21.9 KiB | 00m00s [ 73/274] Installing boost-fiber-0:1.90 100% | 85.9 MiB/s | 87.9 KiB | 00m00s [ 74/274] Installing boost-process-0:1. 100% | 76.9 MiB/s | 78.8 KiB | 00m00s [ 75/274] Installing boost-contract-0:1 100% | 113.3 MiB/s | 116.0 KiB | 00m00s [ 76/274] Installing boost-type_erasure 100% | 0.0 B/s | 62.8 KiB | 00m00s [ 77/274] Installing boost-timer-0:1.90 100% | 21.3 MiB/s | 21.8 KiB | 00m00s [ 78/274] Installing libicu-devel-0:78. 100% | 180.2 MiB/s | 5.2 MiB | 00m00s [ 79/274] Installing zlib-ng-compat-dev 100% | 106.0 MiB/s | 108.6 KiB | 00m00s [ 80/274] Installing vulkan-headers-0:1 100% | 794.0 MiB/s | 39.7 MiB | 00m00s [ 81/274] Installing boost-json-0:1.90. 100% | 365.1 MiB/s | 373.8 KiB | 00m00s [ 82/274] Installing boost-program-opti 100% | 279.0 MiB/s | 285.7 KiB | 00m00s [ 83/274] Installing libcloudproviders- 100% | 123.0 MiB/s | 125.9 KiB | 00m00s [ 84/274] Installing libgudev-0:238-10. 100% | 87.1 MiB/s | 89.2 KiB | 00m00s [ 85/274] Installing gsettings-desktop- 100% | 478.5 MiB/s | 6.7 MiB | 00m00s [ 86/274] Downgrading llvm-filesystem-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [ 87/274] Downgrading llvm-libs-0:23.1. 100% | 459.5 MiB/s | 146.1 MiB | 00m00s [ 88/274] Downgrading lld-libs-0:23.1.2 100% | 418.1 MiB/s | 6.3 MiB | 00m00s [ 89/274] Downgrading clang-libs-0:23.1 100% | 466.6 MiB/s | 110.6 MiB | 00m00s [ 90/274] Installing python3-packaging- 100% | 326.5 MiB/s | 1.3 MiB | 00m00s [ 91/274] Installing python3-rpm-genera 100% | 0.0 B/s | 83.1 KiB | 00m00s [ 92/274] Installing xz-devel-1:5.8.4-1 100% | 128.2 MiB/s | 262.6 KiB | 00m00s [ 93/274] Installing libxml2-devel-0:2. 100% | 224.1 MiB/s | 6.7 MiB | 00m00s [ 94/274] Installing highway-0:1.3.0-3. 100% | 561.7 MiB/s | 5.6 MiB | 00m00s [ 95/274] Installing libjxl-1:0.11.2-2. 100% | 411.4 MiB/s | 4.1 MiB | 00m00s [ 96/274] Installing libvmaf-0:3.2.1-1. 100% | 431.5 MiB/s | 1.3 MiB | 00m00s [ 97/274] Installing libaom-0:3.13.3-3. 100% | 390.7 MiB/s | 6.3 MiB | 00m00s [ 98/274] Installing libwacom-data-0:2. 100% | 121.0 MiB/s | 1.6 MiB | 00m00s [ 99/274] Installing libwacom-0:2.20.0- 100% | 6.2 MiB/s | 107.7 KiB | 00m00s [100/274] Installing libinput-0:1.32.0- 100% | 29.5 MiB/s | 726.2 KiB | 00m00s [101/274] Installing libdatrie-0:0.2.14 100% | 57.5 MiB/s | 58.8 KiB | 00m00s [102/274] Installing libthai-0:0.1.30-3 100% | 262.6 MiB/s | 806.6 KiB | 00m00s [103/274] Installing dbus-1:1.16.2-6.fc 100% | 0.0 B/s | 124.0 B | 00m00s [104/274] Installing pixman-0:0.46.2-4. 100% | 404.2 MiB/s | 827.8 KiB | 00m00s [105/274] Installing lcms2-0:2.16-8.fc4 100% | 268.9 MiB/s | 550.6 KiB | 00m00s [106/274] Installing colord-libs-0:1.4. 100% | 271.4 MiB/s | 833.6 KiB | 00m00s [107/274] Installing bubblewrap-0:0.12. 100% | 8.2 MiB/s | 142.0 KiB | 00m00s [108/274] Installing libstemmer-0:3.1.1 100% | 329.5 MiB/s | 674.9 KiB | 00m00s [109/274] Installing lzo-0:2.10-17.fc45 100% | 176.2 MiB/s | 180.4 KiB | 00m00s [110/274] Installing graphite2-0:1.3.14 100% | 11.6 MiB/s | 202.4 KiB | 00m00s [111/274] Installing harfbuzz-0:14.5.0- 100% | 376.0 MiB/s | 3.0 MiB | 00m00s [112/274] Installing freetype-0:2.14.3- 100% | 309.8 MiB/s | 951.8 KiB | 00m00s [113/274] Installing svt-av1-libs-0:3.1 100% | 395.6 MiB/s | 6.3 MiB | 00m00s [114/274] Installing openjpeg-0:2.5.4-4 100% | 215.7 MiB/s | 441.8 KiB | 00m00s [115/274] Installing noopenh264-0:2.6.0 100% | 0.0 B/s | 40.4 KiB | 00m00s [116/274] Installing libopenjph-0:0.31. 100% | 249.5 MiB/s | 510.9 KiB | 00m00s [117/274] Installing rav1e-libs-0:0.8.1 100% | 379.5 MiB/s | 3.0 MiB | 00m00s [118/274] Installing libwebp-0:1.6.0-4. 100% | 316.5 MiB/s | 972.2 KiB | 00m00s [119/274] Installing libheif-0:1.23.5-4 100% | 341.4 MiB/s | 2.4 MiB | 00m00s [120/274] Installing libseccomp-0:2.6.1 100% | 54.7 MiB/s | 224.0 KiB | 00m00s [121/274] Installing adwaita-icon-theme 100% | 83.1 MiB/s | 2.4 MiB | 00m00s [122/274] Installing adwaita-cursor-the 100% | 634.9 MiB/s | 11.4 MiB | 00m00s [123/274] Installing adwaita-icon-theme 100% | 77.5 MiB/s | 1.0 MiB | 00m00s [124/274] Installing libepoxy-0:1.5.10- 100% | 362.0 MiB/s | 1.1 MiB | 00m00s [125/274] Installing hicolor-icon-theme 100% | 25.1 MiB/s | 179.7 KiB | 00m00s [126/274] Installing cups-filesystem-1: 100% | 0.0 B/s | 1.8 KiB | 00m00s [127/274] Installing cups-libs-1:2.4.19 100% | 259.1 MiB/s | 796.0 KiB | 00m00s [128/274] Installing mariadb-connector- 100% | 0.0 B/s | 27.2 KiB | 00m00s [129/274] Installing mariadb-connector- 100% | 263.1 MiB/s | 538.9 KiB | 00m00s [130/274] Installing google-noto-fonts- 100% | 0.0 B/s | 18.5 KiB | 00m00s [131/274] Installing google-noto-sans-v 100% | 347.8 MiB/s | 1.4 MiB | 00m00s [132/274] Installing default-fonts-core 100% | 17.8 MiB/s | 18.2 KiB | 00m00s [133/274] Installing fontconfig-0:2.18. 100% | 1.0 MiB/s | 1.1 MiB | 00m01s [134/274] Installing libtommath-0:1.3.1 100% | 128.3 MiB/s | 131.4 KiB | 00m00s [135/274] Installing libfbclient2-0:5.0 100% | 409.9 MiB/s | 3.3 MiB | 00m00s [136/274] Installing libpq-0:18.4-4.fc4 100% | 285.5 MiB/s | 1.1 MiB | 00m00s [137/274] Installing libuv-1:1.52.1-2.f 100% | 290.9 MiB/s | 595.7 KiB | 00m00s [138/274] Installing jsoncpp-0:1.9.6-3. 100% | 243.0 MiB/s | 248.9 KiB | 00m00s [139/274] Installing duktape-0:2.7.0-12 100% | 339.2 MiB/s | 694.8 KiB | 00m00s [140/274] Installing libproxy-0:0.5.12- 100% | 105.8 MiB/s | 108.4 KiB | 00m00s [141/274] Installing glib-networking-0: 100% | 159.8 MiB/s | 818.1 KiB | 00m00s [142/274] Installing libsoup3-0:3.7.3-1 100% | 244.5 MiB/s | 1.2 MiB | 00m00s [143/274] Installing libtinysparql-0:3. 100% | 333.1 MiB/s | 1.0 MiB | 00m00s [144/274] Installing hwdata-0:0.411-1.f 100% | 530.9 MiB/s | 10.1 MiB | 00m00s [145/274] Installing libpciaccess-0:0.1 100% | 48.6 MiB/s | 49.8 KiB | 00m00s [146/274] Installing libdrm-0:2.4.134-2 100% | 81.1 MiB/s | 415.1 KiB | 00m00s [147/274] Installing openblas-0:0.3.34- 100% | 0.0 B/s | 139.9 KiB | 00m00s [148/274] Installing openblas-openmp-0: 100% | 648.8 MiB/s | 44.8 MiB | 00m00s [149/274] Installing flexiblas-netlib-0 100% | 313.5 MiB/s | 16.3 MiB | 00m00s [150/274] Installing flexiblas-0:3.5.0- 100% | 0.0 B/s | 39.2 KiB | 00m00s [151/274] Installing flexiblas-openblas 100% | 9.8 MiB/s | 40.0 KiB | 00m00s [152/274] Installing python3-numpy-1:2. 100% | 352.4 MiB/s | 43.3 MiB | 00m00s [153/274] Installing python3-numpy-f2py 100% | 87.8 MiB/s | 2.2 MiB | 00m00s [154/274] Installing boost-numpy3-0:1.9 100% | 57.1 MiB/s | 58.5 KiB | 00m00s [155/274] Installing libyaml-0:0.2.5-19 100% | 139.9 MiB/s | 143.3 KiB | 00m00s [156/274] Installing libffi-devel-0:3.8 100% | 0.0 B/s | 40.3 KiB | 00m00s [157/274] Installing libglvnd-core-deve 100% | 0.0 B/s | 41.1 KiB | 00m00s [158/274] Installing spirv-tools-libs-0 100% | 429.2 MiB/s | 6.4 MiB | 00m00s [159/274] Installing mesa-filesystem-0: 100% | 0.0 B/s | 4.3 KiB | 00m00s [160/274] Installing lm_sensors-libs-0: 100% | 0.0 B/s | 90.8 KiB | 00m00s [161/274] Installing libxshmfence-0:1.3 100% | 0.0 B/s | 13.4 KiB | 00m00s [162/274] Installing mesa-dri-drivers-0 100% | 470.9 MiB/s | 53.2 MiB | 00m00s [163/274] Installing mesa-libgbm-0:26.2 100% | 19.9 MiB/s | 20.3 KiB | 00m00s [164/274] Installing xkeyboard-config-0 100% | 340.6 MiB/s | 6.5 MiB | 00m00s [165/274] Installing libxkbcommon-0:1.1 100% | 223.4 MiB/s | 457.6 KiB | 00m00s [166/274] Installing libxkbcommon-devel 100% | 385.8 MiB/s | 395.1 KiB | 00m00s [167/274] Installing libxkbcommon-x11-0 100% | 0.0 B/s | 40.1 KiB | 00m00s [168/274] Installing libb2-0:0.98.1-16. 100% | 0.0 B/s | 46.6 KiB | 00m00s [169/274] Installing double-conversion- 100% | 96.0 MiB/s | 98.3 KiB | 00m00s [170/274] Installing libwayland-server- 100% | 81.7 MiB/s | 83.7 KiB | 00m00s [171/274] Installing wayland-devel-0:1. 100% | 39.8 MiB/s | 733.3 KiB | 00m00s [172/274] Installing vulkan-loader-0:1. 100% | 293.6 MiB/s | 601.3 KiB | 00m00s [173/274] Installing vulkan-loader-deve 100% | 0.0 B/s | 9.1 KiB | 00m00s [174/274] Installing odbcinst-generate- 100% | 845.8 KiB/s | 23.7 KiB | 00m00s [175/274] Installing unixODBC-0:2.3.14- 100% | 39.2 MiB/s | 1.0 MiB | 00m00s [176/274] Installing qt6-filesystem-0:6 100% | 3.4 MiB/s | 3.5 KiB | 00m00s [177/274] Installing qt6-qtbase-0:6.11. 100% | 249.2 MiB/s | 12.5 MiB | 00m00s [178/274] Installing qt6-qtbase-common- 100% | 0.0 B/s | 352.0 B | 00m00s [179/274] Installing qt6-qtbase-ibase-0 100% | 145.1 MiB/s | 148.6 KiB | 00m00s [180/274] Installing qt6-qtbase-mysql-0 100% | 108.9 MiB/s | 111.5 KiB | 00m00s [181/274] Installing qt6-qtbase-odbc-0: 100% | 144.2 MiB/s | 147.6 KiB | 00m00s [182/274] Installing qt6-qtbase-postgre 100% | 124.8 MiB/s | 127.8 KiB | 00m00s [183/274] Installing libX11-common-0:1. 100% | 169.3 MiB/s | 1.2 MiB | 00m00s [184/274] Installing libX11-0:1.8.13-3. 100% | 337.0 MiB/s | 1.3 MiB | 00m00s [185/274] Installing libXext-0:1.3.6-6. 100% | 0.0 B/s | 91.1 KiB | 00m00s [186/274] Installing libXrender-0:0.9.1 100% | 0.0 B/s | 51.2 KiB | 00m00s [187/274] Installing cairo-0:1.18.6-1.f 100% | 366.4 MiB/s | 1.8 MiB | 00m00s [188/274] Installing libXi-0:1.8.3-2.fc 100% | 79.8 MiB/s | 81.7 KiB | 00m00s [189/274] Installing libXfixes-0:6.0.1- 100% | 0.0 B/s | 31.4 KiB | 00m00s [190/274] Installing cairo-gobject-0:1. 100% | 0.0 B/s | 31.8 KiB | 00m00s [191/274] Installing mesa-libEGL-0:26.2 100% | 390.1 MiB/s | 399.5 KiB | 00m00s [192/274] Installing libglvnd-egl-1:1.7 100% | 80.6 MiB/s | 82.5 KiB | 00m00s [193/274] Installing libglvnd-gles-1:1. 100% | 88.9 MiB/s | 91.0 KiB | 00m00s [194/274] Installing libXcursor-0:1.2.3 100% | 0.0 B/s | 55.0 KiB | 00m00s [195/274] Installing libXdamage-0:1.1.6 100% | 0.0 B/s | 41.1 KiB | 00m00s [196/274] Installing libXtst-0:1.2.5-5. 100% | 0.0 B/s | 34.4 KiB | 00m00s [197/274] Installing libXrandr-0:1.5.4- 100% | 0.0 B/s | 52.9 KiB | 00m00s [198/274] Installing libXft-0:2.3.8-11. 100% | 165.8 MiB/s | 169.8 KiB | 00m00s [199/274] Installing pango-0:1.58.2-1.f 100% | 52.4 MiB/s | 1.0 MiB | 00m00s [200/274] Installing librsvg2-0:2.63.2- 100% | 384.8 MiB/s | 5.0 MiB | 00m00s [201/274] Installing glycin-loaders-0:2 100% | 475.4 MiB/s | 14.7 MiB | 00m00s [202/274] Installing glycin-libs-0:2.2. 100% | 395.0 MiB/s | 4.7 MiB | 00m00s [203/274] Installing gdk-pixbuf2-0:2.44 100% | 104.7 MiB/s | 2.6 MiB | 00m00s [204/274] Installing gtk-update-icon-ca 100% | 3.9 MiB/s | 63.2 KiB | 00m00s [205/274] Installing libXxf86vm-0:1.1.6 100% | 0.0 B/s | 26.4 KiB | 00m00s [206/274] Installing mesa-libGL-0:26.2. 100% | 370.4 MiB/s | 379.3 KiB | 00m00s [207/274] Installing libglvnd-glx-1:1.7 100% | 292.3 MiB/s | 598.5 KiB | 00m00s [208/274] Installing glx-utils-0:9.0.0- 100% | 24.3 MiB/s | 423.8 KiB | 00m00s [209/274] Installing libXinerama-0:1.1. 100% | 7.8 MiB/s | 15.9 KiB | 00m00s [210/274] Installing libX11-devel-0:1.8 100% | 100.5 MiB/s | 1.1 MiB | 00m00s [211/274] Installing libglvnd-devel-1:1 100% | 530.1 MiB/s | 2.1 MiB | 00m00s [212/274] Installing libXcomposite-0:0. 100% | 0.0 B/s | 45.9 KiB | 00m00s [213/274] Installing xprop-0:1.2.8-6.fc 100% | 3.2 MiB/s | 55.9 KiB | 00m00s [214/274] Installing at-spi2-core-0:2.6 100% | 227.6 MiB/s | 1.6 MiB | 00m00s [215/274] Installing atk-0:2.62.0.1-1.f 100% | 248.0 MiB/s | 254.0 KiB | 00m00s [216/274] Installing at-spi2-atk-0:2.62 100% | 141.7 MiB/s | 290.2 KiB | 00m00s [217/274] Installing gtk3-0:3.24.52-6.f 100% | 312.4 MiB/s | 22.8 MiB | 00m00s [218/274] Installing libdecor-0:0.2.5-3 100% | 163.0 MiB/s | 166.9 KiB | 00m00s [219/274] Installing SDL3-0:3.4.16-1.fc 100% | 411.9 MiB/s | 3.3 MiB | 00m00s [220/274] Installing sdl2-compat-0:2.32 100% | 134.9 MiB/s | 414.3 KiB | 00m00s [221/274] Installing tslib-0:1.24-3.fc4 100% | 21.8 MiB/s | 423.3 KiB | 00m00s [222/274] Installing qt6-qtbase-gui-0:6 100% | 400.5 MiB/s | 24.8 MiB | 00m00s [223/274] Installing qt6-qttools-0:6.11 100% | 50.1 MiB/s | 922.9 KiB | 00m00s [224/274] Installing qt6-qttools-libs-h 100% | 308.6 MiB/s | 632.0 KiB | 00m00s [225/274] Installing qt6-qtsvg-0:6.11.2 100% | 132.6 MiB/s | 950.8 KiB | 00m00s [226/274] Installing qt6-qtdeclarative- 100% | 406.0 MiB/s | 59.7 MiB | 00m00s [227/274] Installing qt6-qttools-libs-d 100% | 502.4 MiB/s | 6.0 MiB | 00m00s [228/274] Installing qt6-qttools-libs-d 100% | 478.6 MiB/s | 3.4 MiB | 00m00s [229/274] Installing qt6-designer-0:6.1 100% | 34.7 MiB/s | 639.6 KiB | 00m00s [230/274] Installing qt6-linguist-0:6.1 100% | 191.2 MiB/s | 5.5 MiB | 00m00s [231/274] Installing llvm22-filesystem- 100% | 0.0 B/s | 1.1 KiB | 00m00s [232/274] Installing llvm22-libs-0:22.1 100% | 463.6 MiB/s | 140.5 MiB | 00m00s [233/274] Installing clang22-resource-f 100% | 15.8 MiB/s | 16.2 KiB | 00m00s [234/274] Installing clang22-libs-0:22. 100% | 469.2 MiB/s | 109.8 MiB | 00m00s [235/274] Installing qt6-doctools-0:6.1 100% | 113.4 MiB/s | 2.5 MiB | 00m00s [236/274] Installing boost-url-0:1.90.0 100% | 328.3 MiB/s | 336.2 KiB | 00m00s [237/274] Installing boost-test-0:1.90. 100% | 315.0 MiB/s | 645.1 KiB | 00m00s [238/274] Installing boost-stacktrace-0 100% | 103.0 MiB/s | 105.5 KiB | 00m00s [239/274] Installing boost-nowide-0:1.9 100% | 0.0 B/s | 21.7 KiB | 00m00s [240/274] Installing boost-0:1.90.0-13. 100% | 0.0 B/s | 1.7 KiB | 00m00s [241/274] Installing sgml-common-0:0.6. 100% | 9.5 MiB/s | 174.9 KiB | 00m00s [242/274] Installing docbook-dtds-0:1.0 100% | 33.7 MiB/s | 6.8 MiB | 00m00s [243/274] Installing tinyxml2-0:11.0.0- 100% | 107.5 MiB/s | 110.1 KiB | 00m00s [244/274] Installing rhash-0:1.4.5-5.fc 100% | 18.5 MiB/s | 360.1 KiB | 00m00s [245/274] Installing cmake-0:4.3.0-5.fc 100% | 328.6 MiB/s | 40.4 MiB | 00m00s [246/274] Installing cmake-data-0:4.3.0 100% | 132.6 MiB/s | 10.1 MiB | 00m00s [247/274] Installing qt6-rpm-macros-0:6 100% | 185.5 KiB/s | 4.1 KiB | 00m00s [248/274] Installing qt6-qtbase-devel-0 100% | 220.3 MiB/s | 22.9 MiB | 00m00s [249/274] Installing pandoc-common-0:3. 100% | 228.8 MiB/s | 2.1 MiB | 00m00s [250/274] Installing numactl-libs-0:2.0 100% | 56.3 MiB/s | 57.7 KiB | 00m00s [251/274] Installing pandoc-cli-0:3.7.0 100% | 586.8 MiB/s | 204.2 MiB | 00m00s [252/274] Installing qt6-qttools-devel- 100% | 87.4 MiB/s | 2.5 MiB | 00m00s [253/274] Installing tinyxml2-devel-0:1 100% | 20.6 MiB/s | 84.3 KiB | 00m00s [254/274] Installing docbook-style-xsl- 100% | 155.1 MiB/s | 14.9 MiB | 00m00s [255/274] Installing boost-devel-0:1.90 100% | 309.6 MiB/s | 145.5 MiB | 00m00s [256/274] Installing python3-devel-0:3. 100% | 92.7 MiB/s | 2.5 MiB | 00m00s [257/274] Downgrading clang-0:23.1.2-1. 100% | 545.4 MiB/s | 66.5 MiB | 00m00s [258/274] Downgrading lld-0:23.1.2-1.fc 100% | 1.9 MiB/s | 45.6 KiB | 00m00s [259/274] Downgrading llvm-0:23.1.2-1.f 100% | 383.8 MiB/s | 86.7 MiB | 00m00s [260/274] Downgrading libomp-0:23.1.2-1 100% | 408.0 MiB/s | 2.9 MiB | 00m00s [261/274] Installing desktop-file-utils 100% | 12.9 MiB/s | 225.3 KiB | 00m00s [262/274] Downgrading compiler-rt-0:23. 100% | 685.6 MiB/s | 42.5 MiB | 00m00s [263/274] Installing python3-setuptools 100% | 260.8 MiB/s | 7.6 MiB | 00m00s [264/274] Installing libxslt-0:1.1.43-1 100% | 17.2 MiB/s | 458.8 KiB | 00m00s [265/274] Removing lld-0:24.0.0~pre2026 100% | 741.0 B/s | 23.0 B | 00m00s [266/274] Removing clang-0:24.0.0~pre20 100% | 1.8 KiB/s | 32.0 B | 00m00s [267/274] Removing clang-libs-0:24.0.0~ 100% | 41.5 KiB/s | 340.0 B | 00m00s [268/274] Removing lld-libs-0:24.0.0~pr 100% | 23.4 KiB/s | 24.0 B | 00m00s [269/274] Removing libomp-0:24.0.0~pre2 100% | 2.1 KiB/s | 24.0 B | 00m00s [270/274] Removing llvm-0:24.0.0~pre202 100% | 25.2 KiB/s | 567.0 B | 00m00s [271/274] Removing llvm-libs-0:24.0.0~p 100% | 3.2 KiB/s | 26.0 B | 00m00s [272/274] Removing compiler-rt-0:24.0.0 100% | 32.0 KiB/s | 131.0 B | 00m00s [273/274] Removing clang-resource-files 100% | 0.0 B/s | 9.0 B | 00m00s [274/274] Removing llvm-filesystem-0:24 100% | 17.0 B/s | 7.0 B | 00m00s Warning: skipped OpenPGP checks for 72 packages from repository: copr_base Complete! Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1789776000 Wrote: /builddir/build/SRPMS/cppcheck-2.22.0-1.fc46.src.rpm Updating and loading repositories: fedora 100% | 127.5 KiB/s | 24.5 KiB | 00m00s Additional repo copr_tstellar_fedora_c 100% | 10.2 KiB/s | 1.5 KiB | 00m00s Additional repo copr_fedora_llvm_team_ 100% | 10.5 KiB/s | 1.5 KiB | 00m00s Copr repository 100% | 10.5 KiB/s | 1.5 KiB | 00m00s Repositories loaded. Package "boost-devel-1.90.0-13.fc45.x86_64" is already installed. Package "cmake-4.3.0-5.fc45.x86_64" is already installed. Package "desktop-file-utils-0.28-8.fc46.x86_64" is already installed. Package "docbook-style-xsl-1.79.2-29.fc46.noarch" is already installed. Package "gcc-c++-16.2.1-2.fc46.1.x86_64" is already installed. Package "libxslt-1.1.43-10.fc46.x86_64" is already installed. Package "make-1:4.4.1-13.fc46.x86_64" is already installed. Package "pandoc-cli-3.7.0.2-41.fc45.x86_64" is already installed. Package "python3-devel-3.15.0~rc2-1.fc46.x86_64" is already installed. Package "python3-setuptools-84.0.0-1.fc46.noarch" is already installed. Package "qt6-linguist-6.11.2-1.fc46.x86_64" is already installed. Package "qt6-qtbase-devel-6.11.2-2.fc46.x86_64" is already installed. Package "qt6-qttools-devel-6.11.2-1.fc46.x86_64" is already installed. Package "tinyxml2-devel-11.0.0-8.fc46.x86_64" is already installed. Package "zlib-ng-compat-devel-2.3.3-6.fc46.x86_64" is already installed. Nothing to do. Finish: build setup for cppcheck-2.22.0-1.fc46.src.rpm Start: rpmbuild cppcheck-2.22.0-1.fc46.src.rpm Building target platforms: x86_64 Building for target x86_64 setting SOURCE_DATE_EPOCH=1789776000 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.hrzGeu Creating(rpmbuild.env): /builddir/build/BUILD/cppcheck-2.22.0-build/rpmbuild.env RPM_SOURCE_DIR="/builddir/build/SOURCES" RPM_BUILD_DIR="/builddir/build/BUILD/cppcheck-2.22.0-build" RPM_OPT_FLAGS="-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 " RPM_ARCH="x86_64" RPM_OS="linux" RPM_BUILD_NCPUS="4" RPM_SPECPARTS_DIR="/builddir/build/BUILD/cppcheck-2.22.0-build/SPECPARTS" export RPM_SOURCE_DIR RPM_BUILD_DIR RPM_OPT_FLAGS RPM_ARCH RPM_OS RPM_BUILD_NCPUS RPM_SPECPARTS_DIR RPM_LD_FLAGS RPM_DOC_DIR="/usr/share/doc" export RPM_DOC_DIR RPM_PACKAGE_NAME="cppcheck" RPM_PACKAGE_VERSION="2.22.0" RPM_PACKAGE_RELEASE="1.fc46" export RPM_PACKAGE_NAME RPM_PACKAGE_VERSION RPM_PACKAGE_RELEASE LANG=C.UTF-8 export LANG unset CDPATH DISPLAY ||: unset DEBUGINFOD_URLS ||: unset RPM_CONFIG_DIR ||: RPM_BUILD_ROOT="/builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT" export RPM_BUILD_ROOT PKG_CONFIG_PATH="${PKG_CONFIG_PATH}:/usr/lib64/pkgconfig:/usr/share/pkgconfig" export PKG_CONFIG_PATH CONFIG_SITE=${CONFIG_SITE:-NONE} export CONFIG_SITE Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.GsO6Nd + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + cd /builddir/build/BUILD/cppcheck-2.22.0-build + rm -rf cppcheck-2.22.0 + /usr/bin/rpmuncompress -x /builddir/build/SOURCES/cppcheck-2.22.0.tar.gz + STATUS=0 + '[' 0 -ne 0 ']' + cd cppcheck-2.22.0 + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w . + echo 'Patch #0 (cppcheck-2.11-translations.patch):' Patch #0 (cppcheck-2.11-translations.patch): + /usr/bin/patch --no-backup-if-mismatch -f -p1 -b --suffix .translations --fuzz=0 patching file gui/translationhandler.cpp Hunk #1 succeeded at 100 (offset 1 line). patching file gui/CMakeLists.txt + rm -r externals/tinyxml2 + cd gui/help ++ qmake6 -query QT_HOST_LIBEXECS + /usr/lib64/qt6/libexec/qhelpgenerator online-help.qhcp -o online-help.qhc Reading collection config file... Generating help for online-help.qhp... Building up file structure... Insert custom filters... Insert help data for filter section (1 of 1)... Insert files... Insert contents... Insert indices... Documentation successfully generated. Creating collection file... + RPM_EC=0 ++ jobs -p + exit 0 Executing(%build): /bin/sh -e /var/tmp/rpm-tmp.S1dtLA + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + CFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + cd cppcheck-2.22.0 + make DB2MAN=/usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man xsltproc -''-nonet -''-param man.charmap.use.subset "0" /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man/cppcheck.1.xml Note: Writing cppcheck.1 + pandoc man/manual.md -o man/manual.html -s --number-sections --toc + pandoc man/reference-cfg-format.md -o man/reference-cfg-format.html -s --number-sections --toc + CFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + /usr/bin/cmake -S . -B redhat-linux-build -G Ninja -DCMAKE_C_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_CXX_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_Fortran_FLAGS_RELEASE:STRING=-DNDEBUG -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DCMAKE_INSTALL_DO_STRIP:BOOL=OFF -DCMAKE_INSTALL_PREFIX:PATH=/usr -DCMAKE_INSTALL_FULL_SBINDIR:PATH=/usr/bin -DCMAKE_INSTALL_SBINDIR:PATH=bin -DINCLUDE_INSTALL_DIR:PATH=/usr/include -DLIB_INSTALL_DIR:PATH=/usr/lib64 -DSYSCONF_INSTALL_DIR:PATH=/etc -DSHARE_INSTALL_PREFIX:PATH=/usr/share -DLIB_SUFFIX=64 -DBUILD_SHARED_LIBS:BOOL=ON -DCMAKE_BUILD_TYPE=Release -DUSE_MATCHCOMPILER=ON -DHAVE_RULES=no -DBUILD_GUI=1 -DUSE_QT6=1 -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=yes -DFILESDIR=/usr/share/Cppcheck -DUSE_BUNDLED_TINYXML2=OFF -DENABLE_OSS_FUZZ=OFF -DUSE_BOOST=1 -- The CXX compiler identification is Clang 23.1.2 -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /usr/bin/clang++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done CMake Deprecation Warning at cmake/options.cmake:61 (message): BUILD_TESTS has been deprecated and will be removed in Cppcheck 2.22 - please use BUILD_TESTING instead Call Stack (most recent call first): CMakeLists.txt:4 (include) -- Performing Test CMAKE_HAVE_LIBC_PTHREAD -- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success -- Found Threads: TRUE -- Performing Test HAVE_STDATOMIC -- Performing Test HAVE_STDATOMIC - Success -- Found WrapAtomic: TRUE -- Found OpenGL: /usr/lib64/libOpenGL.so -- Found WrapOpenGL: TRUE -- Found WrapVulkanHeaders: /usr/include -- Could NOT find Cups (missing: CUPS_LIBRARIES CUPS_INCLUDE_DIR) -- Found Python: /usr/bin/python3.15 (found version "3.15.0") found components: Interpreter -- Performing Test _has_mllvm_inline_deferral -- Performing Test _has_mllvm_inline_deferral - Success -- Performing Test HAS_CXX_FLAG_Wno_sign_conversion -- Performing Test HAS_CXX_FLAG_Wno_sign_conversion - Success -- Performing Test HAS_CXX_FLAG_Wno_shadow_field_in_constructor -- Performing Test HAS_CXX_FLAG_Wno_shadow_field_in_constructor - Success -- Performing Test HAS_CXX_FLAG_Wno_implicit_int_conversion -- Performing Test HAS_CXX_FLAG_Wno_implicit_int_conversion - Success -- Performing Test HAS_CXX_FLAG_Wno_double_promotion -- Performing Test HAS_CXX_FLAG_Wno_double_promotion - Success -- Performing Test HAS_CXX_FLAG_Wno_shadow_field -- Performing Test HAS_CXX_FLAG_Wno_shadow_field - Success -- Performing Test HAS_CXX_FLAG_Wno_shadow_uncaptured_local -- Performing Test HAS_CXX_FLAG_Wno_shadow_uncaptured_local - Success -- Performing Test HAS_CXX_FLAG_Wno_implicit_float_conversion -- Performing Test HAS_CXX_FLAG_Wno_implicit_float_conversion - Success -- Performing Test HAS_CXX_FLAG_Wno_switch_enum -- Performing Test HAS_CXX_FLAG_Wno_switch_enum - Success -- Performing Test HAS_CXX_FLAG_Wno_date_time -- Performing Test HAS_CXX_FLAG_Wno_date_time - Success -- Performing Test HAS_CXX_FLAG_Wno_ms_bitfield_padding -- Performing Test HAS_CXX_FLAG_Wno_ms_bitfield_padding - Success -- Performing Test HAS_CXX_FLAG_Wno_unsafe_buffer_usage -- Performing Test HAS_CXX_FLAG_Wno_unsafe_buffer_usage - Success -- Performing Test HAS_CXX_FLAG_Wno_global_constructors -- Performing Test HAS_CXX_FLAG_Wno_global_constructors - Success -- Performing Test HAS_CXX_FLAG_Wno_exit_time_destructors -- Performing Test HAS_CXX_FLAG_Wno_exit_time_destructors - Success -- Performing Test HAS_CXX_FLAG_Wno_nrvo -- Performing Test HAS_CXX_FLAG_Wno_nrvo - Success -- Performing Test HAS_CXX_FLAG_Wno_return_std_move_in_c__11 -- Performing Test HAS_CXX_FLAG_Wno_return_std_move_in_c__11 - Failed -- Performing Test HAS_CXX_FLAG_Wno_switch_default -- Performing Test HAS_CXX_FLAG_Wno_switch_default - Success -- Performing Test HAS_CXX_FLAG_Wno_shadow_header -- Performing Test HAS_CXX_FLAG_Wno_shadow_header - Success -- Looking for C++ include execinfo.h -- Looking for C++ include execinfo.h - found -- ------------------ General configuration for Cppcheck 2.22.0 ----------------- -- -- CMake Version = 4.3.0 -- CMake Generator = Ninja -- -- Compiler = Clang -- Compiler Version = 23.1.2 -- Build type = Release -- CMake C++ Standard = 11 -- CMAKE_INSTALL_PREFIX = /usr -- CMAKE_INSTALL_BINDIR = bin -- CMAKE_DISABLE_PRECOMPILE_HEADERS = Off -- C++ flags (General) = -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -- C++ flags (Release) = -DNDEBUG -- C++ flags (RelWithDebInfo) = -O2 -g -DNDEBUG -- C++ flags (Debug) = -g -- CMAKE_EXE_LINKER_FLAGS = -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -- CPPCHK_GLIBCXX_DEBUG = ON -- HAVE_EXECINFO_H = 1 -- COMPILE_DEFINITIONS (global) = HAVE_BOOST;HAVE_EXECINFO_H=1;FILESDIR="/usr/share/Cppcheck" -- COMPILE_OPTIONS (global) = -Weverything;-O2;-pedantic;-mllvm;-inline-deferral;-gdwarf-4;-Wno-sign-conversion;-Wno-shadow-field-in-constructor;-Wno-implicit-int-conversion;-Wno-double-promotion;-Wno-shadow-field;-Wno-shadow-uncaptured-local;-Wno-implicit-float-conversion;-Wno-switch-enum;-Wno-date-time;-Wno-disabled-macro-expansion;-Wno-sign-compare;-Wno-ms-bitfield-padding;-Wno-unsafe-buffer-usage;-Wno-global-constructors;-Wno-exit-time-destructors;-Wno-padded;-Wno-nrvo;-Wno-c++98-compat;-Wno-c++98-compat-pedantic;-Wno-switch-default;-Wno-four-char-constants;-Wno-weak-vtables;-Wno-multichar;-Wno-shadow-header;-U_GLIBCXX_DEBUG -- -- Python_VERSION = 3.15.0 -- Python_EXECUTABLE = /usr/bin/python3.15 -- -- --------------------------------------------------------- -- ANALYZE_MEMORY = OFF -- ANALYZE_ADDRESS = OFF -- ANALYZE_THREAD = OFF -- ANALYZE_UNDEFINED = OFF -- ANALYZE_TYPE = OFF -- -- WARNINGS_ARE_ERRORS = OFF -- EXTERNALS_AS_SYSTEM = OFF -- -- USE_MATCHCOMPILER = ON -- USE_MATCHCOMPILER_OPT = On -- -- NO_UNIX_SIGNAL_HANDLING = OFF -- NO_UNIX_BACKTRACE_SUPPORT = OFF -- NO_WINDOWS_SEH = OFF -- -- ENABLE_CSA_ALPHA = OFF -- -- BUILD_SHARED_LIBS = OFF -- LIBXML2_XMLLINT_EXECUTABLE = /usr/bin/xmllint -- BUILD_CORE_DLL = OFF -- BUILD_TESTS = yes -- BUILD_TESTING = yes -- REGISTER_TESTS = ON -- ENABLE_CHECK_INTERNAL = OFF -- DISABLE_DMAKE = OFF -- BUILD_MANPAGE = OFF -- -- BUILD_CLI = ON -- -- BUILD_GUI = 1 -- REGISTER_GUI_TESTS = ON -- WITH_QCHART = OFF -- QT_VERSION = 6.11.2 -- Qt6Core_LIBRARIES = Qt6::Core -- Qt6Core_INCLUDE_DIRS = /usr/include/qt6/QtCore;/usr/include/qt6 -- -- HAVE_RULES = no -- -- DISALLOW_THREAD_EXECUTOR = OFF -- DISALLOW_PROCESS_EXECUTOR = OFF -- CMAKE_THREAD_LIBS_INIT = -- -- USE_BUNDLED_TINYXML2 = OFF -- -- USE_BOOST = 1 -- Boost_FOUND = 1 -- Boost_VERSION_STRING = 1.90.0 -- Boost_INCLUDE_DIRS = /usr/include -- USE_BOOST_INT128 = OFF -- -- USE_LIBCXX = OFF -- -- FILESDIR = /usr/share/Cppcheck -- FILESDIR_INSTALL = /usr/share/Cppcheck -- FILESDIR_DEF = /usr/share/Cppcheck -- -- Performing Test HAS_CXX_FLAG_Wno_zero_as_null_pointer_constant -- Performing Test HAS_CXX_FLAG_Wno_zero_as_null_pointer_constant - Success -- Performing Test HAS_CXX_FLAG_Wno_missing_declarations -- Performing Test HAS_CXX_FLAG_Wno_missing_declarations - Success -- Performing Test HAS_CXX_FLAG_Wno_missing_prototypes -- Performing Test HAS_CXX_FLAG_Wno_missing_prototypes - Success -- Performing Test HAS_CXX_FLAG_Wno_dollar_in_identifier_extension -- Performing Test HAS_CXX_FLAG_Wno_dollar_in_identifier_extension - Success -- Performing Test HAS_CXX_FLAG_Wno_ctad_maybe_unsupported -- Performing Test HAS_CXX_FLAG_Wno_ctad_maybe_unsupported - Success -- Performing Test HAS_CXX_FLAG_Wno_missing_noreturn -- Performing Test HAS_CXX_FLAG_Wno_missing_noreturn - Success -- Clang and clang-tidy version need to match when precompiled headers are enabled - limiting search to 'run-clang-tidy-23' -- RUN_CLANG_TIDY=RUN_CLANG_TIDY-NOTFOUND -- Configuring done (3.1s) -- Generating done (0.1s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_C_FLAGS_RELEASE CMAKE_Fortran_FLAGS_RELEASE CMAKE_INSTALL_DO_STRIP CMAKE_VERBOSE_MAKEFILE ENABLE_OSS_FUZZ INCLUDE_INSTALL_DIR LIB_INSTALL_DIR LIB_SUFFIX SHARE_INSTALL_PREFIX SYSCONF_INSTALL_DIR USE_QT6 -- Build files have been written to: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build + /usr/bin/cmake --build redhat-linux-build -j4 --verbose Change Dir: '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build' Run Build Command(s): /usr/bin/ninja-build -v -j 4 [0/2] /usr/bin/cmake -P /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/CMakeFiles/VerifyGlobs.cmake [1/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build && /usr/bin/cmake -E remove -f /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./platforms/unix32-unsigned.xml /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./platforms/unix64-unsigned.xml [2/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build && /usr/bin/cmake -E copy_directory /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/addons /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./addons [3/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build && /usr/bin/cmake -E copy_directory /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cfg /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./cfg [4/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build && /usr/bin/cmake -E copy_directory /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/platforms /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./platforms [5/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_de.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_de.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_de.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_de.ts'... Found 546 source text(s) (0 new and 546 already existing) [6/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_es.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_es.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_es.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_es.ts'... Found 546 source text(s) (0 new and 546 already existing) [7/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_fi.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_fi.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_fi.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_fi.ts'... Found 546 source text(s) (0 new and 546 already existing) [8/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_fr.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_fr.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_fr.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_fr.ts'... Found 546 source text(s) (0 new and 546 already existing) [9/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_it.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_it.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_it.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_it.ts'... Found 546 source text(s) (0 new and 546 already existing) [10/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_ja.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ja.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_ja.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_ja.ts'... Found 546 source text(s) (0 new and 546 already existing) [11/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_ka.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ka.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_ka.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_ka.ts'... Found 546 source text(s) (0 new and 546 already existing) [12/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_ko.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ko.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_ko.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_ko.ts'... Found 546 source text(s) (0 new and 546 already existing) [13/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_nl.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_nl.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_nl.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_nl.ts'... Found 546 source text(s) (0 new and 546 already existing) [14/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_ru.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ru.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_ru.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_ru.ts'... Found 546 source text(s) (0 new and 546 already existing) [15/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_sv.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_sv.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_sv.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_sv.ts'... Found 546 source text(s) (0 new and 546 already existing) [16/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_sr.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_sr.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_sr.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_sr.ts'... Found 546 source text(s) (0 new and 546 already existing) [17/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_about.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/about.ui [18/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_applicationdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.ui [19/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_fileview.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/fileview.ui [20/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_helpdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/helpdialog.ui [21/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_libraryaddfunctiondialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/libraryaddfunctiondialog.ui [22/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_librarydialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/librarydialog.ui [23/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_zh_CN.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_zh_CN.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_zh_CN.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_zh_CN.ts'... Found 546 source text(s) (0 new and 546 already existing) [24/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lupdate @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck_zh_TW.ts_lst_file -ts /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_zh_TW.ts && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/.lupdate/cppcheck_zh_TW.ts.stamp Scanning directory '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui'... /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:50: Ignoring definition of undeclared qualified class Updating '../../gui/cppcheck_zh_TW.ts'... Found 546 source text(s) (0 new and 546 already existing) [25/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_libraryeditargdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/libraryeditargdialog.ui [26/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_newsuppressiondialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/newsuppressiondialog.ui [27/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_mainwindow.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.ui [28/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_projectfile.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.ui [29/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_resultsview.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.ui [30/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_scratchpad.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/scratchpad.ui [31/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_settings.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settings.ui [32/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_threaddetails.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threaddetails.ui [33/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/uic -o /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/ui_statsdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/statsdialog.ui [34/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_es.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_es.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_es.qm'... Generated 250 translation(s) (222 finished and 28 unfinished) Ignored 296 untranslated source text(s) [35/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_de.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_de.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_de.qm'... Generated 441 translation(s) (433 finished and 8 unfinished) Ignored 105 untranslated source text(s) [36/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_fi.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_fi.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_fi.qm'... Generated 66 translation(s) (60 finished and 6 unfinished) Ignored 480 untranslated source text(s) [37/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/libexec/rcc --name gui --output /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/qrc_gui.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/gui.qrc [38/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_fr.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_fr.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_fr.qm'... Generated 166 translation(s) (148 finished and 18 unfinished) Ignored 380 untranslated source text(s) [39/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_it.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_it.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_it.qm'... Generated 207 translation(s) (190 finished and 17 unfinished) Ignored 339 untranslated source text(s) [40/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ja.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ja.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ja.qm'... Generated 546 translation(s) (546 finished and 0 unfinished) [41/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ka.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ka.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ka.qm'... Generated 499 translation(s) (490 finished and 9 unfinished) Ignored 47 untranslated source text(s) [42/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ko.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ko.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ko.qm'... Generated 197 translation(s) (184 finished and 13 unfinished) Ignored 349 untranslated source text(s) [43/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_nl.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_nl.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_nl.qm'... Generated 211 translation(s) (197 finished and 14 unfinished) Ignored 335 untranslated source text(s) [44/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_ru.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ru.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_ru.qm'... Generated 376 translation(s) (365 finished and 11 unfinished) Ignored 170 untranslated source text(s) [45/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_sr.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_sr.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_sr.qm'... Generated 74 translation(s) (6 finished and 68 unfinished) Ignored 472 untranslated source text(s) [46/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_sv.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_sv.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_sv.qm'... Generated 360 translation(s) (344 finished and 16 unfinished) Ignored 186 untranslated source text(s) [47/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_zh_CN.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_zh_CN.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_zh_CN.qm'... Generated 471 translation(s) (461 finished and 10 unfinished) Ignored 75 untranslated source text(s) [48/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata/moc_testcppchecklibrarydata.cpp_parameters [49/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist/moc_testfilelist.cpp_parameters [50/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/lib64/qt6/bin/lrelease /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppcheck_zh_TW.ts -qm /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_zh_TW.qm Updating '/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck_zh_TW.qm'... Generated 355 translation(s) (348 finished and 7 unfinished) Ignored 191 untranslated source text(s) [51/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/moc_testprojectfile.cpp_parameters [52/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata && /usr/lib64/qt6/libexec/rcc --name resources --output /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata/qrc_resources.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata/resources.qrc [53/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/moc_projectfile.cpp_parameters [54/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/moc_testresultstree.cpp_parameters [55/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultstree.cpp_parameters [56/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultitem.cpp_parameters /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h: note: No relevant classes found. No output generated. [57/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_applicationlist.cpp_parameters [58/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_common.cpp_parameters /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/common.h: note: No relevant classes found. No output generated. [59/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_projectfile.cpp_parameters [60/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp_parameters [61/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp_parameters [62/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/moc_testtranslationhandler.cpp_parameters [63/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__ && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__/moc_translationhandler.cpp_parameters [64/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 && /usr/lib64/qt6/libexec/moc @/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2/moc_testxmlreportv2.cpp_parameters [65/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-missing-declarations -Wno-missing-prototypes -MD -MT test/signal/CMakeFiles/test-signalhandler.dir/test-signalhandler.cpp.o -MF test/signal/CMakeFiles/test-signalhandler.dir/test-signalhandler.cpp.o.d -o test/signal/CMakeFiles/test-signalhandler.dir/test-signalhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal/test-signalhandler.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal/test-signalhandler.cpp:44:1: warning: function declared 'noreturn' should not return [-Winvalid-noreturn] 44 | } | ^ 1 warning generated. [66/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-missing-declarations -Wno-missing-prototypes -MD -MT test/signal/CMakeFiles/test-stacktrace.dir/test-stacktrace.cpp.o -MF test/signal/CMakeFiles/test-stacktrace.dir/test-stacktrace.cpp.o.d -o test/signal/CMakeFiles/test-stacktrace.dir/test-stacktrace.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal/test-stacktrace.cpp [67/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-missing-declarations -Wno-missing-prototypes -MD -MT test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/stacktrace.cpp.o -MF test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/stacktrace.cpp.o.d -o test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/stacktrace.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:109:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 109 | fprintf(output, "#%-2d 0x", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:117:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 117 | fprintf(output, "%0*d", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:121:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 121 | fprintf(output, "%.*s in %s\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:126:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 126 | fprintf(output, "%.*s in %.*s\n", | ^ 4 warnings generated. [68/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/seh -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/seh -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -MD -MT test/seh/CMakeFiles/test-sehwrapper.dir/test-sehwrapper.cpp.o -MF test/seh/CMakeFiles/test-sehwrapper.dir/test-sehwrapper.cpp.o.d -o test/seh/CMakeFiles/test-sehwrapper.dir/test-sehwrapper.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/seh/test-sehwrapper.cpp [69/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/seh -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/seh -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -MD -MT test/seh/CMakeFiles/test-sehwrapper.dir/__/__/cli/sehwrapper.cpp.o -MF test/seh/CMakeFiles/test-sehwrapper.dir/__/__/cli/sehwrapper.cpp.o.d -o test/seh/CMakeFiles/test-sehwrapper.dir/__/__/cli/sehwrapper.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/sehwrapper.cpp [70/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-missing-declarations -Wno-missing-prototypes -MD -MT test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/signalhandler.cpp.o -MF test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/signalhandler.cpp.o.d -o test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/signalhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:170:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 170 | fprintf(output, " (at 0x%lx).\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:204:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 204 | fprintf(output, " (at 0x%lx).\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:238:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 238 | fprintf(output, " (at 0x%lx).%s\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:261:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 261 | fprintf(output, " (%sat 0x%lx).%s\n", | ^ 4 warnings generated. [71/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/signal -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-missing-declarations -Wno-missing-prototypes -MD -MT test/signal/CMakeFiles/test-stacktrace.dir/__/__/cli/stacktrace.cpp.o -MF test/signal/CMakeFiles/test-stacktrace.dir/__/__/cli/stacktrace.cpp.o.d -o test/signal/CMakeFiles/test-stacktrace.dir/__/__/cli/stacktrace.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:109:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 109 | fprintf(output, "#%-2d 0x", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:117:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 117 | fprintf(output, "%0*d", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:121:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 121 | fprintf(output, "%.*s in %s\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:126:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 126 | fprintf(output, "%.*s in %.*s\n", | ^ 4 warnings generated. [72/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/qrc_resources.cpp.o -MF gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/qrc_resources.cpp.o.d -o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/qrc_resources.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata/qrc_resources.cpp [73/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/moc_testcppchecklibrarydata.cpp.o -MF gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/moc_testcppchecklibrarydata.cpp.o.d -o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/moc_testcppchecklibrarydata.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata/moc_testcppchecklibrarydata.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata/moc_testcppchecklibrarydata.cpp:144:16: note: param returned here 144 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. [74/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/projectfile/CMakeFiles/test-projectfile.dir/moc_testprojectfile.cpp.o -MF gui/test/projectfile/CMakeFiles/test-projectfile.dir/moc_testprojectfile.cpp.o.d -o gui/test/projectfile/CMakeFiles/test-projectfile.dir/moc_testprojectfile.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/moc_testprojectfile.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/moc_testprojectfile.cpp:152:16: note: param returned here 152 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. [75/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/moc_projectfile.cpp.o -MF gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/moc_projectfile.cpp.o.d -o gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/moc_projectfile.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/moc_projectfile.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/moc_projectfile.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/moc_projectfile.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/moc_projectfile.cpp:9: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/../../../../../../gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile/__/__/moc_projectfile.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 19 warnings generated. [76/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/externals/simplecpp -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-zero-as-null-pointer-constant -MD -MT externals/simplecpp/CMakeFiles/simplecpp.dir/simplecpp.cpp.o -MF externals/simplecpp/CMakeFiles/simplecpp.dir/simplecpp.cpp.o.d -o externals/simplecpp/CMakeFiles/simplecpp.dir/simplecpp.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:14: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:363:47: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 363 | explicit StdIStream(std::istream &istr) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:383:23: note: escapes to this field 383 | std::istream &istr; | ~~~~~~~~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:389:50: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 389 | StdCharBufStream(const unsigned char* str, std::size_t size) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:414:30: note: escapes to this field 414 | const unsigned char *str; | ~~~~~~~~~~~~~~~~~~~~~^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:14: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:286:63: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 286 | explicit TokenList(std::vector &filenames); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:435:35: note: escapes to this field 435 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:288:74: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 288 | TokenList(std::istream &istr, std::vector &filenames, const std::string &filename=std::string(), const DUI &dui = {}, OutputList *outputList = nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:435:35: note: escapes to this field 435 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:406:99: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 406 | TokenList(const unsigned char* data, std::size_t size, std::vector &filenames, const std::string &filename, const DUI &dui, OutputList *outputList, int /*unused*/); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:435:35: note: escapes to this field 435 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:326:83: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 326 | TokenList(const std::string &filename, std::vector &filenames, const DUI &dui = {}, OutputList *outputList = nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.h:435:35: note: escapes to this field 435 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1573:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1573 | explicit Macro(std::vector &f) : nameTokDef(nullptr), valueToken(nullptr), endToken(nullptr), files(f), tokenListDefine(f), variadic(false), variadicOpt(false), valueDefinedInCode_(false) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:2503:35: note: escapes to this field 2503 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1578:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1578 | Macro(const Token *tok, std::vector &f) : nameTokDef(nullptr), files(f), tokenListDefine(f), valueDefinedInCode_(true) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:2503:35: note: escapes to this field 2503 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1597:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1597 | Macro(const std::string &name, const std::string &value, std::vector &f) : nameTokDef(nullptr), files(f), tokenListDefine(f), valueDefinedInCode_(false) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:2503:35: note: escapes to this field 2503 | std::vector &files; | ~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1754:49: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1754 | const std::list &usage() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1755:20: note: param returned here 1755 | return usageList; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1949:59: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1949 | const Token * const lpar, | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:1983:20: note: param returned here 1983 | return sameline(lpar,tok) ? tok : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:2169:104: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2169 | static const Macro *rescanMacro(const TokenList &temp, const Token *tok, const MacroMap ¯os, const std::set &expandedmacros) { | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:2177:20: note: param returned here 2177 | return &it->second; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:3077:72: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3077 | static const simplecpp::Token *gotoNextLine(const simplecpp::Token *tok) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/simplecpp.cpp:3083:12: note: param returned here 3083 | return tok; | ^~~ 23 warnings generated. [77/411] : && /usr/bin/cmake -E rm -f lib/libsimplecpp.a && /usr/bin/llvm-ar qc lib/libsimplecpp.a externals/simplecpp/CMakeFiles/simplecpp.dir/simplecpp.cpp.o && /usr/bin/llvm-ranlib lib/libsimplecpp.a && : [78/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line valueflow.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp => build/mc_valueflow.cpp [79/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line tokenize.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp => build/mc_tokenize.cpp [80/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line symboldatabase.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp => build/mc_symboldatabase.cpp [81/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line addoninfo.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/addoninfo.cpp => build/mc_addoninfo.cpp [82/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/testcppchecklibrarydata.cpp.o -MF gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/testcppchecklibrarydata.cpp.o.d -o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/testcppchecklibrarydata.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata/testcppchecklibrarydata.cpp [83/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line analyzerinfo.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/analyzerinfo.cpp => build/mc_analyzerinfo.cpp [84/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line astutils.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp => build/mc_astutils.cpp [85/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line check64bit.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp => build/mc_check64bit.cpp [86/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkassert.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp => build/mc_checkassert.cpp [87/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkautovariables.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp => build/mc_checkautovariables.cpp [88/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkbool.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp => build/mc_checkbool.cpp [89/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkbufferoverrun.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp => build/mc_checkbufferoverrun.cpp [90/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkclass.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp => build/mc_checkclass.cpp [91/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkcondition.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp => build/mc_checkcondition.cpp [92/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkers.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkers.cpp => build/mc_checkers.cpp [93/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkersidmapping.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersidmapping.cpp => build/mc_checkersidmapping.cpp [94/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkersreport.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp => build/mc_checkersreport.cpp [95/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkexceptionsafety.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp => build/mc_checkexceptionsafety.cpp [96/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkfunctions.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.cpp => build/mc_checkfunctions.cpp [97/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkimpl.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.cpp => build/mc_checkimpl.cpp [98/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkinternal.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkinternal.cpp => build/mc_checkinternal.cpp [99/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkio.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp => build/mc_checkio.cpp [100/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkleakautovar.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp => build/mc_checkleakautovar.cpp [101/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkmemoryleak.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp => build/mc_checkmemoryleak.cpp [102/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checknullpointer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.cpp => build/mc_checknullpointer.cpp [103/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkother.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp => build/mc_checkother.cpp [104/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkpostfixoperator.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.cpp => build/mc_checkpostfixoperator.cpp [105/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checks.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checks.cpp => build/mc_checks.cpp [106/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checksizeof.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp => build/mc_checksizeof.cpp [107/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkstl.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp => build/mc_checkstl.cpp [108/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkstring.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.cpp => build/mc_checkstring.cpp [109/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checktype.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp => build/mc_checktype.cpp [110/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkuninitvar.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp => build/mc_checkuninitvar.cpp [111/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkunusedfunctions.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedfunctions.cpp => build/mc_checkunusedfunctions.cpp [112/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkunusedvar.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp => build/mc_checkunusedvar.cpp [113/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line checkvaarg.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp => build/mc_checkvaarg.cpp [114/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line clangimport.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp => build/mc_clangimport.cpp [115/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line color.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/color.cpp => build/mc_color.cpp [116/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line cppcheck.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp => build/mc_cppcheck.cpp [117/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line ctu.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp => build/mc_ctu.cpp [118/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line errorlogger.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp => build/mc_errorlogger.cpp [119/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line errortypes.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp => build/mc_errortypes.cpp [120/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line findtoken.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/findtoken.cpp => build/mc_findtoken.cpp [121/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line forwardanalyzer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp => build/mc_forwardanalyzer.cpp [122/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line fwdanalysis.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.cpp => build/mc_fwdanalysis.cpp [123/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line importproject.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp => build/mc_importproject.cpp [124/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line infer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp => build/mc_infer.cpp [125/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line keywords.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/keywords.cpp => build/mc_keywords.cpp [126/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line library.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp => build/mc_library.cpp [127/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line mathlib.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/mathlib.cpp => build/mc_mathlib.cpp [128/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line path.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/path.cpp => build/mc_path.cpp [129/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line pathanalysis.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.cpp => build/mc_pathanalysis.cpp [130/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line pathmatch.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.cpp => build/mc_pathmatch.cpp [131/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line platform.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.cpp => build/mc_platform.cpp [132/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line preprocessor.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp => build/mc_preprocessor.cpp [133/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line programmemory.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp => build/mc_programmemory.cpp [134/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line regex.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/regex.cpp => build/mc_regex.cpp [135/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line reverseanalyzer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp => build/mc_reverseanalyzer.cpp [136/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line sarifreport.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.cpp => build/mc_sarifreport.cpp [137/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line settings.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp => build/mc_settings.cpp [138/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line standards.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/standards.cpp => build/mc_standards.cpp [139/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line summaries.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp => build/mc_summaries.cpp [140/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line suppressions.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp => build/mc_suppressions.cpp [141/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line timer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/timer.cpp => build/mc_timer.cpp [142/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line templatesimplifier.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp => build/mc_templatesimplifier.cpp [143/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line token.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp => build/mc_token.cpp [144/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line tokenlist.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp => build/mc_tokenlist.cpp [145/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line utils.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.cpp => build/mc_utils.cpp [146/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line vf_analyzers.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp => build/mc_vf_analyzers.cpp [147/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line vf_common.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.cpp => build/mc_vf_common.cpp [148/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line vf_settokenvalue.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_settokenvalue.cpp => build/mc_vf_settokenvalue.cpp [149/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib && /usr/bin/python3.15 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/matchcompiler.py --read-dir="/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib" --prefix="mc_" --line vfvalue.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vfvalue.cpp => build/mc_vfvalue.cpp [150/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/cppchecklibrarydata -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/__/__/cppchecklibrarydata.cpp.o -MF gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/__/__/cppchecklibrarydata.cpp.o.d -o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/__/__/cppchecklibrarydata.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppchecklibrarydata.cpp [151/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/frontend -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -MD -MT frontend/CMakeFiles/frontend.dir/frontend.cpp.o -MF frontend/CMakeFiles/frontend.dir/frontend.cpp.o.d -o frontend/CMakeFiles/frontend.dir/frontend.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/frontend.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/frontend.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/frontend.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 5 warnings generated. [152/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -fpch-instantiate-templates -Xclang -emit-pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -x c++-header -MD -MT lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -MF lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch.d -o lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.cxx In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:51:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 51 | const std::string& dump() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:52:16: note: param returned here 52 | return mDump; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:55:81: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 55 | const std::map>& getUsedVariables() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:56:16: note: param returned here 56 | return mUsedVariables; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:175:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 175 | const std::string & scope() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:176:20: note: param returned here 176 | return mScope; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:178:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 178 | const std::string & name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:179:20: note: param returned here 179 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:181:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | const std::string & fullName() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:182:20: note: param returned here 182 | return mFullName; | ^~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:61:56: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 61 | ScopeInfo2(std::string name_, const Token *bodyEnd_, std::set usingNamespaces_ = std::set()) : name(std::move(name_)), bodyEnd(bodyEnd_), usingNamespaces(std::move(usingNamespaces_)) {} | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:63:24: note: escapes to this field 63 | const Token* const bodyEnd{}; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:228:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 228 | const std::string &str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:229:16: note: param returned here 229 | return mStr; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:773:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 773 | Token* isInsertedBrace(bool b) { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:775:16: note: param returned here 775 | return this; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1616:32: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1616 | RET_NONNULL Token *astTop() { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1623:16: note: param returned here 1623 | return ret; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1626:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1626 | RET_NONNULL const Token *astTop() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1633:16: note: param returned here 1633 | return ret; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:249:34: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 249 | ReferenceToken(const Token* t, ErrorPath e) | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:253:18: note: escapes to this field 253 | const Token* token; | ~~~~~~~~~~~~~^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:31: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.h:79:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 79 | LifetimeToken(const Token* token, ErrorPath errorPath) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.h:72:22: note: escapes to this field 72 | const Token* token{}; | ~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.h:83:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 83 | LifetimeToken(const Token* token, bool addressOf, ErrorPath errorPath) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.h:72:22: note: escapes to this field 72 | const Token* token{}; | ~~~~~~~~~~~~~^~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:902:31: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 902 | static T *tokAtImpl(T *tok, int idx) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:254:16: note: in instantiation of function template specialization 'Token::tokAtImpl' requested here 254 | return tokAtImpl(this, idx); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:912:16: note: param returned here 912 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:902:31: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 902 | static T *tokAtImpl(T *tok, int idx) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:258:16: note: in instantiation of function template specialization 'Token::tokAtImpl' requested here 258 | return tokAtImpl(this, idx); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:912:16: note: param returned here 912 | return tok; | ^~~ 23 warnings generated. [153/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -fpch-instantiate-templates -Xclang -emit-pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -x c++-header -MD -MT cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -MF cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch.d -o cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.cxx In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/precompiled.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/precompiled.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 3 warnings generated. [154/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/projectfile/CMakeFiles/test-projectfile.dir/testprojectfile.cpp.o -MF gui/test/projectfile/CMakeFiles/test-projectfile.dir/testprojectfile.cpp.o.d -o gui/test/projectfile/CMakeFiles/test-projectfile.dir/testprojectfile.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile/testprojectfile.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 18 warnings generated. [155/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/common.cpp.o -MF gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/common.cpp.o.d -o gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/common.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/common.cpp [156/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_addoninfo.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/addoninfo.cpp:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ 20 warnings generated. [157/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_analyzerinfo.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/analyzerinfo.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ 3 warnings generated. [158/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:37: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:37: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:37: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:240:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 240 | explicit Usage(const Variable *var) : var(var) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:243:25: note: escapes to this field 243 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:119:47: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 119 | const Token* start, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:63:20: note: param returned here 63 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:186:55: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 186 | const Token * astIsVariableComparison(const Token *tok, const std::string &comp, const std::string &rhs, const Token **vartok=nullptr); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:411:12: note: param returned here 411 | return ret; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:204:47: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 204 | const Token* getParentMember(const Token * tok); | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:600:16: note: param returned here 600 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:206:48: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 206 | const Token* getParentLifetime(const Token* tok); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:620:16: note: param returned here 620 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:656:61: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 656 | static const Token* getParentLifetimeObject(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:660:12: note: param returned here 660 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:207:48: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 207 | const Token* getParentLifetime(const Token* tok, const Library& library); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:667:16: note: param returned here 667 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:1198:90: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1198 | static const Token * followVariableExpression(const Settings& settings, const Token * tok, const Token * end = nullptr) | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:1201:16: note: param returned here 1201 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:1481:45: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1481 | auto adjustForCast = [](const Token* tok) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:1484:16: note: param returned here 1484 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2676:50: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2676 | auto skipRedundantPtrOp = [](const Token* tok, const Token* parent) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2684:16: note: param returned here 2684 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:362:40: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 362 | Token* findVariableChanged(Token *start, const Token *end, int indirect, nonneg int exprid, bool globalvar, const Settings &settings, int depth = 20); | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2990:16: note: param returned here 2990 | return start; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3067:55: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3067 | static const Token* findThisChanged(const Token* start, const Token* end, int indirect, const Settings& settings) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3075:20: note: param returned here 3075 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3144:61: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3144 | ExpressionChangedSkipDeadCode(const Library& library, | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3142:24: note: escapes to this field 3142 | const Library& library; | ~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3145:116: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3145 | const std::function(const Token* tok)>& evaluate) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3143:78: note: escapes to this field 3143 | const std::function(const Token* tok)>* evaluate; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3599:61: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3599 | static const Token* getLHSVariableRecursive(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3611:12: note: param returned here 3611 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:453:54: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 453 | const Token* findAllocFuncCallToken(const Token *expr, const Library &library); | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3654:12: note: param returned here 3654 | return (match143(expr) && expr->astOperand1()) ? expr : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3870:61: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3870 | static const Token *skipUnreachableIfBranch(const Token *tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3874:16: note: param returned here 3874 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3891:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3891 | static const Token *skipUnreachableElseBranch(const Token *tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3894:16: note: param returned here 3894 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:467:52: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 467 | const Token *skipUnreachableBranch(const Token *tok); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3920:16: note: param returned here 3920 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:18:91: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !(((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:54:66: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 54 | if (!tok || !(tok->isName() || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:60:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 60 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("static")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:60:186: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 60 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("static")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:75:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 75 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:81:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 81 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("string")) || (tok->str() == MatchCompiler::makeConstString("wstring")) || (tok->str() == MatchCompiler::makeConstString("u16string")) || (tok->str() == MatchCompiler::makeConstString("u32string")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:81:170: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 81 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("string")) || (tok->str() == MatchCompiler::makeConstString("wstring")) || (tok->str() == MatchCompiler::makeConstString("u16string")) || (tok->str() == MatchCompiler::makeConstString("u32string")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:96:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 96 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("basic_string"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:273:112: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 273 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("push_back")) || (tok->str() == MatchCompiler::makeConstString("push_front")) || (tok->str() == MatchCompiler::makeConstString("insert")) || (tok->str() == MatchCompiler::makeConstString("push")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:273:236: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 273 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("push_back")) || (tok->str() == MatchCompiler::makeConstString("push_front")) || (tok->str() == MatchCompiler::makeConstString("insert")) || (tok->str() == MatchCompiler::makeConstString("push")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:580:106: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 580 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("get")) || (tok->str() == MatchCompiler::makeConstString("get_deleter")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:604:343: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 604 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")) || (tok->str() == MatchCompiler::makeConstString("throw")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:1147:244: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 1147 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:645:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 645 | template MAYBE_UNUSED static inline T * findmatch83(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2293:14: note: in instantiation of function template specialization 'findmatch83' requested here 2293 | !findmatch83(prev->link(), prev) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_astutils.cpp:651:12: note: param returned here 651 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2360:46: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2360 | static T* getTokenArgumentFunctionImpl(T* tok, int& argn) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2434:12: note: in instantiation of function template specialization 'getTokenArgumentFunctionImpl' requested here 2434 | return getTokenArgumentFunctionImpl(tok, argn); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2430:12: note: param returned here 2430 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2360:46: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2360 | static T* getTokenArgumentFunctionImpl(T* tok, int& argn) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2438:12: note: in instantiation of function template specialization 'getTokenArgumentFunctionImpl' requested here 2438 | return getTokenArgumentFunctionImpl(tok, argn); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2430:12: note: param returned here 2430 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:450:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 450 | static inline std::function memoize(F f) | ~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2991:30: note: in instantiation of function template specialization 'utils::memoize<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:2991:38), const Token *>' requested here 2991 | auto getExprTok = utils::memoize([&] { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:454:9: note: param returned here 454 | return [=]() mutable -> R { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 455 | if (init) | ~~~~~~~~~ 456 | return result; | ~~~~~~~~~~~~~~ 457 | result = f(); | ~~~~~~~~~~~~~ 458 | init = true; | ~~~~~~~~~~~~ 459 | return result; | ~~~~~~~~~~~~~~ 460 | }; | ~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3082:65: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3082 | const Token* start, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3162:12: note: in instantiation of function template specialization 'findExpressionChangedImpl<(anonymous namespace)::ExpressionChangedSimpleFind>' requested here 3162 | return findExpressionChangedImpl(expr, start, end, settings, depth, ExpressionChangedSimpleFind{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3089:16: note: param returned here 3089 | return start; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3082:65: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3082 | const Token* start, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3172:12: note: in instantiation of function template specialization 'findExpressionChangedImpl<(anonymous namespace)::ExpressionChangedSkipDeadCode>' requested here 3172 | return findExpressionChangedImpl( | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp:3089:16: note: param returned here 3089 | return start; | ^~~~~ 54 warnings generated. [159/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_check64bit.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_check64bit.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp:69:65: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 69 | if (scope->function->token->strAt(-1) == MatchCompiler::makeConstString("*")) // Function returns a pointer | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.cpp:83:46: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 83 | if (tok->str() != MatchCompiler::makeConstString("return")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 19 warnings generated. [160/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkassert.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp:31: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkassert.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkassert.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("assert"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkassert.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkassert.cpp:39:104: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 39 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp:70:54: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 70 | if (tmp->str() == MatchCompiler::makeConstString("get") && match3(tmp->astParent()) && astIsSmartPointer(tmp->astParent()->astOperand1())) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 21 warnings generated. [161/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:18:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:18:104: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 18 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:57:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 57 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:213:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 213 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("delete"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:312:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 312 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:312:344: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 312 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:336:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 336 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:85:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | template MAYBE_UNUSED static inline T * findmatch10(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:225:40: note: in instantiation of function template specialization 'findmatch10' requested here 225 | !variableIsUsedInScope(findmatch10(vartok->next()) , vartok->varId(), scope) && | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:91:12: note: param returned here 91 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:96:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 96 | template MAYBE_UNUSED static inline T * findmatch11(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:226:18: note: in instantiation of function template specialization 'findmatch11' requested here 226 | !findmatch11(vartok, scope->bodyEnd) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:102:12: note: param returned here 102 | return start_tok; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:252:51: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 252 | return f.name() == MatchCompiler::makeConstString("operator="); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:230:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 230 | template MAYBE_UNUSED static inline T * findmatch22(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:320:23: note: in instantiation of function template specialization 'findmatch22' requested here 320 | tok = findmatch22(tok->next()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:236:12: note: param returned here 236 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:289:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 289 | template MAYBE_UNUSED static inline T * findmatch26(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:338:23: note: in instantiation of function template specialization 'findmatch26' requested here 338 | tok = findmatch26(tok->next()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:295:12: note: param returned here 295 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:300:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 300 | template MAYBE_UNUSED static inline T * findmatch27(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp:349:22: note: in instantiation of function template specialization 'findmatch27' requested here 349 | startToken = findmatch27(expr) ->next(); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkautovariables.cpp:306:12: note: param returned here 306 | return start_tok; | ^~~~~~~~~ 30 warnings generated. [162/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp:28: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:15:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 15 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("bool")) || (tok->str() == MatchCompiler::makeConstString("_Bool")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:15:107: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 15 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("bool")) || (tok->str() == MatchCompiler::makeConstString("_Bool")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:21:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:24:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:80:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 80 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:62:74: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 62 | template MAYBE_UNUSED static inline T * findmatch8(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp:418:19: note: in instantiation of function template specialization 'findmatch8' requested here 418 | tok = findmatch8(scope.classDef->tokAt(2)) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbool.cpp:68:12: note: param returned here 68 | return start_tok; | ^~~~~~~~~ 23 warnings generated. [163/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:34: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:77:54: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 77 | static const Token* getRealBufferTok(const Token* tok) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:79:16: note: param returned here 79 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:198:88: warning: parameter 'dimensions' is later invalidated [-Wlifetime-safety-invalidation] 198 | static bool getDimensionsEtc(const Token * const arrayToken, const Settings &settings, std::vector &dimensions, ErrorPath &errorPath, bool &mightBeLarger, MathLib::bigint &path) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:205:20: note: parameter 'dimensions' is invalidated here 205 | dimensions = array->variable()->dimensions(); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:206:13: note: later used here 206 | if (dimensions[0].num <= 1 || !dimensions[0].tok) { | ^~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp:15:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp:15:104: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 15 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp:69:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 69 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("sizeof"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp:131:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 131 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("strncpy"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkbufferoverrun.cpp:149:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 149 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("c_str"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:610:101: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 610 | if (!var || var->isPointer() || (astIsContainer(bufTok) && var->getTypeName() != MatchCompiler::makeConstString("std::array"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp:1250:67: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 1250 | if (!tok->isKeyword() || tok->str() != MatchCompiler::makeConstString("new") || !tok->astOperand1() || tok->astOperand1()->str() != MatchCompiler::makeConstString("[")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 26 warnings generated. [164/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:34: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1350:49: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1350 | explicit SymbolDatabase(Tokenizer& tokenizer); | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1514:16: note: escapes to this field 1514 | Tokenizer& mTokenizer; | ~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:97:58: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 97 | static const Token* skipScopeIdentifiers(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:109:12: note: param returned here 109 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1440:58: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1440 | static const Token* isEnumDefinition(const Token* tok); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:139:16: note: param returned here 139 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:186:138: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 186 | const std::function findForwardDeclScope = [&](const Token *tok, const Scope *startScope) { | ~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:205:16: note: param returned here 205 | return it->second.count(tok->str()) > 0 ? startScope : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:1300:28: note: in instantiation of function template specialization 'utils::as_const>' requested here 1300 | auto memberId = utils::as_const(varId->second).find(membervar->nameToken()->varId()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:236:86: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 236 | Variable(const Token *name_, const std::string &clangType, const Token *typeStart, | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:236:32: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 236 | Variable(const Token *name_, const std::string &clangType, const Token *typeStart, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:238:31: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 238 | const Type *type_, const Scope *scope_); | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:238:52: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 238 | const Type *type_, const Scope *scope_); | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:237:34: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 237 | const Token *typeEnd, nonneg int index_, AccessControl access_, | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:240:53: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 240 | Variable(const Variable &var, const Scope *scope); | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:761:50: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 761 | Function(const Token *tok, const Scope *scope, const Token *tokDef, const Token *tokArgDef); | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:929:18: note: escapes to this field 929 | const Scope* nestedIn{}; ///< Scope the function is declared in | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:761:71: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 761 | Function(const Token *tok, const Scope *scope, const Token *tokDef, const Token *tokArgDef); | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:922:18: note: escapes to this field 922 | const Token* tokenDef{}; ///< function name token in class definition | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:761:95: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 761 | Function(const Token *tok, const Scope *scope, const Token *tokDef, const Token *tokArgDef); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:923:18: note: escapes to this field 923 | const Token* argDef{}; ///< function argument start '(' in class definition | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:762:35: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 762 | Function(const Token *tokenDef, const std::string &clangType); | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:922:18: note: escapes to this field 922 | const Token* tokenDef{}; ///< function name token in class definition | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1030:56: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1030 | RET_NONNULL const Token *setFlags(const Token *tok1, const Scope *scope); | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:2936:12: note: param returned here 2936 | return tok1; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:3070:51: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3070 | auto skipTopLevelConst = [](const Token* start) -> const Token* { | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:3079:16: note: param returned here 3079 | return start; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:141:66: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 141 | const Token *initBaseInfo(const Token *tok, const Token *tok1); | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:3842:12: note: param returned here 3842 | return tok2; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:4063:52: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 4063 | static std::ostream & operator << (std::ostream & s, ScopeType type) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:4066:12: note: param returned here 4066 | return s; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:776:53: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 776 | const Variable* getArgumentVar(size_t num) const; | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:4989:16: note: param returned here 4989 | return &*it; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1046:39: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1046 | Scope(const SymbolDatabase &symdb_, const Token *classDef_, const Scope *nestedIn_, ScopeType type_, const Token *start_); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1048:27: note: escapes to this field 1048 | const SymbolDatabase& symdb; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1046:63: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1046 | Scope(const SymbolDatabase &symdb_, const Token *classDef_, const Scope *nestedIn_, ScopeType type_, const Token *start_); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1050:18: note: escapes to this field 1050 | const Token* classDef{}; ///< class/struct/union/namespace token | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1046:87: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1046 | Scope(const SymbolDatabase &symdb_, const Token *classDef_, const Scope *nestedIn_, ScopeType type_, const Token *start_); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1056:18: note: escapes to this field 1056 | const Scope* nestedIn{}; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1045:39: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1045 | Scope(const SymbolDatabase &symdb_, const Token *classDef_, const Scope *nestedIn_); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1048:27: note: escapes to this field 1048 | const SymbolDatabase& symdb; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1045:63: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1045 | Scope(const SymbolDatabase &symdb_, const Token *classDef_, const Scope *nestedIn_); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1050:18: note: escapes to this field 1050 | const Token* classDef{}; ///< class/struct/union/namespace token | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1045:87: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 1045 | Scope(const SymbolDatabase &symdb_, const Token *classDef_, const Scope *nestedIn_); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1056:18: note: escapes to this field 1056 | const Scope* nestedIn{}; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1193:48: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1193 | const Token *checkVariable(const Token *tok, AccessControl varaccess); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5287:12: note: param returned here 5287 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1200:66: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1200 | const Variable *getVariable(const std::string &varname) const; | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5296:16: note: param returned here 5296 | return &*it; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5309:50: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 5309 | static const Token* skipPointers(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5330:16: note: param returned here 5330 | return start; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5867:32: warning: parameter 'matches' is later invalidated [-Wlifetime-safety-invalidation] 5867 | std::vector& matches) const | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5884:33: note: parameter 'matches' is invalidated here 5884 | matches.push_back(func); | ~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5884:25: note: later used here 5884 | matches.push_back(func); | ^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1381:64: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1381 | const Scope* findScopeByName(const std::string& name) const; | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:6489:12: note: param returned here 6489 | return it == scopeList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1175:42: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1175 | const Function *getDestructor() const; | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:6603:12: note: param returned here 6603 | return it == functionList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:6863:48: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 6863 | static const Token* parsedecl(const Token* type, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:7756:12: note: param returned here 7756 | return (type && (valuetype->type != ValueType::Type::UNKNOWN_TYPE || valuetype->pointer > 0 || valuetype->reference != Reference::None)) ? type : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:36:129: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 36 | if (!tok || !((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:75:144: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 75 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("do")) || (tok->str() == MatchCompiler::makeConstString("try")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:75:240: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 75 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("do")) || (tok->str() == MatchCompiler::makeConstString("try")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:96:47: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 96 | if (tok && ((tok->str() == MatchCompiler::makeConstString("class")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:136:147: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 136 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")) || (tok->str() == MatchCompiler::makeConstString("namespace")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:136:305: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 136 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")) || (tok->str() == MatchCompiler::makeConstString("namespace")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:152:400: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 152 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("new")) || (tok->str() == MatchCompiler::makeConstString("friend")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("enum")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("typedef")) || (tok->str() == MatchCompiler::makeConstString("mutable")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("volatile")) || (tok->str() == MatchCompiler::makeConstString("using")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(")")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:152:561: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 152 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("new")) || (tok->str() == MatchCompiler::makeConstString("friend")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("enum")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("typedef")) || (tok->str() == MatchCompiler::makeConstString("mutable")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("volatile")) || (tok->str() == MatchCompiler::makeConstString("using")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(")")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:655:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 655 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:655:114: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 655 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:655:180: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 655 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:655:244: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 655 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:634:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 634 | template MAYBE_UNUSED static inline T * findmatch68(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:1417:48: note: in instantiation of function template specialization 'findmatch68' requested here 1417 | if (const Token* templateArg = findmatch68(tok->function()->retDef) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:640:12: note: param returned here 640 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:660:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 660 | template MAYBE_UNUSED static inline T * findmatch71(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:1519:35: note: in instantiation of function template specialization 'findmatch71' requested here 1519 | Token* usingEnd = findmatch71(tok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:666:12: note: param returned here 666 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:744:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 744 | template MAYBE_UNUSED static inline T * findmatch82(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:1582:13: note: in instantiation of function template specialization 'findmatch82' requested here 1582 | if (findmatch82(scope.bodyStart, scope.bodyEnd) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:750:12: note: param returned here 750 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:872:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 872 | template MAYBE_UNUSED static inline T * findmatch99(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:1978:23: note: in instantiation of function template specialization 'findmatch99' requested here 1978 | declEnd = findmatch99(tok2->link()->next()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:878:12: note: param returned here 878 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1258:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1258 | template MAYBE_UNUSED static inline T * findmatch145(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:2659:33: note: in instantiation of function template specialization 'findmatch145' requested here 2659 | const Token *declType = findmatch145(mTypeStartToken, mTypeEndToken) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1267:12: note: param returned here 1267 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1553:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1553 | template MAYBE_UNUSED static inline T * findmatch178(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:3378:16: note: in instantiation of function template specialization 'findmatch178' requested here 3378 | return findmatch178(defStart, defEnd) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1559:12: note: param returned here 1559 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1878:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1878 | template MAYBE_UNUSED static inline T * findmatch213(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5211:29: note: in instantiation of function template specialization 'findmatch213' requested here 5211 | const Token *next = findmatch213(tok->tokAt(2)) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1884:12: note: param returned here 1884 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1906:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1906 | template MAYBE_UNUSED static inline T * findmatch216(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:5227:32: note: in instantiation of function template specialization 'findmatch216' requested here 5227 | const Token *typeend = findmatch216(typestart) ->previous(); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1912:12: note: param returned here 1912 | return start_tok; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_symboldatabase.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:8579:85: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 8579 | else if (vt->container && vt->container->startPattern == MatchCompiler::makeConstString("std :: array <")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:8622:25: note: in instantiation of function template specialization 'accumulateStructMembers<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp:8618:26)>' requested here 8622 | Result result = accumulateStructMembers(vt.typeScope, accHelper, accuracy, settings); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 68 warnings generated. [165/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:31: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:1072:60: warning: parameter 'op' is later invalidated [-Wlifetime-safety-invalidation] 1072 | static bool parseComparison(const Token *comp, bool ¬1, std::string &op, std::string &value, const Token *&expr, bool &inconclusive) | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:1108:12: note: parameter 'op' is invalidated here 1108 | op = "!="; | ~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:1113:59: note: later used here 1113 | inconclusive = inconclusive || (value[0] == '\'' && !(op == MatchCompiler::makeConstString("!=") || op == MatchCompiler::makeConstString("=="))); | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:1072:77: warning: parameter 'value' is later invalidated [-Wlifetime-safety-invalidation] 1072 | static bool parseComparison(const Token *comp, bool ¬1, std::string &op, std::string &value, const Token *&expr, bool &inconclusive) | ^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:1087:15: note: parameter 'value' is invalidated here 1087 | value = "0"; | ~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:1113:37: note: later used here 1113 | inconclusive = inconclusive || (value[0] == '\'' && !(op == MatchCompiler::makeConstString("!=") || op == MatchCompiler::makeConstString("=="))); | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:15:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("!")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || (tok->tokType() == Token::eLogicalOp && tok->str() == MatchCompiler::makeConstString("||")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:15:186: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("!")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || (tok->tokType() == Token::eLogicalOp && tok->str() == MatchCompiler::makeConstString("||")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:190:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 190 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:190:186: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 190 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:190:287: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 190 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:257:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 257 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:425:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 425 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("do")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:620:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 620 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_assert")) || (tok->str() == MatchCompiler::makeConstString("assert")) || (tok->str() == MatchCompiler::makeConstString("ASSERT")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("sizeof")) || (tok->str() == MatchCompiler::makeConstString("decltype")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:56:74: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | template MAYBE_UNUSED static inline T * findmatch5(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp:115:41: note: in instantiation of function template specialization 'findmatch5' requested here 115 | const Token *endToken = findmatch5(tok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkcondition.cpp:62:12: note: param returned here 62 | return start_tok; | ^~~~~~~~~ 28 warnings generated. [166/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:83: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:83: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:100: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:103: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:462:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 462 | static const Token* findTypeEnd(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:469:12: note: param returned here 469 | return tok; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:646:36: note: in instantiation of function template specialization 'utils::as_const>' requested here 646 | const auto it = utils::as_const(constantArrays).find(tok->varId()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:1238:33: note: in instantiation of function template specialization 'utils::as_const>' requested here 1238 | const auto var = utils::as_const(vars).find(tok->variable()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:1784:48: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1784 | static const Token* skipCVRefs(const Token* tok, const Token* endTok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:1788:12: note: param returned here 1788 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:1960:81: warning: parameter 'result' is later invalidated [-Wlifetime-safety-invalidation] 1960 | static void getLhsLifetimeParentsImpl(const Token* lhs, const Library& library, std::vector& result) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:1970:20: note: parameter 'result' is invalidated here 1970 | result.push_back(obj); | ~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:1971:49: note: later used here 1971 | getLhsLifetimeParentsImpl(obj, library, result); | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:2083:38: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2083 | LifetimeStore(const Token* argtok, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:2074:18: note: escapes to this field 2074 | const Token* argtok{}; | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:2820:37: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2820 | explicit Lambda(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:2856:18: note: escapes to this field 2856 | const Token* capture{}; | ~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3231:57: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3231 | static Token* findOpenParentesisOfMove(Token* moveVarTok) | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3236:12: note: param returned here 3236 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3351:57: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3351 | static const Token* findIncompleteVar(const Token* start, const Token* end) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3355:20: note: param returned here 3355 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3662:48: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3662 | static const Token* isStrlenOf(const Token* tok, const Token* expr, int depth = 10) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3674:20: note: param returned here 3674 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3786:49: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3786 | explicit SymbolicInferModel(const Token* tok) : expr(tok) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:3785:18: note: escapes to this field 3785 | const Token* expr; | ~~~~~~~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:4644:45: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 4644 | static Token* skipNotAndCasts(Token* tok, bool* inverted = nullptr) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:4663:20: note: param returned here 4663 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:5037:58: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 5037 | static const Token* getConditionVariable(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:5049:24: note: param returned here 5049 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:5183:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 5183 | static const Token* skipNot(const Token* tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:5186:20: note: param returned here 5186 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6038:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 6038 | static Token* findStartToken(const Variable* var, Token* start, const Library& library) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6042:16: note: param returned here 6042 | return start; | ^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:31: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.h:103:50: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 103 | const Token* solveExprValue(const Token* expr, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6274:16: note: param returned here 6274 | return expr; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6712:56: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 6712 | static const Scope* getFunctionScope(const Scope* scope) { | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6715:12: note: param returned here 6715 | return scope; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7297:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7297 | const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7304:21: note: escapes to this field 7304 | const Settings& settings; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7295:59: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7295 | SymbolDatabase& symboldatabase, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7302:21: note: escapes to this field 7302 | SymbolDatabase& symboldatabase; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7294:49: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7294 | explicit ValueFlowState(TokenList& tokenlist, | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7301:16: note: escapes to this field 7301 | TokenList& tokenlist; | ~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7296:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7296 | ErrorLogger& errorLogger, | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7303:18: note: escapes to this field 7303 | ErrorLogger& errorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7323:86: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7323 | explicit ValueFlowPassRunner(ValueFlowState state, TimerResultsIntf* timerResults = nullptr) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7446:23: note: escapes to this field 7446 | TimerResultsIntf* timerResults; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:31: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.h:61:58: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 61 | const Value* findValue(const std::list& values, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7606:12: note: param returned here 7606 | return ret; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:15:130: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")) || ((tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<=")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:15:229: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")) || ((tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<=")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:53:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 53 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("NULL"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:68:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 68 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("decltype"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:110:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 110 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("volatile")) || ((tok->tokType() == Token::eBitOp) && tok->str() == MatchCompiler::makeConstString("&")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("*")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || (tok->isName() && tok->varId() == 0U) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:134:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 134 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:356:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 356 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("make_shared")) || (tok->str() == MatchCompiler::makeConstString("make_unique")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:536:221: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 536 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("ref")) || (tok->str() == MatchCompiler::makeConstString("cref")) || (tok->str() == MatchCompiler::makeConstString("tie")) || (tok->str() == MatchCompiler::makeConstString("front_inserter")) || (tok->str() == MatchCompiler::makeConstString("back_inserter")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:536:289: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 536 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("ref")) || (tok->str() == MatchCompiler::makeConstString("cref")) || (tok->str() == MatchCompiler::makeConstString("tie")) || (tok->str() == MatchCompiler::makeConstString("front_inserter")) || (tok->str() == MatchCompiler::makeConstString("back_inserter")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:548:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 548 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("make_tuple")) || (tok->str() == MatchCompiler::makeConstString("tuple_cat")) || (tok->str() == MatchCompiler::makeConstString("make_pair")) || (tok->str() == MatchCompiler::makeConstString("make_reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("next")) || (tok->str() == MatchCompiler::makeConstString("prev")) || (tok->str() == MatchCompiler::makeConstString("move")) || (tok->str() == MatchCompiler::makeConstString("bind")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:548:113: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 548 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("make_tuple")) || (tok->str() == MatchCompiler::makeConstString("tuple_cat")) || (tok->str() == MatchCompiler::makeConstString("make_pair")) || (tok->str() == MatchCompiler::makeConstString("make_reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("next")) || (tok->str() == MatchCompiler::makeConstString("prev")) || (tok->str() == MatchCompiler::makeConstString("move")) || (tok->str() == MatchCompiler::makeConstString("bind")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<22>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:548:239: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<22U>' requested here 548 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("make_tuple")) || (tok->str() == MatchCompiler::makeConstString("tuple_cat")) || (tok->str() == MatchCompiler::makeConstString("make_pair")) || (tok->str() == MatchCompiler::makeConstString("make_reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("next")) || (tok->str() == MatchCompiler::makeConstString("prev")) || (tok->str() == MatchCompiler::makeConstString("move")) || (tok->str() == MatchCompiler::makeConstString("bind")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:557:176: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 557 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("push_back")) || (tok->str() == MatchCompiler::makeConstString("push_front")) || (tok->str() == MatchCompiler::makeConstString("insert")) || (tok->str() == MatchCompiler::makeConstString("push")) || (tok->str() == MatchCompiler::makeConstString("assign")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:703:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 703 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("forward"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:38:74: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 38 | template MAYBE_UNUSED static inline T * findmatch5(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:373:28: note: in instantiation of function template specialization 'findmatch5' requested here 373 | const Token* termTok = findmatch5(tok, tok->link()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:44:12: note: param returned here 44 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:592:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 592 | template MAYBE_UNUSED static inline T * findmatch66(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:2832:23: note: in instantiation of function template specialization 'findmatch66' requested here 2832 | bodyTok = findmatch66(returnTok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:598:12: note: param returned here 598 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:896:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 896 | template MAYBE_UNUSED static inline T * findmatch101(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:4367:12: note: in instantiation of function template specialization 'findmatch101' requested here 4367 | return findmatch101(endToken->link(), endToken) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:902:12: note: param returned here 902 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1093:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1093 | template MAYBE_UNUSED static inline T * findmatch129(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:5386:36: note: in instantiation of function template specialization 'findmatch129' requested here 5386 | if (vartok->varId() && findmatch129(tok2->link(), tok2, vartok->varId()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1101:12: note: param returned here 1101 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1188:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1188 | template MAYBE_UNUSED static inline T * findmatch137(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6044:9: note: in instantiation of function template specialization 'findmatch137' requested here 6044 | if (findmatch137(start, first) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1194:12: note: param returned here 1194 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1223:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1223 | template MAYBE_UNUSED static inline T * findmatch141(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:6125:17: note: in instantiation of function template specialization 'findmatch141' requested here 6125 | if (findmatch141(scope->bodyStart, scope->bodyEnd) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_valueflow.cpp:1229:12: note: param returned here 1229 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7517:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7517:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7517:9)>' requested here 7517 | VFA(valueFlowEnumValueEarly(symboldatabase, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7518:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7518:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7518:9)>' requested here 7518 | VFA(valueFlowNumber(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7519:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7519:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7519:9)>' requested here 7519 | VFA(valueFlowString(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7520:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7520:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7520:9)>' requested here 7520 | VFA(valueFlowTypeTraits(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7521:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7521:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7521:9)>' requested here 7521 | VFA(valueFlowArray(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7522:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7522:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7522:9)>' requested here 7522 | VFA(valueFlowUnknownFunctionReturn(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7523:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7523:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7523:9)>' requested here 7523 | VFA(valueFlowGlobalConstVar(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7524:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7524:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7524:9)>' requested here 7524 | VFA(valueFlowEnumValue(symboldatabase, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7525:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7525:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7525:9)>' requested here 7525 | VFA(valueFlowGlobalStaticVar(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7526:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7526:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7526:9)>' requested here 7526 | VFA(valueFlowPointerAlias(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7527:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7527:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7527:9)>' requested here 7527 | VFA(valueFlowLifetime(tokenlist, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7528:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7528:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7528:9)>' requested here 7528 | VFA(valueFlowSymbolic(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7529:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7529:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7529:9)>' requested here 7529 | VFA(valueFlowBitAnd(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7530:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7530:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7530:9)>' requested here 7530 | VFA(valueFlowSameExpressions(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7531:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7531:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7531:9)>' requested here 7531 | VFA(valueFlowConditionExpressions(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7535:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7535:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7535:9)>' requested here 7535 | VFA(valueFlowImpossibleValues(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7536:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7536:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7536:9)>' requested here 7536 | VFA(valueFlowSymbolicOperators(symboldatabase, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7537:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7537:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7537:9)>' requested here 7537 | VFA(valueFlowCondition(SymbolicConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7538:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7538:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7538:9)>' requested here 7538 | VFA(valueFlowSymbolicInfer(symboldatabase, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7539:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7539:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7539:9)>' requested here 7539 | VFA(valueFlowArrayBool(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7540:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7540:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7540:9)>' requested here 7540 | VFA(valueFlowArrayElement(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7541:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7541:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7541:9)>' requested here 7541 | VFA(valueFlowRightShift(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7542:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7542:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7542:9)>' requested here 7542 | VFA_CPP( | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7544:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7544:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7544:9)>' requested here 7544 | VFA(valueFlowAfterAssign(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7545:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7545:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7545:9)>' requested here 7545 | VFA_CPP(valueFlowAfterSwap(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7546:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7546:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7546:9)>' requested here 7546 | VFA(valueFlowCondition(SimpleConditionHandler{}, tokenlist, symboldatabase, errorLogger, settings, skippedFunctions)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7547:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7547:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7547:9)>' requested here 7547 | VFA(valueFlowInferCondition(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7548:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7548:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7548:9)>' requested here 7548 | VFA(valueFlowSwitchVariable(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7549:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7549:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7549:9)>' requested here 7549 | VFA(valueFlowForLoop(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7550:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7550:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7550:9)>' requested here 7550 | VFA(valueFlowDynamicBufferSize(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7551:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7551:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7551:9)>' requested here 7551 | VFA(valueFlowSubFunction(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7552:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7552:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7552:9)>' requested here 7552 | VFA(valueFlowFunctionReturn(tokenlist, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7553:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7553:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7553:9)>' requested here 7553 | VFA(valueFlowLifetime(tokenlist, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7554:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7554:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7554:9)>' requested here 7554 | VFA(valueFlowFunctionDefaultParameter(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7555:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7555:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7555:9)>' requested here 7555 | VFA(valueFlowUninit(tokenlist, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7556:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7556:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7556:9)>' requested here 7556 | VFA_CPP(valueFlowAfterMove(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7557:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7557:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7557:9)>' requested here 7557 | VFA_CPP(valueFlowSmartPointer(tokenlist, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7558:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7558:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7558:9)>' requested here 7558 | VFA_CPP(valueFlowIterators(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7559:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7559:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7559:9)>' requested here 7559 | VFA_CPP( | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7561:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7561:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7561:9)>' requested here 7561 | VFA_CPP(valueFlowIteratorInfer(tokenlist, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7562:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7562:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7562:9)>' requested here 7562 | VFA_CPP(valueFlowContainerSize(tokenlist, symboldatabase, errorLogger, settings, skippedFunctions)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7490:22: note: expanded from macro 'VFA_CPP' 7490 | #define VFA_CPP(...) VALUEFLOW_ADAPTOR(true, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7563:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7563:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7563:9)>' requested here 7563 | VFA(valueFlowSafeFunctions(tokenlist, symboldatabase, errorLogger, settings)), | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7454:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 7454 | ValueFlowPassAdaptor(const char* pname, bool pcpp, F prun) : ValueFlowPass(), mName(pname), mCPP(pcpp), mRun(prun) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7470:12: note: in instantiation of member function 'ValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7567:9)>::ValueFlowPassAdaptor' requested here 7470 | return {name, cpp, run}; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7567:9: note: in instantiation of function template specialization 'makeValueFlowPassAdaptor<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7567:9)>' requested here 7567 | VFA(valueFlowDebug(tokenlist, errorLogger, settings)), // TODO: add option to print it after each step/iteration | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7489:18: note: expanded from macro 'VFA' 7489 | #define VFA(...) VALUEFLOW_ADAPTOR(false, __VA_ARGS__) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7474:5: note: expanded from macro 'VALUEFLOW_ADAPTOR' 7474 | makeValueFlowPassAdaptor(#__VA_ARGS__, \ | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/valueflow.cpp:7451:17: note: escapes to this field 7451 | const char* mName = nullptr; | ~~~~~~~~~~~~^~~~~ 103 warnings generated. [167/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkersidmapping.cpp [168/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkersreport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.h:31:44: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 31 | CheckersReport(const Settings& settings, const std::set& activeCheckers); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.h:40:21: note: escapes to this field 40 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.h:31:89: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 31 | CheckersReport(const Settings& settings, const std::set& activeCheckers); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.h:41:34: note: escapes to this field 41 | const std::set& mActiveCheckers; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkersreport.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp:43:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 43 | return addonInfo.name == MatchCompiler::makeConstString("misra"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp:53:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 53 | if (rule == MatchCompiler::makeConstString("1.1")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp:65:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 65 | if (rule == MatchCompiler::makeConstString("8.13")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<18>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp:201:67: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<18U>' requested here 201 | if (mSettings.premium && addonInfo.name == MatchCompiler::makeConstString("premiumaddon.json")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 6 warnings generated. [169/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkers.cpp [170/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp:28: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("try"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp:18:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp:24:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 24 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<19>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp:39:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<19U>' requested here 39 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("uncaught_exception"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkexceptionsafety.cpp:102:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 102 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("catch"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp:106:46: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 106 | if (tok->str() != MatchCompiler::makeConstString("delete")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp:262:62: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 262 | called->noexceptArg->str() != MatchCompiler::makeConstString("true")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 24 warnings generated. [171/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkimpl.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ 4 warnings generated. [172/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("Token"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:18:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 18 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:24:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:36:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 36 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("findmatch"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:54:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 54 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("simpleMatch")) || (tok->str() == MatchCompiler::makeConstString("Match")) || (tok->str() == MatchCompiler::makeConstString("findsimplematch")) || (tok->str() == MatchCompiler::makeConstString("findmatch")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:54:173: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 54 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("simpleMatch")) || (tok->str() == MatchCompiler::makeConstString("Match")) || (tok->str() == MatchCompiler::makeConstString("findsimplematch")) || (tok->str() == MatchCompiler::makeConstString("findmatch")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:132:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 132 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("previous"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:144:111: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 144 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("previous")) || (tok->str() == MatchCompiler::makeConstString("next")) || (tok->str() == MatchCompiler::makeConstString("tokAt")) || (tok->str() == MatchCompiler::makeConstString("str")) || (tok->str() == MatchCompiler::makeConstString("strAt")) || (tok->str() == MatchCompiler::makeConstString("link")) || (tok->str() == MatchCompiler::makeConstString("linkAt")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:144:228: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 144 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("previous")) || (tok->str() == MatchCompiler::makeConstString("next")) || (tok->str() == MatchCompiler::makeConstString("tokAt")) || (tok->str() == MatchCompiler::makeConstString("str")) || (tok->str() == MatchCompiler::makeConstString("strAt")) || (tok->str() == MatchCompiler::makeConstString("link")) || (tok->str() == MatchCompiler::makeConstString("linkAt")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkinternal.cpp:144:402: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 144 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("previous")) || (tok->str() == MatchCompiler::makeConstString("next")) || (tok->str() == MatchCompiler::makeConstString("tokAt")) || (tok->str() == MatchCompiler::makeConstString("str")) || (tok->str() == MatchCompiler::makeConstString("strAt")) || (tok->str() == MatchCompiler::makeConstString("link")) || (tok->str() == MatchCompiler::makeConstString("linkAt")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 10 warnings generated. [173/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:240:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 240 | explicit Usage(const Variable *var) : var(var) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:243:25: note: escapes to this field 243 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:31: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:713:119: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 713 | std::transform(scope->varlist.cbegin(), scope->varlist.cend(), std::back_inserter(varList), [](const Variable& var) { | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:714:16: note: param returned here 714 | return &var; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2495:42: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2495 | auto getFuncTok = [](const Token* tok) -> const Token* { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2502:20: note: param returned here 2502 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2804:56: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2804 | VarInfo(const Variable *_var, const Token *_tok) | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2808:22: note: escapes to this field 2808 | const Token *tok; | ~~~~~~~~~~~~~^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2804:37: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2804 | VarInfo(const Variable *_var, const Token *_tok) | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2807:25: note: escapes to this field 2807 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2985:31: note: in instantiation of function template specialization 'utils::as_const>>' requested here 2985 | const auto found = utils::as_const(virtualFunctionCallsMap).find(&function); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:322:87: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 322 | std::map> & virtualFunctionCallsMap); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2993:16: note: param returned here 2993 | return virtualFunctionCalls; | ^~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3139:89: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3139 | DuplMemberInfo(const Variable* cv, const Variable* pcv, const Type::BaseInfo* pc) : classVar(cv), parentClassVar(pcv), parentClass(pc) {} | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3142:31: note: escapes to this field 3142 | const Type::BaseInfo* parentClass; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3139:63: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3139 | DuplMemberInfo(const Variable* cv, const Variable* pcv, const Type::BaseInfo* pc) : classVar(cv), parentClassVar(pcv), parentClass(pc) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3141:25: note: escapes to this field 3141 | const Variable* parentClassVar; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3139:42: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3139 | DuplMemberInfo(const Variable* cv, const Variable* pcv, const Type::BaseInfo* pc) : classVar(cv), parentClassVar(pcv), parentClass(pc) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3140:25: note: escapes to this field 3140 | const Variable* classVar; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3145:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3145 | DuplMemberFuncInfo(const Function* cf, const Function* pcf, const Type::BaseInfo* pc) : classFunc(cf), parentClassFunc(pcf), parentClass(pc) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3147:25: note: escapes to this field 3147 | const Function* parentClassFunc; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3145:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3145 | DuplMemberFuncInfo(const Function* cf, const Function* pcf, const Type::BaseInfo* pc) : classFunc(cf), parentClassFunc(pcf), parentClass(pc) {} | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3148:31: note: escapes to this field 3148 | const Type::BaseInfo* parentClass; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3145:46: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 3145 | DuplMemberFuncInfo(const Function* cf, const Function* pcf, const Type::BaseInfo* pc) : classFunc(cf), parentClassFunc(pcf), parentClass(pc) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3146:25: note: escapes to this field 3146 | const Function* classFunc; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:15:129: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString(">"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:33:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 33 | if (!tok || !((tok->tokType() == Token::eEllipsis) && tok->str() == MatchCompiler::makeConstString("..."))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:93:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 93 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("delete"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:237:95: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 237 | if (!tok || !(((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString(">>")) || ((tok->tokType() == Token::eBitOp) && tok->str() == MatchCompiler::makeConstString("&")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:268:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 268 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("this"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:524:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 524 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("operator="))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:544:183: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 544 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:696:169: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 696 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memset")) || (tok->str() == MatchCompiler::makeConstString("memcpy")) || (tok->str() == MatchCompiler::makeConstString("memmove")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1129:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 1129 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<23>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1129:117: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<23U>' requested here 1129 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1141:404: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 1141 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("size")) || (tok->str() == MatchCompiler::makeConstString("empty")) || (tok->str() == MatchCompiler::makeConstString("cend")) || (tok->str() == MatchCompiler::makeConstString("crend")) || (tok->str() == MatchCompiler::makeConstString("cbegin")) || (tok->str() == MatchCompiler::makeConstString("crbegin")) || (tok->str() == MatchCompiler::makeConstString("max_size")) || (tok->str() == MatchCompiler::makeConstString("length")) || (tok->str() == MatchCompiler::makeConstString("count")) || (tok->str() == MatchCompiler::makeConstString("capacity")) || (tok->str() == MatchCompiler::makeConstString("get_allocator")) || (tok->str() == MatchCompiler::makeConstString("c_str")) || (tok->str() == MatchCompiler::makeConstString("str")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1141:647: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 1141 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("size")) || (tok->str() == MatchCompiler::makeConstString("empty")) || (tok->str() == MatchCompiler::makeConstString("cend")) || (tok->str() == MatchCompiler::makeConstString("crend")) || (tok->str() == MatchCompiler::makeConstString("cbegin")) || (tok->str() == MatchCompiler::makeConstString("crbegin")) || (tok->str() == MatchCompiler::makeConstString("max_size")) || (tok->str() == MatchCompiler::makeConstString("length")) || (tok->str() == MatchCompiler::makeConstString("count")) || (tok->str() == MatchCompiler::makeConstString("capacity")) || (tok->str() == MatchCompiler::makeConstString("get_allocator")) || (tok->str() == MatchCompiler::makeConstString("c_str")) || (tok->str() == MatchCompiler::makeConstString("str")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1195:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 1195 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1195:114: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 1195 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1195:178: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 1195 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1195:244: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 1195 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<22>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:385:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<22U>' requested here 385 | return type == MatchCompiler::makeConstString("std::initializer_list") || type == MatchCompiler::makeConstString("std::nullptr_t"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:662:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 662 | template MAYBE_UNUSED static inline T * findmatch55(T * start_tok, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:1354:32: note: in instantiation of function template specialization 'findmatch55' requested here 1354 | const Token* tok = findmatch55(scope->bodyStart, var.declarationId()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:673:12: note: param returned here 673 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:678:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 678 | template MAYBE_UNUSED static inline T * findmatch56(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:1378:13: note: in instantiation of function template specialization 'findmatch56' requested here 1378 | if (findmatch56(scope->bodyStart, scope->bodyEnd) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:690:12: note: param returned here 690 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:976:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 976 | template MAYBE_UNUSED static inline T * findmatch84(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:2169:15: note: in instantiation of function template specialization 'findmatch84' requested here 2169 | tok = findmatch84(tok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:988:12: note: param returned here 988 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1269:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1269 | template MAYBE_UNUSED static inline T * findmatch115(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp:3389:30: note: in instantiation of function template specialization 'findmatch115' requested here 3389 | const Token* const end = findmatch115(start) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkclass.cpp:1275:12: note: param returned here 1275 | return start_tok; | ^~~~~~~~~ 51 warnings generated. [174/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.cpp:34: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:24:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 24 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("alloca"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:138:95: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 138 | if (!tok || !(((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("<<")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString(">>")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("*")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:144:121: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 144 | if (!tok || !((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("void"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:180:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 180 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:195:185: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 195 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("case")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("default")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkfunctions.cpp:273:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 273 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("log")) || (tok->str() == MatchCompiler::makeConstString("logf")) || (tok->str() == MatchCompiler::makeConstString("logl")) || (tok->str() == MatchCompiler::makeConstString("log10")) || (tok->str() == MatchCompiler::makeConstString("log10f")) || (tok->str() == MatchCompiler::makeConstString("log10l")) || (tok->str() == MatchCompiler::makeConstString("log2")) || (tok->str() == MatchCompiler::makeConstString("log2f")) || (tok->str() == MatchCompiler::makeConstString("log2l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 24 warnings generated. [175/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:18:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 18 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:30:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 30 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("."))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:42:47: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 42 | if (tok && ((tok->str() == MatchCompiler::makeConstString("std")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:46:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 46 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("nothrow"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:67:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 67 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("open")) || (tok->str() == MatchCompiler::makeConstString("openat")) || (tok->str() == MatchCompiler::makeConstString("creat")) || (tok->str() == MatchCompiler::makeConstString("mkstemp")) || (tok->str() == MatchCompiler::makeConstString("mkostemp")) || (tok->str() == MatchCompiler::makeConstString("socket")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:67:107: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 67 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("open")) || (tok->str() == MatchCompiler::makeConstString("openat")) || (tok->str() == MatchCompiler::makeConstString("creat")) || (tok->str() == MatchCompiler::makeConstString("mkstemp")) || (tok->str() == MatchCompiler::makeConstString("mkostemp")) || (tok->str() == MatchCompiler::makeConstString("socket")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:67:167: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 67 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("open")) || (tok->str() == MatchCompiler::makeConstString("openat")) || (tok->str() == MatchCompiler::makeConstString("creat")) || (tok->str() == MatchCompiler::makeConstString("mkstemp")) || (tok->str() == MatchCompiler::makeConstString("mkostemp")) || (tok->str() == MatchCompiler::makeConstString("socket")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:67:287: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 67 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("open")) || (tok->str() == MatchCompiler::makeConstString("openat")) || (tok->str() == MatchCompiler::makeConstString("creat")) || (tok->str() == MatchCompiler::makeConstString("mkstemp")) || (tok->str() == MatchCompiler::makeConstString("mkostemp")) || (tok->str() == MatchCompiler::makeConstString("socket")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:111:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 111 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("fcloseall"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:161:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 161 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("\"/dev/null\""))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:673:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 673 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("shared_ptr")) || (tok->str() == MatchCompiler::makeConstString("unique_ptr")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:266:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 266 | template MAYBE_UNUSED static inline T * findmatch25(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:463:21: note: in instantiation of function template specialization 'findmatch25' requested here 463 | if (findmatch25(scope->bodyStart, tok, tok->varId()) || | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:283:12: note: param returned here 283 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:288:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 288 | template MAYBE_UNUSED static inline T * findmatch26(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:464:21: note: in instantiation of function template specialization 'findmatch26' requested here 464 | findmatch26(scope->bodyStart, tok, tok->varId()) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:307:12: note: param returned here 307 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:312:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 312 | template MAYBE_UNUSED static inline T * findmatch27(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:466:45: note: in instantiation of function template specialization 'findmatch27' requested here 466 | if (const Token* storeTok = findmatch27(scope->bodyStart, tok, tok->varId()) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:332:12: note: param returned here 332 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:471:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 471 | template MAYBE_UNUSED static inline T * findmatch40(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:852:29: note: in instantiation of function template specialization 'findmatch40' requested here 852 | if (findmatch40(condBeg, condBeg->link(), assignToks.first->varId()) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:482:12: note: param returned here 482 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:643:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 643 | template MAYBE_UNUSED static inline T * findmatch54(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp:1122:42: note: in instantiation of function template specialization 'findmatch54' requested here 1122 | const Token * closingBrace = findmatch54(tok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkmemoryleak.cpp:649:12: note: param returned here 649 | return start_tok; | ^~~~~~~~~ 33 warnings generated. [176/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.h:53:96: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 53 | explicit AllocInfo(int type_ = 0, AllocStatus status_ = NOALLOC, const Token* allocTok_ = nullptr) : status(status_), type(type_), allocTok(allocTok_) {} | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.h:52:23: note: escapes to this field 52 | const Token * allocTok; | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:34: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:429:51: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 429 | auto isAssignment = [](const Token* varTok) -> const Token* { | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:438:28: note: param returned here 438 | return top; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:897:33: note: in instantiation of function template specialization 'utils::as_const>' requested here 897 | const auto var = utils::as_const(varInfo.alloctype).find(tok->varId()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:15:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("sizeof"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:24:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("."))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:27:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 27 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("release"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:54:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 54 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("new"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:102:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 102 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:114:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 114 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("::")) || (tok->str() == MatchCompiler::makeConstString(".")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:231:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 231 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("UNLIKELY")) || (tok->str() == MatchCompiler::makeConstString("LIKELY")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:240:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 240 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:362:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 362 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("unique_ptr"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:347:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 347 | template MAYBE_UNUSED static inline T * findmatch36(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:817:17: note: in instantiation of function template specialization 'findmatch36' requested here 817 | if (findmatch36(ftok->next(), typeEndTok) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:356:12: note: param returned here 356 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:394:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 394 | template MAYBE_UNUSED static inline T * findmatch39(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:837:38: note: in instantiation of function template specialization 'findmatch39' requested here 837 | const Token * dtok = findmatch39(deleterToken, endDeleterToken) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:403:12: note: param returned here 403 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:417:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 417 | template MAYBE_UNUSED static inline T * findmatch41(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp:860:40: note: in instantiation of function template specialization 'findmatch41' requested here 860 | } else if ((dtok = findmatch41(deleterToken, endDeleterToken) ) && dtok->type()) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkleakautovar.cpp:423:12: note: param returned here 423 | return start_tok; | ^~~~~~~~~ 32 warnings generated. [177/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:33: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:53:60: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 53 | Tokenizer(TokenList tokenList, ErrorLogger &errorLogger); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:676:18: note: escapes to this field 676 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:658:47: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 658 | const Token *processFunc(const Token *tok2, bool inOperator) const; | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:498:12: note: param returned here 498 | return tok2; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:561:55: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 561 | explicit TypedefSimplifier(Token* typedefToken) : mTypedefToken(typedefToken) { | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:550:16: note: escapes to this field 550 | Token* mTypedefToken; // The "typedef" token | ~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:1030:45: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1030 | static Token* insertTokens(Token* to, std::pair range) { | ~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:1038:20: note: param returned here 1038 | return to; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2477:95: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2477 | ScopeInfo3(ScopeInfo3 *parent_, Type type_, std::string name_, const Token *bodyStart_, const Token *bodyEnd_) | ~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2496:23: note: escapes to this field 2496 | const Token * bodyStart; | ~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2477:118: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2477 | ScopeInfo3(ScopeInfo3 *parent_, Type type_, std::string name_, const Token *bodyStart_, const Token *bodyEnd_) | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2497:23: note: escapes to this field 2497 | const Token * bodyEnd; | ~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2477:39: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2477 | ScopeInfo3(ScopeInfo3 *parent_, Type type_, std::string name_, const Token *bodyStart_, const Token *bodyEnd_) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2491:21: note: escapes to this field 2491 | ScopeInfo3 *parent; | ~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2502:124: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2502 | ScopeInfo3 *addChild(Type scopeType, std::string scopeName, const Token *bodyStartToken, const Token *bodyEndToken) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2504:20: note: param returned here 2504 | return &children.back(); | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2513:75: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2513 | const ScopeInfo3 * findInChildren(const std::string & scope) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2516:28: note: param returned here 2516 | return &child; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2525:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2525 | const ScopeInfo3 * findScope(const std::string & scope) const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2533:28: note: param returned here 2533 | return &*it; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2569:57: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2569 | ScopeInfo3 * findScope(const ScopeInfo3 * scope) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2571:24: note: param returned here 2571 | return this; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2723:36: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2723 | Token *findSemicolon(Token *tok) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2734:16: note: param returned here 2734 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2954:64: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2954 | static const Token* skipConstVolatileBackwards(const Token* tok) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2957:12: note: param returned here 2957 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2997:39: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2997 | Using(Token *start, Token *end) : startTok(start), endTok(end) {} | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2999:16: note: escapes to this field 2999 | Token *endTok; | ~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2997:27: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2997 | Using(Token *start, Token *end) : startTok(start), endTok(end) {} | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:2998:16: note: escapes to this field 2998 | Token *startTok; | ~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4331:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 4331 | const MapType& map(bool global) const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4332:20: note: param returned here 4332 | return global ? mVariableId_global : mVariableId; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4334:34: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 4334 | MapType& map(bool global) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4335:20: note: param returned here 4335 | return global ? mVariableId_global : mVariableId; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4337:31: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 4337 | nonneg int& getVarId() { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4338:20: note: param returned here 4338 | return mVarId; | ^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4551:40: note: in instantiation of function template specialization 'utils::as_const, int>>' requested here 4551 | const auto it = utils::as_const(members).find(tok->str()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5163:79: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 5163 | Member(std::list s, std::list ns, Token *t) : usingnamespaces(std::move(ns)), scope(std::move(s)), tok(t) {} | ~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5166:16: note: escapes to this field 5166 | Token *tok; | ~~~~~~~^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5178:109: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 5178 | static Token * matchMemberName(const std::list &scope, const Token *nsToken, Token *memberToken, const std::list &scopeInfo) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5223:12: note: param returned here 5223 | return match348(memberToken) ? memberToken : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5318:40: note: in instantiation of function template specialization 'utils::as_const>>' requested here 5318 | const auto it = utils::as_const(endOfScope).find(tok); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:214:51: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 214 | Token * simplifyAddBracesToCommand(Token * tok); | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:6992:12: note: param returned here 6992 | return tokEnd; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:222:45: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 222 | Token * simplifyAddBracesPair(Token *tok, bool commandWithCondition); | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:6999:16: note: param returned here 6999 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:176:49: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 176 | RET_NONNULL static Token* initVar(Token* tok); | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:8059:20: note: param returned here 8059 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9597:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 9597 | static Token* getTokenAfterAttributes(Token* tok, bool gccattr) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9601:12: note: param returned here 9601 | return after; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:11226:39: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 11226 | static Token * deleteAlias(Token * tok) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:11236:12: note: param returned here 11236 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:15:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:21:66: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 21 | if (!tok || !(tok->isName() || (tok->str() == MatchCompiler::makeConstString("::")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(":")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:27:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 27 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("class"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:33:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 33 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("enum"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:39:147: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 39 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("enum")) || tok->isName() || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString(">")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString(">>")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:72:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 72 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("public")) || (tok->str() == MatchCompiler::makeConstString("private")) || (tok->str() == MatchCompiler::makeConstString("protected")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:72:170: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 72 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("public")) || (tok->str() == MatchCompiler::makeConstString("private")) || (tok->str() == MatchCompiler::makeConstString("protected")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:84:110: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 84 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("public:")) || (tok->str() == MatchCompiler::makeConstString("private:")) || (tok->str() == MatchCompiler::makeConstString("protected:")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:84:172: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 84 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("public:")) || (tok->str() == MatchCompiler::makeConstString("private:")) || (tok->str() == MatchCompiler::makeConstString("protected:")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:111:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 111 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("new")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:2032:233: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 2032 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("private")) || (tok->str() == MatchCompiler::makeConstString("protected")) || (tok->str() == MatchCompiler::makeConstString("public")) || (tok->str() == MatchCompiler::makeConstString("__published")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<31>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:2203:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<31U>' requested here 2203 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("__CPPCHECK_EMBEDDED_SQL_EXEC__"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3779:113: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 3779 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3779:179: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 3779 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:4263:244: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 4263 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("switch")) || (tok->str() == MatchCompiler::makeConstString("BOOST_FOREACH")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:6857:114: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 6857 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("constructor")) || (tok->str() == MatchCompiler::makeConstString("__constructor__")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:6869:113: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 6869 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("destructor")) || (tok->str() == MatchCompiler::makeConstString("__destructor__")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<19>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:6893:584: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<19U>' requested here 6893 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("pure")) || (tok->str() == MatchCompiler::makeConstString("__pure__")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || (tok->str() == MatchCompiler::makeConstString("__const__")) || (tok->str() == MatchCompiler::makeConstString("noreturn")) || (tok->str() == MatchCompiler::makeConstString("__noreturn__")) || (tok->str() == MatchCompiler::makeConstString("nothrow")) || (tok->str() == MatchCompiler::makeConstString("__nothrow__")) || (tok->str() == MatchCompiler::makeConstString("warn_unused_result")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<18>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:6974:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<18U>' requested here 6974 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("__cppcheck_high__"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<20>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7586:246: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<20U>' requested here 7586 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("ZeroMemory")) || (tok->str() == MatchCompiler::makeConstString("RtlZeroMemory")) || (tok->str() == MatchCompiler::makeConstString("RtlZeroBytes")) || (tok->str() == MatchCompiler::makeConstString("RtlSecureZeroMemory")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:402:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 402 | template MAYBE_UNUSED static inline T * findmatch48(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:589:74: note: in instantiation of function template specialization 'findmatch48' requested here 589 | const std::pair rangeBefore(start, findmatch48(start) ); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:408:12: note: param returned here 408 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:2002:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2002 | template MAYBE_UNUSED static inline T * findmatch205(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:3639:33: note: in instantiation of function template specialization 'findmatch205' requested here 3639 | const Token *tok2 = findmatch205(tok, tok->link()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:2008:12: note: param returned here 2008 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3072:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3072 | template MAYBE_UNUSED static inline T * findmatch312(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4936:24: note: in instantiation of function template specialization 'findmatch312' requested here 4936 | tok2 = findmatch312(tok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3078:12: note: param returned here 3078 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3110:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3110 | template MAYBE_UNUSED static inline T * findmatch316(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4975:35: note: in instantiation of function template specialization 'findmatch316' requested here 4975 | declTypeTok = findmatch316(tok, tok2) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3119:12: note: param returned here 3119 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3124:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3124 | template MAYBE_UNUSED static inline T * findmatch317(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:4977:35: note: in instantiation of function template specialization 'findmatch317' requested here 4977 | declTypeTok = findmatch317(tok, tok2) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3133:12: note: param returned here 3133 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5263:37: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 5263 | static T* skipInitializerList(T* tok) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5456:32: note: in instantiation of function template specialization 'skipInitializerList' requested here 5456 | tok2 = skipInitializerList(tok2->next()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5271:20: note: param returned here 5271 | return start; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3874:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 3874 | template MAYBE_UNUSED static inline T * findmatch398(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:5776:33: note: in instantiation of function template specialization 'findmatch398' requested here 5776 | if (Token* in = findmatch398(tok->tokAt(2), tok->linkAt(2)) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:3880:12: note: param returned here 3880 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:5332:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 5332 | template MAYBE_UNUSED static inline T * findmatch544(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:8312:17: note: in instantiation of function template specialization 'findmatch544' requested here 8312 | !findmatch544(tok, tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:5338:12: note: param returned here 5338 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:8641:42: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 8641 | static T* skipCPPOrAlignAttribute(T * tok) | ~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9078:19: note: in instantiation of function template specialization 'skipCPPOrAlignAttribute' requested here 9078 | tok = skipCPPOrAlignAttribute(tok); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:8648:12: note: param returned here 8648 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:8641:42: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 8641 | static T* skipCPPOrAlignAttribute(T * tok) | ~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9831:23: note: in instantiation of function template specialization 'skipCPPOrAlignAttribute' requested here 9831 | tok = skipCPPOrAlignAttribute(tok)->next(); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:8648:12: note: param returned here 8648 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:6988:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 6988 | template MAYBE_UNUSED static inline T * findmatch718(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9834:17: note: in instantiation of function template specialization 'findmatch718' requested here 9834 | if (findmatch718(tok->tokAt(2), tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:6994:12: note: param returned here 6994 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7014:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7014 | template MAYBE_UNUSED static inline T * findmatch721(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9843:24: note: in instantiation of function template specialization 'findmatch721' requested here 9843 | } else if (findmatch721(tok->tokAt(2), tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7020:12: note: param returned here 7020 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7025:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7025 | template MAYBE_UNUSED static inline T * findmatch722(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9852:24: note: in instantiation of function template specialization 'findmatch722' requested here 9852 | } else if (findmatch722(tok->tokAt(2), tok->link()) || findmatch723(tok->tokAt(2), tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7031:12: note: param returned here 7031 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7036:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7036 | template MAYBE_UNUSED static inline T * findmatch723(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9852:69: note: in instantiation of function template specialization 'findmatch723' requested here 9852 | } else if (findmatch722(tok->tokAt(2), tok->link()) || findmatch723(tok->tokAt(2), tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7042:12: note: param returned here 7042 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7047:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7047 | template MAYBE_UNUSED static inline T * findmatch724(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9860:54: note: in instantiation of function template specialization 'findmatch724' requested here 9860 | } else if ((hasMaybeUnusedUnderscores && findmatch724(tok->tokAt(2), tok->link()) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7053:12: note: param returned here 7053 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7058:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7058 | template MAYBE_UNUSED static inline T * findmatch725(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9861:46: note: in instantiation of function template specialization 'findmatch725' requested here 9861 | || (hasMaybeUnused && findmatch725(tok->tokAt(2), tok->link()) )) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7064:12: note: param returned here 7064 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7111:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7111 | template MAYBE_UNUSED static inline T * findmatch732(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:9896:24: note: in instantiation of function template specialization 'findmatch732' requested here 9896 | } else if (findmatch732(tok->tokAt(2), tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7117:12: note: param returned here 7117 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7501:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7501 | template MAYBE_UNUSED static inline T * findmatch770(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:10497:23: note: in instantiation of function template specialization 'findmatch770' requested here 10497 | for (Token* tok = findmatch770(list.front()) ; tok; tok = tok->next()) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7516:12: note: param returned here 7516 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7778:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7778 | template MAYBE_UNUSED static inline T * findmatch799(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:10899:23: note: in instantiation of function template specialization 'findmatch799' requested here 10899 | while ((tok = findmatch799(tok) ) != nullptr) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7784:12: note: param returned here 7784 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7992:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 7992 | template MAYBE_UNUSED static inline T * findmatch820(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.cpp:11228:29: note: in instantiation of function template specialization 'findmatch820' requested here 11228 | Token::eraseTokens(tok, findmatch820(tok) ); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenize.cpp:7998:12: note: param returned here 7998 | return start_tok; | ^~~~~~~~~ 90 warnings generated. [178/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.h:94:38: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 94 | ArgumentInfo(const Token *arg, const Settings &settings, bool _isCPP); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.h:108:22: note: escapes to this field 108 | const Token* typeToken{}; | ~~~~~~~~~~~~~^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:18:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 18 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:21:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 21 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("cout")) || (tok->str() == MatchCompiler::makeConstString("cerr")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:24:45: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (tok && tok->str() == MatchCompiler::makeConstString(".")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:69:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:69:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:90:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 90 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fopen_s")) || (tok->str() == MatchCompiler::makeConstString("freopen_s")) || (tok->str() == MatchCompiler::makeConstString("_wfopen_s")) || (tok->str() == MatchCompiler::makeConstString("_wfreopen_s")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:90:110: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 90 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fopen_s")) || (tok->str() == MatchCompiler::makeConstString("freopen_s")) || (tok->str() == MatchCompiler::makeConstString("_wfopen_s")) || (tok->str() == MatchCompiler::makeConstString("_wfreopen_s")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:90:236: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 90 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fopen_s")) || (tok->str() == MatchCompiler::makeConstString("freopen_s")) || (tok->str() == MatchCompiler::makeConstString("_wfopen_s")) || (tok->str() == MatchCompiler::makeConstString("_wfreopen_s")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:261:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 261 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("swprintf"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:276:112: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 276 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("sprintf_s")) || (tok->str() == MatchCompiler::makeConstString("swprintf_s")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:285:114: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 285 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("_snprintf_s")) || (tok->str() == MatchCompiler::makeConstString("_snwprintf_s")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:381:114: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 381 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("static_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("const_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:522:592: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 522 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("vector")) || (tok->str() == MatchCompiler::makeConstString("array")) || (tok->str() == MatchCompiler::makeConstString("bitset")) || (tok->str() == MatchCompiler::makeConstString("deque")) || (tok->str() == MatchCompiler::makeConstString("list")) || (tok->str() == MatchCompiler::makeConstString("forward_list")) || (tok->str() == MatchCompiler::makeConstString("map")) || (tok->str() == MatchCompiler::makeConstString("multimap")) || (tok->str() == MatchCompiler::makeConstString("multiset")) || (tok->str() == MatchCompiler::makeConstString("priority_queue")) || (tok->str() == MatchCompiler::makeConstString("queue")) || (tok->str() == MatchCompiler::makeConstString("set")) || (tok->str() == MatchCompiler::makeConstString("stack")) || (tok->str() == MatchCompiler::makeConstString("hash_map")) || (tok->str() == MatchCompiler::makeConstString("hash_multimap")) || (tok->str() == MatchCompiler::makeConstString("hash_set")) || (tok->str() == MatchCompiler::makeConstString("unordered_map")) || (tok->str() == MatchCompiler::makeConstString("unordered_multimap")) || (tok->str() == MatchCompiler::makeConstString("unordered_set")) || (tok->str() == MatchCompiler::makeConstString("unordered_multiset")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:522:897: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 522 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("vector")) || (tok->str() == MatchCompiler::makeConstString("array")) || (tok->str() == MatchCompiler::makeConstString("bitset")) || (tok->str() == MatchCompiler::makeConstString("deque")) || (tok->str() == MatchCompiler::makeConstString("list")) || (tok->str() == MatchCompiler::makeConstString("forward_list")) || (tok->str() == MatchCompiler::makeConstString("map")) || (tok->str() == MatchCompiler::makeConstString("multimap")) || (tok->str() == MatchCompiler::makeConstString("multiset")) || (tok->str() == MatchCompiler::makeConstString("priority_queue")) || (tok->str() == MatchCompiler::makeConstString("queue")) || (tok->str() == MatchCompiler::makeConstString("set")) || (tok->str() == MatchCompiler::makeConstString("stack")) || (tok->str() == MatchCompiler::makeConstString("hash_map")) || (tok->str() == MatchCompiler::makeConstString("hash_multimap")) || (tok->str() == MatchCompiler::makeConstString("hash_set")) || (tok->str() == MatchCompiler::makeConstString("unordered_map")) || (tok->str() == MatchCompiler::makeConstString("unordered_multimap")) || (tok->str() == MatchCompiler::makeConstString("unordered_set")) || (tok->str() == MatchCompiler::makeConstString("unordered_multiset")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<19>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:522:1093: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<19U>' requested here 522 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("vector")) || (tok->str() == MatchCompiler::makeConstString("array")) || (tok->str() == MatchCompiler::makeConstString("bitset")) || (tok->str() == MatchCompiler::makeConstString("deque")) || (tok->str() == MatchCompiler::makeConstString("list")) || (tok->str() == MatchCompiler::makeConstString("forward_list")) || (tok->str() == MatchCompiler::makeConstString("map")) || (tok->str() == MatchCompiler::makeConstString("multimap")) || (tok->str() == MatchCompiler::makeConstString("multiset")) || (tok->str() == MatchCompiler::makeConstString("priority_queue")) || (tok->str() == MatchCompiler::makeConstString("queue")) || (tok->str() == MatchCompiler::makeConstString("set")) || (tok->str() == MatchCompiler::makeConstString("stack")) || (tok->str() == MatchCompiler::makeConstString("hash_map")) || (tok->str() == MatchCompiler::makeConstString("hash_multimap")) || (tok->str() == MatchCompiler::makeConstString("hash_set")) || (tok->str() == MatchCompiler::makeConstString("unordered_map")) || (tok->str() == MatchCompiler::makeConstString("unordered_multimap")) || (tok->str() == MatchCompiler::makeConstString("unordered_set")) || (tok->str() == MatchCompiler::makeConstString("unordered_multiset")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:110:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 110 | template MAYBE_UNUSED static inline T * findmatch10(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:267:79: note: in instantiation of function template specialization 'findmatch10' requested here 267 | if (!isReturnScope(bodyEnd, mSettings.library) && findmatch10(bodyStart) == nullptr) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:119:12: note: param returned here 119 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:163:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 163 | template MAYBE_UNUSED static inline T * findmatch15(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:534:26: note: in instantiation of function template specialization 'findmatch15' requested here 534 | const Token* found = findmatch15(start, end) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:172:12: note: param returned here 172 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:210:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 210 | template MAYBE_UNUSED static inline T * findmatch18(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp:581:17: note: in instantiation of function template specialization 'findmatch18' requested here 581 | if (findmatch18(bodyStart, bodyEnd) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkio.cpp:216:12: note: param returned here 216 | return start_tok; | ^~~~~~~~~ 37 warnings generated. [179/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:18:89: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 18 | if (!tok || !(((tok->tokType() == Token::eIncDecOp) && tok->str() == MatchCompiler::makeConstString("++")) || ((tok->tokType() == Token::eIncDecOp) && tok->str() == MatchCompiler::makeConstString("--")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:33:186: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 33 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("::")) || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:39:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 39 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:39:111: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 39 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:39:179: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 39 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<23>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkpostfixoperator.cpp:39:249: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<23U>' requested here 39 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 23 warnings generated. [180/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.cpp:32: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:27:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 27 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("snprintf")) || (tok->str() == MatchCompiler::makeConstString("vsnprintf")) || (tok->str() == MatchCompiler::makeConstString("fnprintf")) || (tok->str() == MatchCompiler::makeConstString("vfnprintf")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:27:111: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 27 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("snprintf")) || (tok->str() == MatchCompiler::makeConstString("vsnprintf")) || (tok->str() == MatchCompiler::makeConstString("fnprintf")) || (tok->str() == MatchCompiler::makeConstString("vfnprintf")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:87:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 87 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:90:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 90 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:93:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 93 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("string")) || (tok->str() == MatchCompiler::makeConstString("wstring")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:93:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 93 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("string")) || (tok->str() == MatchCompiler::makeConstString("wstring")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:117:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 117 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("char")) || (tok->str() == MatchCompiler::makeConstString("wchar_t")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checknullpointer.cpp:174:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 174 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")) || (tok->str() == MatchCompiler::makeConstString(";")) || ((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{")) || ((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("}")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(":")) || ((tok->tokType() == Token::eExtendedOp || tok->tokType() == Token::eLambda) && tok->str() == MatchCompiler::makeConstString("[")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(",")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 26 warnings generated. [181/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checks.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checks.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checks.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check64bit.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checks.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:240:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 240 | explicit Usage(const Variable *var) : var(var) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.h:243:25: note: escapes to this field 243 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checks.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.h:53:96: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 53 | explicit AllocInfo(int type_ = 0, AllocStatus status_ = NOALLOC, const Token* allocTok_ = nullptr) : status(status_), type(type_), allocTok(allocTok_) {} | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.h:52:23: note: escapes to this field 52 | const Token * allocTok; | ~~~~~~~~~~~~~~^~~~~~~~ 6 warnings generated. [182/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp:28: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:15:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("sizeof"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:108:169: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 108 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcpy")) || (tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("memmove")) || (tok->str() == MatchCompiler::makeConstString("strncpy")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strncat")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:150:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 150 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("::")) || (tok->str() == MatchCompiler::makeConstString(".")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:200:121: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 200 | if (!tok || !((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("void"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checksizeof.cpp:209:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 209 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("static_cast"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp:90:149: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 90 | if (var && var->isArray() && var->isArgument() && !var->isReference() && !(var->isStlType() && var->getTypeName() == MatchCompiler::makeConstString("std::array"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 24 warnings generated. [183/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.cpp:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:18:126: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp || tok->tokType() == Token::eLambda) && tok->str() == MatchCompiler::makeConstString("["))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:291: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:355: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:538: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:603: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:670: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:1241: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:45:1304: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 45 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("memcmp")) || (tok->str() == MatchCompiler::makeConstString("strncmp")) || (tok->str() == MatchCompiler::makeConstString("strcmp")) || (tok->str() == MatchCompiler::makeConstString("stricmp")) || (tok->str() == MatchCompiler::makeConstString("strverscmp")) || (tok->str() == MatchCompiler::makeConstString("bcmp")) || (tok->str() == MatchCompiler::makeConstString("strcmpi")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp")) || (tok->str() == MatchCompiler::makeConstString("strncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("strcasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp")) || (tok->str() == MatchCompiler::makeConstString("wmemcmp")) || (tok->str() == MatchCompiler::makeConstString("wcscmp")) || (tok->str() == MatchCompiler::makeConstString("wcscasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncasecmp_l")) || (tok->str() == MatchCompiler::makeConstString("wcsncmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp")) || (tok->str() == MatchCompiler::makeConstString("_mbscmp_l")) || (tok->str() == MatchCompiler::makeConstString("_memicmp")) || (tok->str() == MatchCompiler::makeConstString("_memicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_stricmp")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("wcsicmp")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp")) || (tok->str() == MatchCompiler::makeConstString("_stricmp_l")) || (tok->str() == MatchCompiler::makeConstString("_wcsicmp_l")) || (tok->str() == MatchCompiler::makeConstString("_mbsicmp_l")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:87:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 87 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("c_str"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstring.cpp:123:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 123 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 29 warnings generated. [184/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checktype.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp:31: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checktype.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checktype.cpp:21:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 21 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checktype.cpp:36:95: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 36 | if (!tok || !(((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("<<")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString(">>")) || (tok->str() == MatchCompiler::makeConstString("<<=")) || (tok->str() == MatchCompiler::makeConstString(">>=")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checktype.cpp:36:253: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 36 | if (!tok || !(((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("<<")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString(">>")) || (tok->str() == MatchCompiler::makeConstString("<<=")) || (tok->str() == MatchCompiler::makeConstString(">>=")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp:385:46: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 385 | if (tok->str() == MatchCompiler::makeConstString("return")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 21 warnings generated. [185/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedfunctions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedfunctions.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedfunctions.cpp:31: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedfunctions.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedfunctions.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedfunctions.cpp:54:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 54 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedfunctions.cpp:69:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedfunctions.cpp:69:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:46: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedfunctions.cpp:480:42: note: in instantiation of function template specialization 'default_if_null' requested here 480 | const char* column = default_if_null(e2->Attribute("column"), "0"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:38: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ 19 warnings generated. [186/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:32: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:475:40: note: in instantiation of function template specialization 'utils::as_const>' requested here 475 | const auto it = utils::as_const(variableValue).find(condVarTok->varId()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:396:187: warning: parameter 'variableValue' is later invalidated [-Wlifetime-safety-invalidation] 396 | bool CheckUninitVarImpl::checkScopeForVariable(const Token *tok, const Variable& var, bool * const possibleInit, bool * const noreturn, Alloc* const alloc, const std::string &membervar, std::map& variableValue) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:556:39: note: parameter 'variableValue' is invalidated here 556 | variableValue = varValueElse; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:428:105: note: later used here 428 | if (checkScopeForVariable(tok->next(), var, &possibleInitInner, noreturn, alloc, membervar, variableValue)) | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.h:110:60: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 110 | static const Token *isVariableUsage(const Token *vartok, const Library &library, bool pointer, Alloc alloc, int indirect = 0); | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:1262:16: note: param returned here 1262 | return (use>0) ? valueExpr : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:15:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:15:104: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 15 | if (!tok || !((tok->str() == MatchCompiler::makeConstString(".")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:123:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 123 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:129:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 129 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("array"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:263:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 263 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:375:145: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 375 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || (tok->str() == MatchCompiler::makeConstString("setjmp")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:410:285: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 410 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")) || (tok->str() == MatchCompiler::makeConstString("throw")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:289:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 289 | template MAYBE_UNUSED static inline T * findmatch30(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:585:21: note: in instantiation of function template specialization 'findmatch30' requested here 585 | if (findmatch30(tok->tokAt(2), end, var.declarationId()) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:297:12: note: param returned here 297 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:302:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 302 | template MAYBE_UNUSED static inline T * findmatch31(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp:587:24: note: in instantiation of function template specialization 'findmatch31' requested here 587 | } else if (findmatch31(tok->tokAt(2), end, var.declarationId()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkuninitvar.cpp:313:12: note: param returned here 313 | return start_tok; | ^~~~~~~~~ 29 warnings generated. [187/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("va_start"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp:38:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 38 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("va_end"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp:52:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 52 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("va_copy"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkvaarg.cpp:61:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 61 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("throw")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp:145:53: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 145 | } else if (tok->str() == MatchCompiler::makeConstString("goto") || (tok->isCpp() && tok->str() == MatchCompiler::makeConstString("try"))) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp:145:126: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 145 | } else if (tok->str() == MatchCompiler::makeConstString("goto") || (tok->isCpp() && tok->str() == MatchCompiler::makeConstString("try"))) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 24 warnings generated. [188/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:40:50: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | explicit FwdAnalysis(const Settings &settings) : mSettings(settings) {} | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:80:21: note: escapes to this field 80 | const Settings &mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:73:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 73 | Result(Type type, const Token *token) : type(type), token(token) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:74:22: note: escapes to this field 74 | const Token* token{}; | ~~~~~~~~~~~~~^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:106:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 106 | explicit VariableUsage(const Variable *var = nullptr, | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:134:25: note: escapes to this field 134 | const Variable* _var; | ~~~~~~~~~~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:155:64: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 155 | const std::map &varUsage() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:156:16: note: param returned here 156 | return mVarUsage; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:168:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 168 | VariableUsage *find(nonneg int varid); | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:397:20: note: param returned here 397 | return &i->second; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:402:72: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 402 | static const Token* doAssignment(Variables &variables, const Token *tok, bool dereference, const Scope *scope) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:485:28: note: param returned here 485 | return tokOld; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:661:51: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 661 | static const Token * skipBrackets(const Token *tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:665:12: note: param returned here 665 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:670:61: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 670 | static const Token * skipBracketsAndMembers(const Token *tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:680:12: note: param returned here 680 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:15:92: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eAssignmentOp) && tok->str() == MatchCompiler::makeConstString("="))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:54:86: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 54 | if (tok && (((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:56:86: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 56 | if (tok && (((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:205:121: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 205 | if (!tok || !((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:256:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 256 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:360:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 360 | if (tok && (((tok->tokType() == Token::eIncDecOp) && tok->str() == MatchCompiler::makeConstString("++")) || ((tok->tokType() == Token::eIncDecOp) && tok->str() == MatchCompiler::makeConstString("--")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:449:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 449 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("nothrow"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:811:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 811 | template MAYBE_UNUSED static inline T * findmatch73(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp:1577:66: note: in instantiation of function template specialization 'findmatch73' requested here 1577 | for (const Token *tok = scope.bodyEnd; nullptr != (tok = findmatch73(tok) );) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkunusedvar.cpp:820:12: note: param returned here 820 | return start_tok; | ^~~~~~~~~ 33 warnings generated. [189/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_color.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/color.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/color.h:38:54: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 38 | CPPCHECKLIB std::ostream& operator<<(std::ostream& os, Color c); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/color.cpp:70:12: note: param returned here 70 | return os; | ^~ 1 warning generated. [190/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:40:50: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | explicit FwdAnalysis(const Settings &settings) : mSettings(settings) {} | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:80:21: note: escapes to this field 80 | const Settings &mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:73:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 73 | Result(Type type, const Token *token) : type(type), token(token) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:74:22: note: escapes to this field 74 | const Token* token{}; | ~~~~~~~~~~~~~^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:32: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:856:40: note: in instantiation of function template specialization 'utils::as_const>' requested here 856 | const auto i2 = utils::as_const(varsWithBitsSet).find(tok2->varId()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:2620:51: warning: parameter 'typeStr' is later invalidated [-Wlifetime-safety-invalidation] 2620 | auto getConstructorTok = [](const Token* tok, std::string& typeStr) -> const Token* { | ^~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:2624:17: note: parameter 'typeStr' is invalidated here 2624 | typeStr.clear(); | ~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:2626:13: note: later used here 2626 | typeStr += tok->str(); | ^~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:2855:44: note: in instantiation of function template specialization 'utils::as_const>' requested here 2855 | const auto alloc1 = utils::as_const(inconclusive).find(var1); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:4575:40: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 4575 | UnionMember(const std::string &name, size_t size) | ~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:4579:24: note: escapes to this field 4579 | const std::string &name; | ~~~~~~~~~~~~~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:4584:38: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 4584 | explicit Union(const Scope &scope) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:4588:18: note: escapes to this field 4588 | const Scope *scope; | ~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:4592:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 4592 | const UnionMember *largestMember() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:4600:16: note: param returned here 4600 | return largest; | ^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:15:72: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 15 | if (!tok || !((tok->varId() != 0) || (tok->str() == MatchCompiler::makeConstString("EOF")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:18:118: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !(tok->isComparisonOp() || ((tok->tokType() == Token::eAssignmentOp) && tok->str() == MatchCompiler::makeConstString("=")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:30:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 30 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fclose")) || (tok->str() == MatchCompiler::makeConstString("fflush")) || (tok->str() == MatchCompiler::makeConstString("fputc")) || (tok->str() == MatchCompiler::makeConstString("fputs")) || (tok->str() == MatchCompiler::makeConstString("fscanf")) || (tok->str() == MatchCompiler::makeConstString("getchar")) || (tok->str() == MatchCompiler::makeConstString("getc")) || (tok->str() == MatchCompiler::makeConstString("fgetc")) || (tok->str() == MatchCompiler::makeConstString("putchar")) || (tok->str() == MatchCompiler::makeConstString("putc")) || (tok->str() == MatchCompiler::makeConstString("puts")) || (tok->str() == MatchCompiler::makeConstString("scanf")) || (tok->str() == MatchCompiler::makeConstString("sscanf")) || (tok->str() == MatchCompiler::makeConstString("ungetc")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:30:169: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 30 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fclose")) || (tok->str() == MatchCompiler::makeConstString("fflush")) || (tok->str() == MatchCompiler::makeConstString("fputc")) || (tok->str() == MatchCompiler::makeConstString("fputs")) || (tok->str() == MatchCompiler::makeConstString("fscanf")) || (tok->str() == MatchCompiler::makeConstString("getchar")) || (tok->str() == MatchCompiler::makeConstString("getc")) || (tok->str() == MatchCompiler::makeConstString("fgetc")) || (tok->str() == MatchCompiler::makeConstString("putchar")) || (tok->str() == MatchCompiler::makeConstString("putc")) || (tok->str() == MatchCompiler::makeConstString("puts")) || (tok->str() == MatchCompiler::makeConstString("scanf")) || (tok->str() == MatchCompiler::makeConstString("sscanf")) || (tok->str() == MatchCompiler::makeConstString("ungetc")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:30:347: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 30 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fclose")) || (tok->str() == MatchCompiler::makeConstString("fflush")) || (tok->str() == MatchCompiler::makeConstString("fputc")) || (tok->str() == MatchCompiler::makeConstString("fputs")) || (tok->str() == MatchCompiler::makeConstString("fscanf")) || (tok->str() == MatchCompiler::makeConstString("getchar")) || (tok->str() == MatchCompiler::makeConstString("getc")) || (tok->str() == MatchCompiler::makeConstString("fgetc")) || (tok->str() == MatchCompiler::makeConstString("putchar")) || (tok->str() == MatchCompiler::makeConstString("putc")) || (tok->str() == MatchCompiler::makeConstString("puts")) || (tok->str() == MatchCompiler::makeConstString("scanf")) || (tok->str() == MatchCompiler::makeConstString("sscanf")) || (tok->str() == MatchCompiler::makeConstString("ungetc")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:30:408: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 30 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("fclose")) || (tok->str() == MatchCompiler::makeConstString("fflush")) || (tok->str() == MatchCompiler::makeConstString("fputc")) || (tok->str() == MatchCompiler::makeConstString("fputs")) || (tok->str() == MatchCompiler::makeConstString("fscanf")) || (tok->str() == MatchCompiler::makeConstString("getchar")) || (tok->str() == MatchCompiler::makeConstString("getc")) || (tok->str() == MatchCompiler::makeConstString("fgetc")) || (tok->str() == MatchCompiler::makeConstString("putchar")) || (tok->str() == MatchCompiler::makeConstString("putc")) || (tok->str() == MatchCompiler::makeConstString("puts")) || (tok->str() == MatchCompiler::makeConstString("scanf")) || (tok->str() == MatchCompiler::makeConstString("sscanf")) || (tok->str() == MatchCompiler::makeConstString("ungetc")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:81:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 81 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:252:186: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 252 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("volatile")) || (tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")) || (tok->isName() && tok->varId() == 0U) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:316:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 316 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("reinterpret_cast"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1038:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 1038 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("dynamic_cast"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1357:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 1357 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("static_assert"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1363:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 1363 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("_Static_assert"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1468:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 1468 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("isgreater")) || (tok->str() == MatchCompiler::makeConstString("isless")) || (tok->str() == MatchCompiler::makeConstString("islessgreater")) || (tok->str() == MatchCompiler::makeConstString("isgreaterequal")) || (tok->str() == MatchCompiler::makeConstString("islessequal")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1468:307: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 1468 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("isgreater")) || (tok->str() == MatchCompiler::makeConstString("isless")) || (tok->str() == MatchCompiler::makeConstString("islessgreater")) || (tok->str() == MatchCompiler::makeConstString("isgreaterequal")) || (tok->str() == MatchCompiler::makeConstString("islessequal")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<21>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1602:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<21U>' requested here 1602 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("InterlockedDecrement"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:513:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 513 | template MAYBE_UNUSED static inline T * findmatch44(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:1051:28: note: in instantiation of function template specialization 'findmatch44' requested here 1051 | if (const Token* end = findmatch44(tok) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:519:12: note: param returned here 519 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:596:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 596 | template MAYBE_UNUSED static inline T * findmatch55(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:1137:27: note: in instantiation of function template specialization 'findmatch55' requested here 1137 | tok = findmatch55(secondBreak) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:602:12: note: param returned here 602 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:619:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 619 | template MAYBE_UNUSED static inline T * findmatch58(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:1151:47: note: in instantiation of function template specialization 'findmatch58' requested here 1151 | const Token *scope2 = findmatch58(secondBreak) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:625:12: note: param returned here 625 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:770:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 770 | template MAYBE_UNUSED static inline T * findmatch73(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:1401:13: note: in instantiation of function template specialization 'findmatch73' requested here 1401 | return !findmatch73(tok->scope()->bodyEnd, var->scope()->bodyEnd, var->declarationId()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:778:12: note: param returned here 778 | return start_tok; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<26>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:1589:55: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<26U>' requested here 1589 | if (vt->container->startPattern == MatchCompiler::makeConstString("std :: initializer_list <")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:1595:59: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 1595 | if (vt->container->startPattern == MatchCompiler::makeConstString("std :: bitset <")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1345:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1345 | template MAYBE_UNUSED static inline T * findmatch138(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp:2868:37: note: in instantiation of function template specialization 'findmatch138' requested here 2868 | const Token* tok2 = findmatch138(tok->next(), tok->linkAt(1)) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkother.cpp:1351:12: note: param returned here 1351 | return start_tok; | ^~~~~~~~~ 47 warnings generated. [191/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.h:37:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 37 | explicit PathAnalysis(const Token* start) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.h:59:19: note: escapes to this field 59 | const Token * mStart; | ~~~~~~~~~~~~~~^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:30: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:400:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 400 | static const Token *skipMembers(const Token *tok) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:404:12: note: param returned here 404 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:742:127: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 742 | auto findIterVal = [](const std::vector& values, const std::vector::const_iterator beg) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:743:16: note: param returned here 743 | return std::find_if(beg, values.cend(), [](const ValueFlow::Value& v) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 744 | return v.lifetimeKind == ValueFlow::Value::LifetimeKind::Iterator; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 745 | }); | ~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:1641:57: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1641 | static const Token* skipLocalVars(const Token* const tok) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:1644:16: note: param returned here 1644 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2888:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 2888 | explicit LoopAnalyzer(const Token* tok, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2884:25: note: escapes to this field 2884 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("."))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:78:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 78 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")) || ((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:78:111: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 78 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")) || ((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:78:179: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 78 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")) || ((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<23>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:78:249: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<23U>' requested here 78 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")) || ((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:78:398: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 78 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("iterator")) || (tok->str() == MatchCompiler::makeConstString("const_iterator")) || (tok->str() == MatchCompiler::makeConstString("reverse_iterator")) || (tok->str() == MatchCompiler::makeConstString("const_reverse_iterator")) || ((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:84:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 84 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:87:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 87 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:90:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 90 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("vector"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:108:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 108 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("insert")) || (tok->str() == MatchCompiler::makeConstString("erase")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:192:228: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 192 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("begin")) || (tok->str() == MatchCompiler::makeConstString("rbegin")) || (tok->str() == MatchCompiler::makeConstString("cbegin")) || (tok->str() == MatchCompiler::makeConstString("crbegin")) || (tok->str() == MatchCompiler::makeConstString("find")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<18>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1364:227: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<18U>' requested here 1364 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("compare")) || (tok->str() == MatchCompiler::makeConstString("find")) || (tok->str() == MatchCompiler::makeConstString("rfind")) || (tok->str() == MatchCompiler::makeConstString("find_first_not_of")) || (tok->str() == MatchCompiler::makeConstString("find_first_of")) || (tok->str() == MatchCompiler::makeConstString("find_last_not_of")) || (tok->str() == MatchCompiler::makeConstString("find_last_of")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1364:298: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 1364 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("compare")) || (tok->str() == MatchCompiler::makeConstString("find")) || (tok->str() == MatchCompiler::makeConstString("rfind")) || (tok->str() == MatchCompiler::makeConstString("find_first_not_of")) || (tok->str() == MatchCompiler::makeConstString("find_first_of")) || (tok->str() == MatchCompiler::makeConstString("find_last_not_of")) || (tok->str() == MatchCompiler::makeConstString("find_last_of")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1364:435: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 1364 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("compare")) || (tok->str() == MatchCompiler::makeConstString("find")) || (tok->str() == MatchCompiler::makeConstString("rfind")) || (tok->str() == MatchCompiler::makeConstString("find_first_not_of")) || (tok->str() == MatchCompiler::makeConstString("find_first_of")) || (tok->str() == MatchCompiler::makeConstString("find_last_not_of")) || (tok->str() == MatchCompiler::makeConstString("find_last_of")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1457:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 1457 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("remove")) || (tok->str() == MatchCompiler::makeConstString("remove_if")) || (tok->str() == MatchCompiler::makeConstString("unique")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1949:110: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 1949 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("copy_if")) || (tok->str() == MatchCompiler::makeConstString("remove_copy")) || (tok->str() == MatchCompiler::makeConstString("remove_copy_if")) || (tok->str() == MatchCompiler::makeConstString("unique_copy")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1958:169: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 1958 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("copy_n")) || (tok->str() == MatchCompiler::makeConstString("fill_n")) || (tok->str() == MatchCompiler::makeConstString("generate_n")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1991:108: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 1991 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("mutex")) || (tok->str() == MatchCompiler::makeConstString("recursive_mutex")) || (tok->str() == MatchCompiler::makeConstString("timed_mutex")) || (tok->str() == MatchCompiler::makeConstString("recursive_timed_mutex")) || (tok->str() == MatchCompiler::makeConstString("shared_mutex")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<22>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1991:242: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<22U>' requested here 1991 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("mutex")) || (tok->str() == MatchCompiler::makeConstString("recursive_mutex")) || (tok->str() == MatchCompiler::makeConstString("timed_mutex")) || (tok->str() == MatchCompiler::makeConstString("recursive_timed_mutex")) || (tok->str() == MatchCompiler::makeConstString("shared_mutex")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:262:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 262 | template MAYBE_UNUSED static inline T * findmatch27(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:625:35: note: in instantiation of function template specialization 'findmatch27' requested here 625 | validatingToken = findmatch27(tok2->next()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:268:12: note: param returned here 268 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:648:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 648 | template MAYBE_UNUSED static inline T * findmatch61(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:1574:28: note: in instantiation of function template specialization 'findmatch61' requested here 1574 | tok2 = findmatch61(tok->variable()->typeStartToken(), tok->variable()->typeEndToken()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:654:12: note: param returned here 654 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1495:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1495 | template MAYBE_UNUSED static inline T * findmatch116(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2457:32: note: in instantiation of function template specialization 'findmatch116' requested here 2457 | startOfCondition = findmatch116(tok->tokAt(2), endOfCondition) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1501:12: note: param returned here 1501 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1506:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1506 | template MAYBE_UNUSED static inline T * findmatch117(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2468:13: note: in instantiation of function template specialization 'findmatch117' requested here 2468 | findmatch117(startOfCondition, endOfCondition) != nullptr; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1512:12: note: param returned here 1512 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1517:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1517 | template MAYBE_UNUSED static inline T * findmatch118(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2470:13: note: in instantiation of function template specialization 'findmatch118' requested here 2470 | findmatch118(startOfCondition, endOfCondition) != nullptr; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1523:12: note: param returned here 1523 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1528:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1528 | template MAYBE_UNUSED static inline T * findmatch119(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2476:17: note: in instantiation of function template specialization 'findmatch119' requested here 2476 | findmatch119(startOfCondition, endOfCondition) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1555:12: note: param returned here 1555 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1560:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1560 | template MAYBE_UNUSED static inline T * findmatch120(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2479:17: note: in instantiation of function template specialization 'findmatch120' requested here 2479 | findmatch120(startOfCondition, endOfCondition) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1587:12: note: param returned here 1587 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1592:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1592 | template MAYBE_UNUSED static inline T * findmatch121(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2489:13: note: in instantiation of function template specialization 'findmatch121' requested here 2489 | findmatch121(startOfCondition, validityCheckTok, iteratorVarId) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1603:12: note: param returned here 1603 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1629:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1629 | template MAYBE_UNUSED static inline T * findmatch125(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2637:24: note: in instantiation of function template specialization 'findmatch125' requested here 2637 | const Token *tok = findmatch125(start, endToken) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1635:12: note: param returned here 1635 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1640:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1640 | template MAYBE_UNUSED static inline T * findmatch126(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2640:33: note: in instantiation of function template specialization 'findmatch126' requested here 2640 | const Token *endStatement = findmatch126(tok, endToken) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1649:12: note: param returned here 1649 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1672:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1672 | template MAYBE_UNUSED static inline T * findmatch129(T * start_tok, const Token * end, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:2675:13: note: in instantiation of function template specialization 'findmatch129' requested here 2675 | input = findmatch129(assignTok->next(), endStatement, varid) || !match112(start->next()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1680:12: note: param returned here 1680 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1891:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1891 | template MAYBE_UNUSED static inline T * findmatch149(T * start_tok, int varid) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp:3044:28: note: in instantiation of function template specialization 'findmatch149' requested here 3044 | const Token* end = findmatch149(tok, varId) ; // TODO: lambdas? | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_checkstl.cpp:1899:12: note: param returned here 1899 | return start_tok; | ^~~~~~~~~ 53 warnings generated. [192/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:27: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:398:62: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 398 | auto isReferenceArg = [&](const Token* argtok) -> const Token* { | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:402:28: note: param returned here 402 | return argtok; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:27:127: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 27 | if (!tok || !(((tok->tokType() == Token::eExtendedOp || tok->tokType() == Token::eLambda) && tok->str() == MatchCompiler::makeConstString("]")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(")")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:42:185: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 42 | if (!tok || !(((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(")")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:62:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 62 | if (!tok || !((tok->tokType() == Token::eLogicalOp && tok->str() == MatchCompiler::makeConstString("||")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("?")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:38: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:423:12: note: in instantiation of function template specialization 'default_if_null' requested here 423 | return default_if_null(p, ""); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:174:12: note: in instantiation of function template specialization 'empty_if_null' requested here 174 | return empty_if_null(value); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:46: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:50:74: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 50 | template MAYBE_UNUSED static inline T * findmatch5(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:454:17: note: in instantiation of function template specialization 'findmatch5' requested here 454 | if (findmatch5(tok2->link(), tok2) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:56:12: note: param returned here 56 | return start_tok; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:54:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 54 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:454:17: note: in instantiation of function template specialization 'findmatch5' requested here 454 | if (findmatch5(tok2->link(), tok2) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_ctu.cpp:54:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 54 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp:454:17: note: in instantiation of function template specialization 'findmatch5' requested here 454 | if (findmatch5(tok2->link(), tok2) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 23 warnings generated. [193/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_errortypes.cpp In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.h:41:35: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 41 | InternalError(const Token *tok, std::string errorMsg, std::string details, Type type = INTERNAL); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.h:43:18: note: escapes to this field 43 | const Token *token; | ~~~~~~~~~~~~~^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_errortypes.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp:80:36: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 80 | if (severity == MatchCompiler::makeConstString("none")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp:82:36: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 82 | if (severity == MatchCompiler::makeConstString("error")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp:84:36: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 84 | if (severity == MatchCompiler::makeConstString("warning")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp:88:36: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 88 | if (severity == MatchCompiler::makeConstString("performance")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp:96:36: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 96 | if (severity == MatchCompiler::makeConstString("internal")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 6 warnings generated. [194/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp:15:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp:15:183: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp:15:279: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_findtoken.cpp:36:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 36 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 5 warnings generated. [195/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:210:39: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 210 | explicit Decl(Scope *scope) : scope(scope) {} | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:227:20: note: escapes to this field 227 | Scope* scope{}; | ~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:211:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 211 | Decl(Token *def, Variable *var) : def(def), var(var) {} | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:224:20: note: escapes to this field 224 | Token* def{}; | ~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:211:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 211 | Decl(Token *def, Variable *var) : def(def), var(var) {} | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:228:23: note: escapes to this field 228 | Variable* var{}; | ~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:212:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 212 | Decl(Token *def, Function *function) : def(def), function(function) {} | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:224:20: note: escapes to this field 224 | Token* def{}; | ~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:212:48: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 212 | Decl(Token *def, Function *function) : def(def), function(function) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:226:23: note: escapes to this field 226 | Function* function{}; | ~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:213:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 213 | Decl(Token *def, Enumerator *enumerator) : def(def), enumerator(enumerator) {} | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:224:20: note: escapes to this field 224 | Token* def{}; | ~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:213:52: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 213 | Decl(Token *def, Enumerator *enumerator) : def(def), enumerator(enumerator) {} | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:225:25: note: escapes to this field 225 | Enumerator* enumerator{}; | ~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:231:38: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 231 | Data(const Settings& settings, SymbolDatabase& symbolDatabase) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:236:25: note: escapes to this field 236 | const Settings &mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:231:70: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 231 | Data(const Settings& settings, SymbolDatabase& symbolDatabase) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:237:25: note: escapes to this field 237 | SymbolDatabase &mSymbolDatabase; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:329:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 329 | AstNode(std::string nodeType, const std::string &ext, Data *data) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:396:15: note: escapes to this field 396 | Data *mData; | ~~~~~~^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp:15:86: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eBitOp) && tok->str() == MatchCompiler::makeConstString("&")) || ((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("*")) || tok->isName())) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp:21:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp:21:183: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp:21:279: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_clangimport.cpp:45:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 45 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("sizeof"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:539:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 539 | if (type == MatchCompiler::makeConstString("'__int128'") || | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<20>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:540:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<20U>' requested here 540 | type == MatchCompiler::makeConstString("'unsigned __int128'") || | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<32>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:541:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<32U>' requested here 541 | type == MatchCompiler::makeConstString("'struct __NSConstantString_tag'") || | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:542:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 542 | type == MatchCompiler::makeConstString("'char *'") || | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<26>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:543:32: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<26U>' requested here 543 | type == MatchCompiler::makeConstString("'struct __va_list_tag[1]'")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:576:43: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 576 | if (ext != MatchCompiler::makeConstString("<") && ext != MatchCompiler::makeConstString("<>")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:750:53: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 750 | if (astNode->nodeType == MatchCompiler::makeConstString("VisibilityAttr")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:946:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 946 | if (mExtTokens[i] == MatchCompiler::makeConstString("prev") && !mData->hasDecl(mExtTokens[i+1])) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:1500:110: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 1500 | if (child->nodeType == MatchCompiler::makeConstString("public") || child->nodeType == MatchCompiler::makeConstString("protected") || child->nodeType == MatchCompiler::makeConstString("private")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:1500:176: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 1500 | if (child->nodeType == MatchCompiler::makeConstString("public") || child->nodeType == MatchCompiler::makeConstString("protected") || child->nodeType == MatchCompiler::makeConstString("private")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp:1641:66: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 1641 | if (!tree.empty() && line.substr(pos1) == MatchCompiler::makeConstString("-<<>>")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 39 warnings generated. [196/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:40:50: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | explicit FwdAnalysis(const Settings &settings) : mSettings(settings) {} | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:80:21: note: escapes to this field 80 | const Settings &mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:73:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 73 | Result(Type type, const Token *token) : type(type), token(token) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.h:74:22: note: escapes to this field 74 | const Token* token{}; | ~~~~~~~~~~~~~^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:45:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 45 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("volatile"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:51:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 51 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("try"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:60:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 60 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:69:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 69 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:75:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 75 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_fwdanalysis.cpp:81:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 81 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("do"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 21 warnings generated. [197/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:49:88: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 49 | ForwardTraversal(const ValuePtr& analyzer, const TokenList& tokenList, ErrorLogger& errorLogger, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:53:26: note: escapes to this field 53 | const TokenList& tokenList; | ~~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:49:140: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 49 | ForwardTraversal(const ValuePtr& analyzer, const TokenList& tokenList, ErrorLogger& errorLogger, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:55:25: note: escapes to this field 55 | const Settings& settings; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:49:114: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 49 | ForwardTraversal(const ValuePtr& analyzer, const TokenList& tokenList, ErrorLogger& errorLogger, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:54:22: note: escapes to this field 54 | ErrorLogger& errorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:74:39: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 74 | explicit Branch(Token* tok = nullptr) : endBlock(tok) {} | ~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:75:20: note: escapes to this field 75 | Token* endBlock = nullptr; | ~~~~~~~^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:265:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 265 | explicit AsUpdate(ForwardTraversal* self) : self(self) {} | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:263:31: note: escapes to this field 263 | ForwardTraversal* self = nullptr; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:287:71: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 287 | AsAnalyze(ForwardTraversal* self, Analyzer::Action* result) : self(self), result(result) {} | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:285:31: note: escapes to this field 285 | Analyzer::Action* result = nullptr; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:287:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 287 | AsAnalyze(ForwardTraversal* self, Analyzer::Action* result) : self(self), result(result) {} | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:284:31: note: escapes to this field 284 | ForwardTraversal* self = nullptr; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:951:42: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 951 | static Token* callExpr(Token* tok) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:961:24: note: param returned here 961 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:15:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:15:184: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:21:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 21 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("setjmp")) || (tok->str() == MatchCompiler::makeConstString("longjmp")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:21:109: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 21 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("setjmp")) || (tok->str() == MatchCompiler::makeConstString("longjmp")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:24:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:30:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 30 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:45:187: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 45 | if (!tok || !(((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("?")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || (tok->tokType() == Token::eLogicalOp && tok->str() == MatchCompiler::makeConstString("||")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:85:184: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 85 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:50:74: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 50 | template MAYBE_UNUSED static inline T * findmatch6(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:350:20: note: in instantiation of function template specialization 'findmatch6' requested here 350 | return findmatch6(endBlock->link(), endBlock) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:56:12: note: param returned here 56 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:61:74: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | template MAYBE_UNUSED static inline T * findmatch7(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp:354:20: note: in instantiation of function template specialization 'findmatch7' requested here 354 | return findmatch7(endBlock->link(), endBlock) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_forwardanalyzer.cpp:67:12: note: param returned here 67 | return start_tok; | ^~~~~~~~~ 31 warnings generated. [198/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_errorlogger.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:342:29: warning: parameter 'oss' is later invalidated [-Wlifetime-safety-invalidation] 342 | static void serializeString(std::string &oss, const std::string & str) | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:344:9: note: parameter 'oss' is invalidated here 344 | oss += std::to_string(str.length()); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:345:5: note: later used here 345 | oss += " "; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:659:33: warning: parameter 'source' is later invalidated [-Wlifetime-safety-invalidation] 659 | static void replaceSpecialChars(std::string& source) | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:679:16: note: parameter 'source' is invalidated here 679 | source.replace(index, 2, replaceWith); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:671:21: note: later used here 671 | while ((index = source.find('\\', index)) != std::string::npos) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:684:21: warning: parameter 'source' is later invalidated [-Wlifetime-safety-invalidation] 684 | static void replace(std::string& source, const std::unordered_map &substitutionMap) | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:698:16: note: parameter 'source' is invalidated here 698 | source.replace(index, searchFor.length(), replaceWith); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:687:21: note: later used here 687 | while ((index = source.find('{', index)) != std::string::npos) { | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_errorlogger.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:77:58: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 77 | return startsWith(id, "ctu") || id == MatchCompiler::makeConstString("unusedFunction") || id == MatchCompiler::makeConstString("staticFunction"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp:301:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 301 | if (t->str() == MatchCompiler::makeConstString(";")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 19 warnings generated. [199/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_infer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:35:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 35 | static const ValueFlow::Value* getCompareValue(const std::list& values, Predicate pred, Compare compare) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:128:48: note: in instantiation of function template specialization 'getCompareValue<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:151:49), std::less>' requested here 128 | const ValueFlow::Value* minValue = getCompareValue(values, predicate, std::less{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:151:30: note: in instantiation of function template specialization '(anonymous namespace)::Interval::fromValues<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:151:49)>' requested here 151 | return Interval::fromValues(values, [](const ValueFlow::Value&) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:48:12: note: param returned here 48 | return result; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:35:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 35 | static const ValueFlow::Value* getCompareValue(const std::list& values, Predicate pred, Compare compare) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:138:48: note: in instantiation of function template specialization 'getCompareValue<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:151:49), std::greater>' requested here 138 | const ValueFlow::Value* maxValue = getCompareValue(values, predicate, std::greater{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:151:30: note: in instantiation of function template specialization '(anonymous namespace)::Interval::fromValues<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:151:49)>' requested here 151 | return Interval::fromValues(values, [](const ValueFlow::Value&) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:48:12: note: param returned here 48 | return result; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_infer.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:305:30: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 305 | if (op == MatchCompiler::makeConstString("-")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:329:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 329 | } else if ((op == MatchCompiler::makeConstString("!=") || op == MatchCompiler::makeConstString("==")) && lhs.isScalarOrEmpty() && rhs.isScalarOrEmpty()) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:35:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 35 | static const ValueFlow::Value* getCompareValue(const std::list& values, Predicate pred, Compare compare) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:128:48: note: in instantiation of function template specialization 'getCompareValue<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:381:41), std::less>' requested here 128 | const ValueFlow::Value* minValue = getCompareValue(values, predicate, std::less{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:381:22: note: in instantiation of function template specialization '(anonymous namespace)::Interval::fromValues<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:381:41)>' requested here 381 | return Interval::fromValues(values, [&](const ValueFlow::Value& v) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:48:12: note: param returned here 48 | return result; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:35:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 35 | static const ValueFlow::Value* getCompareValue(const std::list& values, Predicate pred, Compare compare) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:138:48: note: in instantiation of function template specialization 'getCompareValue<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:381:41), std::greater>' requested here 138 | const ValueFlow::Value* maxValue = getCompareValue(values, predicate, std::greater{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:381:22: note: in instantiation of function template specialization '(anonymous namespace)::Interval::fromValues<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:381:41)>' requested here 381 | return Interval::fromValues(values, [&](const ValueFlow::Value& v) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:48:12: note: param returned here 48 | return result; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:35:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 35 | static const ValueFlow::Value* getCompareValue(const std::list& values, Predicate pred, Compare compare) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:128:48: note: in instantiation of function template specialization 'getCompareValue<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:387:41), std::less>' requested here 128 | const ValueFlow::Value* minValue = getCompareValue(values, predicate, std::less{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:387:22: note: in instantiation of function template specialization '(anonymous namespace)::Interval::fromValues<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:387:41)>' requested here 387 | return Interval::fromValues(values, [&](const ValueFlow::Value& v) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:48:12: note: param returned here 48 | return result; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:35:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 35 | static const ValueFlow::Value* getCompareValue(const std::list& values, Predicate pred, Compare compare) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:138:48: note: in instantiation of function template specialization 'getCompareValue<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:387:41), std::greater>' requested here 138 | const ValueFlow::Value* maxValue = getCompareValue(values, predicate, std::greater{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:387:22: note: in instantiation of function template specialization '(anonymous namespace)::Interval::fromValues<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:387:41)>' requested here 387 | return Interval::fromValues(values, [&](const ValueFlow::Value& v) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp:48:12: note: param returned here 48 | return result; | ^~~~~~ 8 warnings generated. [200/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_keywords.cpp [201/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_cppcheck.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:31: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:35: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:39: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:42: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:75: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:92:44: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 92 | CppCheckLogger(ErrorLogger& errorLogger, const Settings& settings, Suppressions& suppressions, bool useGlobalSuppressions) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:282:18: note: escapes to this field 282 | ErrorLogger &mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:92:70: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 92 | CppCheckLogger(ErrorLogger& errorLogger, const Settings& settings, Suppressions& suppressions, bool useGlobalSuppressions) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:283:21: note: escapes to this field 283 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:92:98: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 92 | CppCheckLogger(ErrorLogger& errorLogger, const Settings& settings, Suppressions& suppressions, bool useGlobalSuppressions) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:284:19: note: escapes to this field 284 | Suppressions& mSuppressions; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:373:28: warning: parameter 'dumpFile' is later invalidated [-Wlifetime-safety-invalidation] 373 | std::string& dumpFile) | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:377:14: note: parameter 'dumpFile' is invalidated here 377 | dumpFile = getDumpFileName(settings, file); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:379:16: note: later used here 379 | fdump.open(dumpFile); | ^~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:74:38: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 74 | ErrorLogger &errorLogger, | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:250:18: note: escapes to this field 250 | ErrorLogger& mErrorLoggerDirect; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:72:38: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 72 | CppCheck(const Settings& settings, | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:242:21: note: escapes to this field 242 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:73:34: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 73 | Suppressions& supprs, | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:243:19: note: escapes to this field 243 | Suppressions& mSuppressions; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:75:40: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 75 | TimerResults* timerResults, | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:251:19: note: escapes to this field 251 | TimerResults* mTimerResults; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:77:41: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 77 | ExecuteCmdFn executeCommand); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:259:18: note: escapes to this field 259 | ExecuteCmdFn mExecuteCommand; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:586:108: warning: parameter 'warnings' is later invalidated [-Wlifetime-safety-invalidation] 586 | static bool reportClangErrors(std::istream &is, const std::function& reportErr, std::vector &warnings) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:625:22: note: parameter 'warnings' is invalidated here 625 | warnings.push_back(std::move(errmsg)); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:625:13: note: later used here 625 | warnings.push_back(std::move(errmsg)); | ^~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:75: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_cppcheck.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp:1581:59: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 1581 | if (isCtuInfo && addonInfo.name != MatchCompiler::makeConstString("misra") && !addonInfo.ctu) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 58 warnings generated. [202/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_mathlib.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/mathlib.cpp:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_mathlib.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/mathlib.cpp:575:29: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 575 | if (s == MatchCompiler::makeConstString("-0")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/mathlib.cpp:1088:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 1088 | if (suffix1 == MatchCompiler::makeConstString("ULL") || suffix2 == MatchCompiler::makeConstString("ULL")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/mathlib.cpp:1094:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 1094 | if (suffix1 == MatchCompiler::makeConstString("L") || suffix2 == MatchCompiler::makeConstString("L")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 13 warnings generated. [203/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_path.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/path.cpp:39: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_path.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/path.cpp:331:34: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 331 | if (marker == MatchCompiler::makeConstString("C++") || marker == MatchCompiler::makeConstString("c++")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/path.cpp:360:31: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 360 | if (ext == MatchCompiler::makeConstString(".C")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 12 warnings generated. [204/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.h:37:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 37 | explicit PathAnalysis(const Token* start) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.h:59:19: note: escapes to this field 59 | const Token * mStart; | ~~~~~~~~~~~~~~^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.h:66:59: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 66 | static const Scope* findOuterScope(const Scope * scope); | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.cpp:36:12: note: param returned here 36 | return scope; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:21:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:21:184: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:21:281: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:21:379: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 21 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("asm")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("goto")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:27:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 27 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || (tok->str() == MatchCompiler::makeConstString("throw")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:33:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 33 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathanalysis.cpp:36:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 36 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 21 warnings generated. [205/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathmatch.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_pathmatch.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.cpp:47:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 47 | if (pattern == MatchCompiler::makeConstString("*") || pattern == MatchCompiler::makeConstString("**")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.cpp:47:85: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 47 | if (pattern == MatchCompiler::makeConstString("*") || pattern == MatchCompiler::makeConstString("**")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 3 warnings generated. [206/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_platform.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_platform.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.cpp:147:39: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 147 | if (platformstr == MatchCompiler::makeConstString("win32A")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.cpp:151:44: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 151 | else if (platformstr == MatchCompiler::makeConstString("win64")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.cpp:159:44: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 159 | else if (platformstr == MatchCompiler::makeConstString("unspecified")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 3 warnings generated. [207/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_importproject.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:45: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:47:64: warning: parameter 'args' is later invalidated [-Wlifetime-safety-invalidation] 47 | std::string ImportProject::collectArgs(const std::string &cmd, std::vector &args) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:68:22: note: parameter 'args' is invalidated here 68 | args.push_back(arg); | ~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:68:17: note: later used here 68 | args.push_back(arg); | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:147:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 147 | if (!(optArg = getOptArg({ "-isystem" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:147:22: note: local variable 'optArg' is invalidated here 147 | if (!(optArg = getOptArg({ "-isystem" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:147:14: note: later used here 147 | if (!(optArg = getOptArg({ "-isystem" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:152:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 152 | if (!(optArg = getOptArg({ "-include", "/FI", "-FI" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:152:22: note: local variable 'optArg' is invalidated here 152 | if (!(optArg = getOptArg({ "-include", "/FI", "-FI" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:152:14: note: later used here 152 | if (!(optArg = getOptArg({ "-include", "/FI", "-FI" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:167:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 167 | if (!(optArg = getOptArg({ "-std=", "/std:" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:167:22: note: local variable 'optArg' is invalidated here 167 | if (!(optArg = getOptArg({ "-std=", "/std:" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:167:14: note: later used here 167 | if (!(optArg = getOptArg({ "-std=", "/std:" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:172:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 172 | if (!(optArg = getOptArg({ "-f" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:172:22: note: local variable 'optArg' is invalidated here 172 | if (!(optArg = getOptArg({ "-f" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:172:14: note: later used here 172 | if (!(optArg = getOptArg({ "-f" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:162:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 162 | if (!(optArg = getOptArg({ "-U", "/U" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:162:22: note: local variable 'optArg' is invalidated here 162 | if (!(optArg = getOptArg({ "-U", "/U" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:162:14: note: later used here 162 | if (!(optArg = getOptArg({ "-U", "/U" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:138:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 138 | if (!(optArg = getOptArg({ "-I", "/I" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:138:22: note: local variable 'optArg' is invalidated here 138 | if (!(optArg = getOptArg({ "-I", "/I" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:138:14: note: later used here 138 | if (!(optArg = getOptArg({ "-I", "/I" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:184:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 184 | if (!(optArg = getOptArg({ "-m" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:184:22: note: local variable 'optArg' is invalidated here 184 | if (!(optArg = getOptArg({ "-m" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:184:14: note: later used here 184 | if (!(optArg = getOptArg({ "-m" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:157:15: warning: local variable 'optArg' is later invalidated [-Wlifetime-safety-invalidation] 157 | if (!(optArg = getOptArg({ "-D", "/D" }, i)).empty()) { | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:157:22: note: local variable 'optArg' is invalidated here 157 | if (!(optArg = getOptArg({ "-D", "/D" }, i)).empty()) { | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:157:14: note: later used here 157 | if (!(optArg = getOptArg({ "-D", "/D" }, i)).empty()) { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:261:27: note: in instantiation of function template specialization 'utils::as_const, std::basic_string, cppcheck::stricmp>>' requested here 261 | auto it1 = utils::as_const(variables).find(var); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:249:39: warning: parameter 's' is later invalidated [-Wlifetime-safety-invalidation] 249 | static bool simplifyPathWithVariables(std::string &s, std::map &variables) | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:272:11: note: parameter 's' is invalidated here 272 | s.replace(start, end - start + 1, it1->second); | ~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:253:21: note: later used here 253 | while ((start = s.find("$(")) != std::string::npos) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:628:32: warning: parameter 'c' is later invalidated [-Wlifetime-safety-invalidation] 628 | static void replaceAll(std::string &c, const std::string &from, const std::string &to) { | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:631:19: note: parameter 'c' is invalidated here 631 | c.erase(pos,from.size()); | ~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:632:17: note: later used here 632 | c.insert(pos,to); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:869:133: warning: parameter 'includePath' is later invalidated [-Wlifetime-safety-invalidation] 869 | static void importPropertyGroup(const tinyxml2::XMLElement *node, std::map &variables, std::string &includePath) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:890:25: note: parameter 'includePath' is invalidated here 890 | includePath = std::move(path); | ~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:889:40: note: later used here 889 | path.replace(pos, 14U, includePath); | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_importproject.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_importproject.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("$"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:45: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_importproject.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:173:42: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 173 | if (optArg == MatchCompiler::makeConstString("pic")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:185:42: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 185 | if (optArg == MatchCompiler::makeConstString("unicode")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:551:78: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 551 | if (Path::getFilenameExtensionInLowerCase(vcxproj) != MatchCompiler::makeConstString(".vcxproj")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:605:55: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 605 | if (platformStr == MatchCompiler::makeConstString("Win32")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:683:55: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 683 | else if (tok->str() == MatchCompiler::makeConstString("Or")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:692:72: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 692 | return execute(tok->astTop(), p) == MatchCompiler::makeConstString("True"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:728:52: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 728 | if (propertyName == MatchCompiler::makeConstString("Configuration")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:742:46: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 742 | if (method == MatchCompiler::makeConstString("StartsWith")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<24>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:1097:64: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<24U>' requested here 1097 | if (i.enhancedInstructionSet == MatchCompiler::makeConstString("StreamingSIMDExtensions")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<25>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:1099:69: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<25U>' requested here 1099 | else if (i.enhancedInstructionSet == MatchCompiler::makeConstString("StreamingSIMDExtensions2")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<26>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:1103:69: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<26U>' requested here 1103 | else if (i.enhancedInstructionSet == MatchCompiler::makeConstString("AdvancedVectorExtensions2")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<28>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:1105:69: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<28U>' requested here 1105 | else if (i.enhancedInstructionSet == MatchCompiler::makeConstString("AdvancedVectorExtensions512")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<32>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:1181:51: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<32U>' requested here 1181 | if (includePath == MatchCompiler::makeConstString("%(AdditionalIncludeDirectories)")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:38: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp:1586:48: note: in instantiation of function template specialization 'default_if_null' requested here 1586 | s.hash = strToInt(default_if_null(child->Attribute("hash"), "0")); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:46: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ 54 warnings generated. [208/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_regex.cpp [209/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:40:114: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | ReverseTraversal(const ValuePtr& analyzer, const TokenList& tokenlist, ErrorLogger& errorLogger, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:45:22: note: escapes to this field 45 | ErrorLogger& errorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:40:140: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | ReverseTraversal(const ValuePtr& analyzer, const TokenList& tokenlist, ErrorLogger& errorLogger, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:46:25: note: escapes to this field 46 | const Settings& settings; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:40:88: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | ReverseTraversal(const ValuePtr& analyzer, const TokenList& tokenlist, ErrorLogger& errorLogger, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:44:26: note: escapes to this field 44 | const TokenList& tokenlist; | ~~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:96:48: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 96 | static Token* getTopFunction(Token* tok) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:101:24: note: param returned here 101 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:109:45: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 109 | static Token* jumpToStart(Token* tok) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:120:20: note: param returned here 120 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:15:91: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:24:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 24 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:48:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 48 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("do"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:69:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:69:187: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:69:285: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 69 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("break")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("continue")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:90:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 90 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:98:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 98 | template MAYBE_UNUSED static inline T * findmatch12(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp:309:29: note: in instantiation of function template specialization 'findmatch12' requested here 309 | if (findmatch12(tok->link(), tok) ) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_reverseanalyzer.cpp:104:12: note: param returned here 104 | return start_tok; | ^~~~~~~~~ 25 warnings generated. [210/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_preprocessor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:107:72: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 107 | Preprocessor(simplecpp::TokenList& tokens, const Settings& settings, ErrorLogger &errorLogger, Standards::Language lang); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:184:21: note: escapes to this field 184 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:107:98: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 107 | Preprocessor(simplecpp::TokenList& tokens, const Settings& settings, ErrorLogger &errorLogger, Standards::Language lang); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:185:18: note: escapes to this field 185 | ErrorLogger &mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:107:46: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 107 | Preprocessor(simplecpp::TokenList& tokens, const Settings& settings, ErrorLogger &errorLogger, Standards::Language lang); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:182:27: note: escapes to this field 182 | simplecpp::TokenList& mTokens; | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.h:158:82: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 158 | const simplecpp::Output* reportOutput(const simplecpp::OutputList &outputList, bool showerror); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:975:12: note: param returned here 975 | return out_ret; | ^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_preprocessor.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:248:42: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 248 | if (tok->str() == MatchCompiler::makeConstString("#") && tok->next && tok->next->str() == MatchCompiler::makeConstString("define")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:248:114: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 248 | if (tok->str() == MatchCompiler::makeConstString("#") && tok->next && tok->next->str() == MatchCompiler::makeConstString("define")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:365:61: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 365 | if (tok->next && tok->next->str() == MatchCompiler::makeConstString("endfile")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:373:103: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 373 | if (directive.str == MatchCompiler::makeConstString("#") && tok2->str() == MatchCompiler::makeConstString("file")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:420:67: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 420 | if (len == 3 && cond->name && (next1->str() == MatchCompiler::makeConstString("==") || next1->str() == MatchCompiler::makeConstString("<=") || next1->str() == MatchCompiler::makeConstString(">=")) && next2->number) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:571:60: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 571 | else if (cmdtok->next->str() == MatchCompiler::makeConstString("endif")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp:1155:76: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 1155 | if (!tok3 || !sameline(tok, tok3) || tok3->str() != MatchCompiler::makeConstString("asm")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 21 warnings generated. [211/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_sarifreport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ 21 warnings generated. [212/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_standards.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/standards.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ 10 warnings generated. [213/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:48:73: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 48 | const PlatformType *platform_type(const std::string &name) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:50:20: note: param returned here 50 | return (it != mPlatformTypes.end()) ? &(it->second) : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:91:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 91 | const std::string& start() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:92:20: note: param returned here 92 | return mStart; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:94:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 94 | const std::string& end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:95:20: note: param returned here 95 | return mEnd; | ^~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:401:48: note: in instantiation of function template specialization 'utils::as_const, Library::AllocFunc>>' requested here 401 | const auto it = utils::as_const(mData->mDealloc).find(n); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:610:39: note: in instantiation of function template specialization 'utils::as_const, Library::Container>>' requested here 610 | const auto i = utils::as_const(mData->mContainers).find(inherits); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1244:32: note: in instantiation of function template specialization 'utils::as_const, Library::Function>>' requested here 1244 | const auto it = utils::as_const(mData->mFunctions).find(funcname); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1336:49: warning: parameter 'unknownFunc' is later invalidated [-Wlifetime-safety-invalidation] 1336 | bool Library::isScopeNoReturn(const Token *end, std::string *unknownFunc) const | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1339:22: note: parameter 'unknownFunc' is invalidated here 1339 | unknownFunc->clear(); | ~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1371:17: note: later used here 1371 | if (unknownFunc && !isnoreturn(funcname)) | ^~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:267:73: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 267 | const std::unordered_map& containers() const; | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1382:12: note: param returned here 1382 | return mData->mContainers; | ^~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:489:161: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 489 | const Library::Container* detectContainerInternal(const Token* typeStart, DetectContainer detect, bool* isIterator = nullptr, bool withoutStd = false) const; | ~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1420:20: note: param returned here 1420 | return &container; | ^~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:165:64: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 165 | const std::map& functionwarn() const; | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1544:12: note: param returned here 1544 | return mData->mFunctionwarn; | ^~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1551:27: note: in instantiation of function template specialization 'utils::as_const, Library::WarnInfo>>' requested here 1551 | const auto i = utils::as_const(mData->mFunctionwarn).find(getFunctionName(ftok)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1634:28: note: in instantiation of function template specialization 'utils::as_const, Library::NonOverlappingData>>' requested here 1634 | const auto it = utils::as_const(mData->mNonOverlappingData).find(getFunctionName(ftok)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1662:28: note: in instantiation of function template specialization 'utils::as_const, std::basic_string>>' requested here 1662 | const auto it = utils::as_const(mData->mReturnValue).find(getFunctionName(ftok)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1688:28: note: in instantiation of function template specialization 'utils::as_const, int>>' requested here 1688 | const auto it = utils::as_const(mData->mReturnValueContainer).find(getFunctionName(ftok)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1696:28: note: in instantiation of function template specialization 'utils::as_const, std::vector>>' requested here 1696 | const auto it = utils::as_const(mData->mUnknownReturnValues).find(getFunctionName(ftok)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:328:71: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 328 | const std::unordered_map& functions() const; | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1751:12: note: param returned here 1751 | return mData->mFunctions; | ^~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1808:28: note: in instantiation of function template specialization 'utils::as_const, Library::LibraryData::FalseTrueMaybe>>' requested here 1808 | const auto it = utils::as_const(mData->mNoReturn).find(getFunctionName(ftok)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1837:28: note: in instantiation of function template specialization 'utils::as_const, bool>>' requested here 1837 | const auto it = utils::as_const(mData->mProcessAfterCode).find(Path::getFilenameExtensionInLowerCase(path)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1849:28: note: in instantiation of function template specialization 'utils::as_const, Library::LibraryData::CodeBlock>>' requested here 1849 | const auto it = utils::as_const(mData->mExecutableBlocks).find(Path::getFilenameExtensionInLowerCase(file)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1890:16: note: in instantiation of function template specialization 'utils::as_const, std::set>>>' requested here 1890 | utils::as_const(mData->mKeywords).find(Path::getFilenameExtensionInLowerCase(file)); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:420:79: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 420 | const std::unordered_map& smartPointers() const; | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1952:12: note: param returned here 1952 | return mData->mSmartPointers; | ^~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:422:92: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 422 | const SmartPointer* detectSmartPointer(const Token* tok, bool withoutStd = false) const; | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:1980:12: note: param returned here 1980 | return &it->second; | ^~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:378:58: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 378 | const std::set &markupExtensions() const; | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2041:12: note: param returned here 2041 | return mData->mMarkupExtensions; | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2051:28: note: in instantiation of function template specialization 'utils::as_const, Library::LibraryData::ExportedFunctions>>' requested here 2051 | const auto it = utils::as_const(mData->mExporters).find(prefix); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2068:28: note: in instantiation of function template specialization 'utils::as_const, int>>' requested here 2068 | const auto it = utils::as_const(mData->mReflection).find(token); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:413:49: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 413 | const std::set& defines() const; // to provide some library defines | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2081:12: note: param returned here 2081 | return mData->mDefines; | ^~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2086:28: note: in instantiation of function template specialization 'utils::as_const, Library::PodType>>' requested here 2086 | const auto it = utils::as_const(mData->mPodTypes).find(name); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2092:28: note: in instantiation of function template specialization 'utils::as_const, Library::LibraryData::Platform>>' requested here 2092 | const auto it = utils::as_const(mData->mPlatforms).find(platform); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:2099:29: note: in instantiation of function template specialization 'utils::as_const, Library::PlatformType>>' requested here 2099 | const auto it2 = utils::as_const(mData->mPlatformTypes).find(name); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp:15:94: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("-"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp:72:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 72 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp:203:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 203 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("empty"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp:215:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 215 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("size")) || (tok->str() == MatchCompiler::makeConstString("length")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_library.cpp:215:107: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 215 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("size")) || (tok->str() == MatchCompiler::makeConstString("length")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:264:37: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 264 | if (yieldName == MatchCompiler::makeConstString("at_index")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:270:37: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 270 | if (yieldName == MatchCompiler::makeConstString("buffer-nt")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:272:37: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 272 | if (yieldName == MatchCompiler::makeConstString("start-iterator")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:274:37: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 274 | if (yieldName == MatchCompiler::makeConstString("end-iterator")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:292:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 292 | if (actionName == MatchCompiler::makeConstString("pop")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:296:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 296 | if (actionName == MatchCompiler::makeConstString("find-const")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:306:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 306 | if (actionName == MatchCompiler::makeConstString("change-internal")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:425:115: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 425 | if (memorynodename == MatchCompiler::makeConstString("alloc") || memorynodename == MatchCompiler::makeConstString("realloc")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<20>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:708:64: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<20U>' requested here 708 | } else if (containerNodeName == MatchCompiler::makeConstString("rangeItemRecordType")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:722:45: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 722 | else if (nodename == MatchCompiler::makeConstString("smart-pointer")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:736:45: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 736 | else if (nodename == MatchCompiler::makeConstString("type-checks")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<21>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp:885:53: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<21U>' requested here 885 | else if (functionnodename == MatchCompiler::makeConstString("not-overlapping-data")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 59 warnings generated. [214/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_summaries.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:142:33: warning: parameter 'functionCalls' is later invalidated [-Wlifetime-safety-invalidation] 142 | std::map> &functionCalls, | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:149:15: note: parameter 'functionCalls' is invalidated here 149 | calls.erase(std::remove(calls.begin(), calls.end(), calledFunction), calls.end()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:150:13: note: later used here 150 | if (calls.empty()) { | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:143:33: warning: parameter 'add' is later invalidated [-Wlifetime-safety-invalidation] 143 | std::vector &add) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:151:17: note: parameter 'add' is invalidated here 151 | add.push_back(calledFunction); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp:152:69: note: later used here 152 | removeFunctionCalls(c, functionCalledBy, functionCalls, add); | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_summaries.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_summaries.cpp:18:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 18 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 16 warnings generated. [215/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_settings.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:39: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_settings.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:245:31: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 245 | if (str == MatchCompiler::makeConstString("all")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:253:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 253 | } else if (str == MatchCompiler::makeConstString("warning")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:255:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 255 | } else if (str == MatchCompiler::makeConstString("style")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:257:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 257 | } else if (str == MatchCompiler::makeConstString("performance")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:263:38: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 263 | } else if (str == MatchCompiler::makeConstString("unusedFunction")) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:800:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 800 | if (arg == MatchCompiler::makeConstString("--autosar") && autosarCheckers.count(id)) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:802:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 802 | if (arg == MatchCompiler::makeConstString("--cert-c") && certCCheckers.count(id)) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:804:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 804 | if (arg == MatchCompiler::makeConstString("--cert-c-2016") && certCCheckers.count(id)) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp:814:35: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 814 | if (arg == MatchCompiler::makeConstString("--misra-cpp-2008") && misracpp2008Checkers.count(id)) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 29 warnings generated. [216/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_suppressions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:38: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:423:12: note: in instantiation of function template specialization 'default_if_null' requested here 423 | return default_if_null(p, ""); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:130:32: note: in instantiation of function template specialization 'empty_if_null' requested here 130 | const char *text = empty_if_null(e2->GetText()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:415:46: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 415 | static inline T* default_if_null(T* p, T* def) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:417:12: note: param returned here 417 | return p ? p : def; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_suppressions.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:308:45: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 308 | else if (parts[i] == MatchCompiler::makeConstString("polyspace=1")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<21>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:524:70: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<21U>' requested here 524 | const bool unmatchedSuppression(errmsg.errorId == MatchCompiler::makeConstString("unmatchedSuppression")); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:729:44: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 729 | return info.name == MatchCompiler::makeConstString("misra"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:784:33: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 784 | if (token == MatchCompiler::makeConstString("polyspace")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<16>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:787:33: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<16U>' requested here 787 | if (token == MatchCompiler::makeConstString("polyspace-begin")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<14>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp:790:33: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<14U>' requested here 790 | if (token == MatchCompiler::makeConstString("polyspace-end")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 13 warnings generated. [217/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.h:47:33: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 47 | ExprIdToken(const Token* tok); | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.h:42:18: note: escapes to this field 42 | const Token* tok = nullptr; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:256:34: note: in instantiation of function template specialization 'utils::as_const>' requested here 256 | const auto& cvalues = utils::as_const(*mValues); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.h:186:50: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 186 | explicit ProgramMemoryState(const Settings& s); | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.h:182:21: note: escapes to this field 182 | const Settings& settings; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1368:61: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1368 | Executor(ProgramMemory* pm, const Settings& settings) : pm(pm), settings(settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1361:25: note: escapes to this field 1361 | const Settings& settings; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1368:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1368 | Executor(ProgramMemory* pm, const Settings& settings) : pm(pm), settings(settings) | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1360:24: note: escapes to this field 1360 | ProgramMemory* pm; | ~~~~~~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1419:36: warning: parameter 'conditions' is later invalidated [-Wlifetime-safety-invalidation] 1419 | static bool sortConditions(std::vector& conditions) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1426:24: note: parameter 'conditions' is invalidated here 1426 | conditions.erase(std::unique(conditions.begin(), conditions.end(), &TokenExprIdCompare), conditions.end()); | ~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1427:21: note: later used here 1427 | return !conditions.empty() && conditions.front()->exprId() != 0; | ^~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1433:52: note: in instantiation of function template specialization 'utils::as_const' requested here 1433 | const ValueFlow::Value& v = utils::as_const(*pm).at(expr->exprId()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:15:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("}"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:30:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 30 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:45:93: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 45 | if (!tok || !(((tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("==")) || ((tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString(">=")) || ((tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<=")) || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")) || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString(">")) || ((tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("!=")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:96:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 96 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("assert")) || (tok->str() == MatchCompiler::makeConstString("ASSERT")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:123:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 123 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_programmemory.cpp:141:184: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 141 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("for")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp:1710:70: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 1710 | if (expr->astOperand1()->str() != MatchCompiler::makeConstString("dynamic_cast")) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 27 warnings generated. [218/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_timer.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/timer.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/timer.h:66:67: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 66 | explicit Timer(std::string str, TimerResultsIntf* timerResults = nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/timer.h:83:23: note: escapes to this field 83 | TimerResultsIntf* mResults{}; | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~ 1 warning generated. [219/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_utils.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.cpp:140:21: warning: parameter 'source' is later invalidated [-Wlifetime-safety-invalidation] 140 | void findAndReplace(std::string &source, const std::string &searchFor, const std::string &replaceWith) | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.cpp:144:16: note: parameter 'source' is invalidated here 144 | source.replace(index, searchFor.length(), replaceWith); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.cpp:143:21: note: later used here 143 | while ((index = source.find(searchFor, index)) != std::string::npos) { | ^~~~~~ 1 warning generated. [220/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:47: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:53:48: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 53 | explicit TokenList(const Settings& settings, Standards::Language lang); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:231:21: note: escapes to this field 231 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:93:53: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 93 | RET_NONNULL static Token *copyTokens(Token *dest, const Token *first, const Token *last, bool one_line = true); | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:288:12: note: param returned here 288 | return tok2; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:453:34: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 453 | static Token* skipDecl(Token* tok, std::vector* inner = nullptr) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:467:16: note: param returned here 467 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:560:45: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 560 | static Token * findCppTypeInitPar(Token *tok) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:580:12: note: param returned here 580 | return (tok && tok->str() == MatchCompiler::makeConstString("(")) ? tok : nullptr; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1587:38: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1587 | static Token * findAstTop(Token *tok1, const Token *tok2) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1593:20: note: param returned here 1593 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1534:43: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1534 | static Token * createAstAtToken(Token *tok); | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1670:20: note: param returned here 1670 | return type; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:154:52: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 154 | const std::string& file(const Token *tok) const; | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:2076:12: note: param returned here 2076 | return mFiles.at(tok->fileIndex()); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:15:91: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eExtendedOp || tok->tokType() == Token::eLambda) && tok->str() == MatchCompiler::makeConstString("[")) || ((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:33:283: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 33 | if (!tok || !(((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("*")) || ((tok->tokType() == Token::eBitOp) && tok->str() == MatchCompiler::makeConstString("&")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:33:378: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 33 | if (!tok || !(((tok->tokType() == Token::eArithmeticalOp) && tok->str() == MatchCompiler::makeConstString("*")) || ((tok->tokType() == Token::eBitOp) && tok->str() == MatchCompiler::makeConstString("&")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:77:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 77 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("decltype")) || (tok->str() == MatchCompiler::makeConstString("typeof")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:77:111: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 77 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("decltype")) || (tok->str() == MatchCompiler::makeConstString("typeof")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:112:211: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 112 | if (!tok || !(tok->isAssignmentOp() || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString(",")) || ((tok->tokType() == Token::eEllipsis) && tok->str() == MatchCompiler::makeConstString("...")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:118:187: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 118 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("return")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("case")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:459:396: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 459 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("else")) || (tok->str() == MatchCompiler::makeConstString("try")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("do")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || (tok->str() == MatchCompiler::makeConstString("constexpr")) || (tok->str() == MatchCompiler::makeConstString("override")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("volatile")) || ((tok->tokType() == Token::eBitOp) && tok->str() == MatchCompiler::makeConstString("&")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:925:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 925 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("mutable")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("const")) || (tok->str() == MatchCompiler::makeConstString("constexpr")) || (tok->str() == MatchCompiler::makeConstString("consteval")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:776:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 776 | template MAYBE_UNUSED static inline T * findmatch92(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:897:61: note: in instantiation of function template specialization 'findmatch92' requested here 897 | } else if (state.cpp && match91(tok->tokAt(-2)) && !findmatch92(tok, tok->link()) ) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:782:12: note: param returned here 782 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:973:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 973 | static T* skipTrailingReturnType(T* tok) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1081:36: note: in instantiation of function template specialization 'skipTrailingReturnType' requested here 1081 | curlyBracket = skipTrailingReturnType(curlyBracket); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:976:16: note: param returned here 976 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:973:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 973 | static T* skipTrailingReturnType(T* tok) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1528:11: note: in instantiation of function template specialization 'skipTrailingReturnType' requested here 1528 | tok = skipTrailingReturnType(tok); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:976:16: note: param returned here 976 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:1423:76: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1423 | template MAYBE_UNUSED static inline T * findmatch169(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp:1679:27: note: in instantiation of function template specialization 'findmatch169' requested here 1679 | Token *decl = findmatch169(tok) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_tokenlist.cpp:1429:12: note: param returned here 1429 | return start_tok; | ^~~~~~~~~ 31 warnings generated. [221/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:50: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:207:37: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 207 | Token(const TokenList& tokenlist, std::shared_ptr tokensFrontBack); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:187:22: note: escapes to this field 187 | const TokenList& mList; | ~~~~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1460:52: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1460 | static const char *chrInFirstWord(const char *s, char c); | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:660:20: note: param returned here 660 | return s; | ^ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1356:44: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1356 | const Token* findClosingBracket() const; | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:917:24: note: param returned here 917 | return closing; | ^~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1359:44: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1359 | const Token* findOpeningBracket() const; | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:959:24: note: param returned here 959 | return opening; | ^~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1462:78: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1462 | RET_NONNULL Token* insertToken(const std::string& tokenStr, bool prepend); | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1112:36: note: param returned here 1112 | return newToken; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1464:59: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1464 | static const Token* goToLeftParenthesis(const Token* start, const Token* end) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1478:12: note: param returned here 1478 | return start; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1481:78: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1481 | static const Token* goToRightParenthesis(const Token* start, const Token* end) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1495:12: note: param returned here 1495 | return end; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1617:21: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1617 | snprintf(str, sizeof(str), "\\x%02x", c); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1690:20: warning: parameter 'str' is later invalidated [-Wlifetime-safety-invalidation] 1690 | static void indent(std::string &str, const nonneg int indent1, const nonneg int indent2) | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1695:13: note: parameter 'str' is invalidated here 1695 | str += "| "; | ~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1695:9: note: later used here 1695 | str += "| "; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1698:39: warning: parameter 'ret' is later invalidated [-Wlifetime-safety-invalidation] 1698 | void Token::astStringVerboseRecursive(std::string& ret, const nonneg int indent1, const nonneg int indent2) const | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1701:13: note: parameter 'ret' is invalidated here 1701 | ret += '$'; | ~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1702:5: note: later used here 1702 | ret += mStr; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:1703:30: warning: parameter in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 1703 | Token* findTypeEnd(Token* tok); | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2692:12: note: param returned here 2692 | return tok; | ^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:15:91: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")) || ((tok->tokType() == Token::eBracket) && tok->str() == MatchCompiler::makeConstString("{")) || ((tok->tokType() == Token::eExtendedOp || tok->tokType() == Token::eLambda) && tok->str() == MatchCompiler::makeConstString("[")) || ((tok->tokType() == Token::eBracket || tok->tokType() == Token::eComparisonOp) && tok->str() == MatchCompiler::makeConstString("<")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:45:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 45 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("operator"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:105:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 105 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || (tok->str() == MatchCompiler::makeConstString("typename")) || (tok->str() == MatchCompiler::makeConstString(".")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:111:148: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 111 | if (!tok || !(((tok->tokType() == Token::eAssignmentOp) && tok->str() == MatchCompiler::makeConstString("=")) || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:177:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 177 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("namespace")) || (tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:177:210: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 177 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("namespace")) || (tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:305:121: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 305 | if (!tok || !((tok->tokType() == Token::eKeyword || tok->tokType() == Token::eType) && tok->str() == MatchCompiler::makeConstString("auto"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:340:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 340 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("new"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_token.cpp:394:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 394 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("mutable")) || (tok->str() == MatchCompiler::makeConstString("constexpr")) || (tok->str() == MatchCompiler::makeConstString("consteval")) || (tok->str() == MatchCompiler::makeConstString("noexcept")) || (tok->str() == MatchCompiler::makeConstString(".")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:38:37: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:75:45: note: in instantiation of member function 'TokenRangeBase::TokenRangeBase' requested here 75 | TokenRange(Token* front, Token* back) : TokenRangeBase(front, back) {} | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:35:8: note: escapes to this field 35 | T* mBack; | ~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:38:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:34:8: note: escapes to this field 34 | T* mFront; | ~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:38:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:80:62: note: in instantiation of member function 'TokenRangeBase::TokenRangeBase' requested here 80 | ConstTokenRange(const Token* front, const Token* back) : TokenRangeBase(front, back) {} | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:34:8: note: escapes to this field 34 | T* mFront; | ~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:38:37: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenrange.h:35:8: note: escapes to this field 35 | T* mBack; | ~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:975:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 975 | static T *findsimplematchImpl(T * const startTok, const char pattern[], size_t pattern_len) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:986:12: note: in instantiation of function template specialization 'findsimplematchImpl' requested here 986 | return findsimplematchImpl(startTok, pattern, pattern_len); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:979:20: note: param returned here 979 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:975:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 975 | static T *findsimplematchImpl(T * const startTok, const char pattern[], size_t pattern_len) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:991:12: note: in instantiation of function template specialization 'findsimplematchImpl' requested here 991 | return findsimplematchImpl(startTok, pattern, pattern_len); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:979:20: note: param returned here 979 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:995:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 995 | static T *findsimplematchImpl(T * const startTok, const char pattern[], size_t pattern_len, const Token * const end) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1006:12: note: in instantiation of function template specialization 'findsimplematchImpl' requested here 1006 | return findsimplematchImpl(startTok, pattern, pattern_len, end); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:999:20: note: param returned here 999 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:995:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 995 | static T *findsimplematchImpl(T * const startTok, const char pattern[], size_t pattern_len, const Token * const end) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1010:12: note: in instantiation of function template specialization 'findsimplematchImpl' requested here 1010 | return findsimplematchImpl(startTok, pattern, pattern_len, end); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:999:20: note: param returned here 999 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1014:43: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1014 | static T *findmatchImpl(T * const startTok, const char pattern[], const nonneg int varid) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1025:12: note: in instantiation of function template specialization 'findmatchImpl' requested here 1025 | return findmatchImpl(startTok, pattern, varid); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1018:20: note: param returned here 1018 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1014:43: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1014 | static T *findmatchImpl(T * const startTok, const char pattern[], const nonneg int varid) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1029:12: note: in instantiation of function template specialization 'findmatchImpl' requested here 1029 | return findmatchImpl(startTok, pattern, varid); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1018:20: note: param returned here 1018 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1033:43: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1033 | static T *findmatchImpl(T * const startTok, const char pattern[], const Token * const end, const nonneg int varid) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1044:12: note: in instantiation of function template specialization 'findmatchImpl' requested here 1044 | return findmatchImpl(startTok, pattern, end, varid); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1037:20: note: param returned here 1037 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1033:43: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1033 | static T *findmatchImpl(T * const startTok, const char pattern[], const Token * const end, const nonneg int varid) | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1048:12: note: in instantiation of function template specialization 'findmatchImpl' requested here 1048 | return findmatchImpl(startTok, pattern, end, varid); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:1037:20: note: param returned here 1037 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2582:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2582 | static const ValueFlow::Value* getCompareValue(const std::list& values, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2605:12: note: in instantiation of function template specialization 'getCompareValue>' requested here 2605 | return getCompareValue(*mImpl->mValues, condition, path, std::greater{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2598:12: note: param returned here 2598 | return ret; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2582:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 2582 | static const ValueFlow::Value* getCompareValue(const std::list& values, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2612:12: note: in instantiation of function template specialization 'getCompareValue>' requested here 2612 | return getCompareValue(*mImpl->mValues, condition, path, std::less{}); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp:2598:12: note: param returned here 2598 | return ret; | ^~~ 57 warnings generated. [222/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:65:49: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 65 | explicit ValueFlowAnalyzer(const Settings& s) : settings(s), pms(settings) {} | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:62:21: note: escapes to this field 62 | const Settings& settings; | ~~~~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:925:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 925 | Iterator &operator++() { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:928:24: note: param returned here 928 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:944:57: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 944 | explicit SelectValueFromVarIdMapRange(const M *m) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:955:18: note: escapes to this field 955 | const M *mMap; | ~~~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:972:83: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 972 | virtual const std::unordered_map& getVars() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:973:16: note: param returned here 973 | return vars; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:976:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 976 | const ValueFlow::Value* getValue(const Token* tok) const override { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:982:16: note: param returned here 982 | return &it->second; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:984:49: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 984 | ValueFlow::Value* getValue(const Token* tok) override { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:990:16: note: param returned here 990 | return &it->second; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1120:75: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1120 | const std::unordered_map& getVars() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1121:16: note: param returned here 1121 | return varids; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1124:82: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1124 | const std::unordered_map& getAliasedVars() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1125:16: note: param returned here 1125 | return aliases; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1128:65: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1128 | const ValueFlow::Value* getValue(const Token* /*tok*/) const override { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1129:16: note: param returned here 1129 | return &value; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1131:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1131 | ValueFlow::Value* getValue(const Token* /*tok*/) override { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1132:16: note: param returned here 1132 | return &value; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1290:38: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1290 | ExpressionAnalyzer(const Token* e, ValueFlow::Value val, const Settings& s) | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp:1284:18: note: escapes to this field 1284 | const Token* expr; | ~~~~~~~~~~~~~^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:30:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 30 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:54:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 54 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("std"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:57:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 57 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("::"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:60:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 60 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("move"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:72:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 72 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("forward"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_analyzers.cpp:156:183: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 156 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("if")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("while")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 29 warnings generated. [223/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vfvalue.cpp In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vfvalue.h:57:29: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 57 | Value(const Token* c, MathLib::bigint val, Bound b = Bound::Point); | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vfvalue.h:336:22: note: escapes to this field 336 | const Token* condition{}; | ~~~~~~~~~~~~~^~~~~~~~~~~ 1 warning generated. [224/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_common.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_common.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_common.cpp:21:87: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 21 | if (!tok || !((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("sizeof"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_common.cpp:24:90: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (!tok || !((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("("))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_common.cpp:33:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 33 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("::")) || (tok->str() == MatchCompiler::makeConstString(".")) || ((tok->tokType() == Token::eExtendedOp || tok->tokType() == Token::eLambda) && tok->str() == MatchCompiler::makeConstString("[")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.cpp:153:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 153 | } else if (tok->str() == MatchCompiler::makeConstString("NULL") || ((tok->isCpp() || settings.standards.c >= Standards::C23) && tok->str() == MatchCompiler::makeConstString("nullptr"))) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.cpp:153:166: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 153 | } else if (tok->str() == MatchCompiler::makeConstString("NULL") || ((tok->isCpp() || settings.standards.c >= Standards::C23) && tok->str() == MatchCompiler::makeConstString("nullptr"))) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<15>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.cpp:169:110: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<15U>' requested here 169 | !(obj->valueType()->container && obj->valueType()->container->startPattern == MatchCompiler::makeConstString("std :: array <"))) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 18 warnings generated. [225/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:27: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenize.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:40:38: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 40 | static Token *skipRequires(Token *tok) | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:43:16: note: param returned here 43 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:69:46: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 69 | explicit FindToken(const Token *token) : mToken(token) {} | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:74:29: note: escapes to this field 74 | const Token * const mToken; | ~~~~~~~~~~~~~~~~~~~~^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:148:34: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 148 | TokenAndName(Token *token, std::string scope); | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:75:16: note: escapes to this field 75 | Token *mToken; | ~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:157:100: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 157 | TokenAndName(Token *token, std::string scope, const Token *nameToken, const Token *paramEnd); | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:80:22: note: escapes to this field 80 | const Token *mParamEnd; | ~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:157:34: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 157 | TokenAndName(Token *token, std::string scope, const Token *nameToken, const Token *paramEnd); | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:75:16: note: escapes to this field 75 | Token *mToken; | ~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:157:77: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 157 | TokenAndName(Token *token, std::string scope, const Token *nameToken, const Token *paramEnd); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:79:22: note: escapes to this field 79 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:49:53: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 49 | explicit TemplateSimplifier(Tokenizer &tokenizer); | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.h:507:16: note: escapes to this field 507 | Tokenizer &mTokenizer; | ~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:746:58: warning: parameter 'args' is later invalidated [-Wlifetime-safety-invalidation] 746 | static void getFunctionArguments(const Token* nameToken, std::vector& args) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:760:14: note: parameter 'args' is invalidated here 760 | args.push_back(argToken); | ~~~~~^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:760:9: note: later used here 760 | args.push_back(argToken); | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:1635:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 1635 | newInstantiation(Token* t, std::string s) : token(t), scope(std::move(s)) {} | ~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:1636:12: note: escapes to this field 1636 | Token* token; | ~~~~~~~^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.h:38: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:1878:50: note: in instantiation of function template specialization 'utils::as_const>' requested here 1878 | const auto link = utils::as_const(links).find(start); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:2988:5: warning: parameter 'typeParametersInDeclaration' is later invalidated [-Wlifetime-safety-invalidation] 2988 | std::vector & typeParametersInDeclaration) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:3004:45: note: parameter 'typeParametersInDeclaration' is invalidated here 3004 | typeParametersInDeclaration.push_back(tok); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:3004:17: note: later used here 3004 | typeParametersInDeclaration.push_back(tok); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<9>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<9U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("requires"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:21:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 21 | if (!tok || !((tok->tokType() == Token::eLogicalOp && tok->str() == MatchCompiler::makeConstString("||")) || ((tok->tokType() == Token::eLogicalOp) && tok->str() == MatchCompiler::makeConstString("&&")) || (tok->str() == MatchCompiler::makeConstString("requires")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:24:108: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 24 | if (!tok || !(tok->isName() || ((tok->tokType() == Token::eExtendedOp) && tok->str() == MatchCompiler::makeConstString("(")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<6>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:102:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<6U>' requested here 102 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<7>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:102:147: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<7U>' requested here 102 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<4>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:199:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<4U>' requested here 199 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("try"))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<8>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:220:88: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<8U>' requested here 220 | if (!tok || !(((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("typedef")) || (tok->str() == MatchCompiler::makeConstString("typename")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<10>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:532:110: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<10U>' requested here 532 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("private")) || (tok->str() == MatchCompiler::makeConstString("protected")) || (tok->str() == MatchCompiler::makeConstString("public")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:622:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 622 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:622:113: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 622 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:622:179: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 622 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:622:249: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 622 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<5>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:789:344: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<5U>' requested here 789 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("class")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("struct")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("union")) || ((tok->tokType() == Token::eKeyword) && tok->str() == MatchCompiler::makeConstString("enum")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:113:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 113 | template MAYBE_UNUSED static inline T * findmatch11(T * start_tok, const Token * end) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:154:31: note: in instantiation of function template specialization 'findmatch11' requested here 154 | isVariadic(end && findmatch11(mToken->tokAt(2), end) ); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:122:12: note: param returned here 122 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:178:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 178 | template MAYBE_UNUSED static inline T * findmatch19(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:264:16: note: in instantiation of function template specialization 'findmatch19' requested here 264 | return findmatch19(aliasStartToken()) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:184:12: note: param returned here 184 | return start_tok; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:562:48: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 562 | static T *findTemplateDeclarationEndImpl(T *tok) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:604:12: note: in instantiation of function template specialization 'findTemplateDeclarationEndImpl' requested here 604 | return findTemplateDeclarationEndImpl(tok); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:599:12: note: param returned here 599 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:562:48: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 562 | static T *findTemplateDeclarationEndImpl(T *tok) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:609:12: note: in instantiation of function template specialization 'findTemplateDeclarationEndImpl' requested here 609 | return findTemplateDeclarationEndImpl(tok); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:599:12: note: param returned here 599 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:178:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 178 | template MAYBE_UNUSED static inline T * findmatch19(T * start_tok) { | ~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp:822:31: note: in instantiation of function template specialization 'findmatch19' requested here 822 | Token *tok2 = findmatch19(tok->tokAt(3)) ; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_templatesimplifier.cpp:184:12: note: param returned here 184 | return start_tok; | ^~~~~~~~~ 30 warnings generated. [226/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/CMakeFiles/cppcheck-core.dir/cmake_pch.hxx -MD -MT lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o -MF lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o.d -o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_settokenvalue.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:1: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<2>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:15:48: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<2U>' requested here 15 | if (!tok || !(tok->str() == MatchCompiler::makeConstString("."))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<3>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:54:66: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<3U>' requested here 54 | if (!tok || !(tok->isName() || (tok->str() == MatchCompiler::makeConstString("::")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<11>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:75:49: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<11U>' requested here 75 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<13>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:75:113: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<13U>' requested here 75 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<17>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:75:179: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<17U>' requested here 75 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:31:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 31 | explicit ConstString(StringRef s) | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:69:16: note: in instantiation of member function 'MatchCompiler::ConstString<12>::ConstString' requested here 69 | return ConstString(s); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/lib/build/mc_vf_settokenvalue.cpp:75:249: note: in instantiation of function template specialization 'MatchCompiler::makeConstString<12U>' requested here 75 | if (!tok || !((tok->str() == MatchCompiler::makeConstString("const_cast")) || (tok->str() == MatchCompiler::makeConstString("dynamic_cast")) || (tok->str() == MatchCompiler::makeConstString("reinterpret_cast")) || (tok->str() == MatchCompiler::makeConstString("static_cast")))) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/matchcompiler.h:39:19: note: escapes to this field 39 | StringRef _s; | ~~~~~~~~~~^~ 18 warnings generated. [227/411] : && /usr/bin/cmake -E rm -f lib/libfrontend.a && /usr/bin/llvm-ar qc lib/libfrontend.a lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o frontend/CMakeFiles/frontend.dir/frontend.cpp.o && /usr/bin/llvm-ranlib lib/libfrontend.a && : [228/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/executor.cpp.o -MF cli/CMakeFiles/cli.dir/executor.cpp.o.d -o cli/CMakeFiles/cli.dir/executor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:45:206: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | Executor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:76:19: note: escapes to this field 76 | TimerResults *mTimerResults; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:45:152: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | Executor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:74:19: note: escapes to this field 74 | Suppressions &mSuppressions; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:45:178: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | Executor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:75:18: note: escapes to this field 75 | ErrorLogger &mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:45:53: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | Executor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:71:39: note: escapes to this field 71 | const std::list &mFiles; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:45:124: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | Executor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:73:21: note: escapes to this field 73 | const Settings &mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:45:98: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | Executor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/executor.h:72:36: note: escapes to this field 72 | const std::list& mFileSettings; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ 12 warnings generated. [229/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/filelister.cpp.o -MF cli/CMakeFiles/cli.dir/filelister.cpp.o.d -o cli/CMakeFiles/cli.dir/filelister.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/filelister.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/filelister.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/filelister.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ 4 warnings generated. [230/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/sehwrapper.cpp.o -MF cli/CMakeFiles/cli.dir/sehwrapper.cpp.o.d -o cli/CMakeFiles/cli.dir/sehwrapper.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/sehwrapper.cpp [231/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/signalhandler.cpp.o -MF cli/CMakeFiles/cli.dir/signalhandler.cpp.o.d -o cli/CMakeFiles/cli.dir/signalhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:170:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 170 | fprintf(output, " (at 0x%lx).\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:204:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 204 | fprintf(output, " (at 0x%lx).\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:238:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 238 | fprintf(output, " (at 0x%lx).%s\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/signalhandler.cpp:261:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 261 | fprintf(output, " (%sat 0x%lx).%s\n", | ^ 4 warnings generated. [232/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/cppcheckexecutor.cpp.o -MF cli/CMakeFiles/cli.dir/cppcheckexecutor.cpp.o.d -o cli/CMakeFiles/cli.dir/cppcheckexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:85:55: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | const std::list& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:86:16: note: param returned here 86 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:92:59: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 92 | const std::list& getFileSettings() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:93:16: note: param returned here 93 | return mFileSettings; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:36: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./sarifreport.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:39: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:107:52: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit StdLogger(const Settings& settings) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:203:25: note: escapes to this field 203 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:165:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 165 | const std::string& getCtuInfo() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:166:20: note: param returned here 166 | return mCtuInfo; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:690:108: warning: parameter 'output_' is later invalidated [-Wlifetime-safety-invalidation] 690 | int CppCheckExecutor::executeCommand(std::string exe, std::vector args, std::string redirect, std::string &output_) | ^~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:727:17: note: parameter 'output_' is invalidated here 727 | output_ += buffer; | ~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:727:9: note: later used here 727 | output_ += buffer; | ^~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.cpp:36: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./sarifreport.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ 34 warnings generated. [233/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/stacktrace.cpp.o -MF cli/CMakeFiles/cli.dir/stacktrace.cpp.o.d -o cli/CMakeFiles/cli.dir/stacktrace.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:109:9: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 109 | fprintf(output, "#%-2d 0x", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:117:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 117 | fprintf(output, "%0*d", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:121:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 121 | fprintf(output, "%.*s in %s\n", | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/stacktrace.cpp:126:13: warning: 'fprintf' was marked unused but was used [-Wused-but-marked-unused] 126 | fprintf(output, "%.*s in %.*s\n", | ^ 4 warnings generated. [234/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/singleexecutor.cpp.o -MF cli/CMakeFiles/cli.dir/singleexecutor.cpp.o.d -o cli/CMakeFiles/cli.dir/singleexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/singleexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/singleexecutor.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/singleexecutor.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/singleexecutor.h:37:38: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 37 | SingleExecutor(CppCheck &cppcheck, const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults); | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/singleexecutor.h:44:15: note: escapes to this field 44 | CppCheck &mCppcheck; | ~~~~~~~~~~^~~~~~~~~ 4 warnings generated. [235/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/processexecutor.cpp.o -MF cli/CMakeFiles/cli.dir/processexecutor.cpp.o.d -o cli/CMakeFiles/cli.dir/processexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.h:49:252: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 49 | ProcessExecutor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults, CppCheck::ExecuteCmdFn executeCommand); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.h:75:28: note: escapes to this field 75 | CppCheck::ExecuteCmdFn mExecuteCommand; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/precompiled.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.h:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/processexecutor.cpp:441:47: note: in instantiation of function template specialization 'utils::as_const>>' requested here 441 | const auto p = utils::as_const(pipeFile).find(*rp); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 11 warnings generated. [236/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/cmdlineparser.cpp.o -MF cli/CMakeFiles/cli.dir/cmdlineparser.cpp.o.d -o cli/CMakeFiles/cli.dir/cmdlineparser.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:85:55: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | const std::list& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:86:16: note: param returned here 86 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:92:59: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 92 | const std::list& getFileSettings() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:93:16: note: param returned here 93 | return mFileSettings; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:39: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:68:57: warning: parameter 'pathNames' is later invalidated [-Wlifetime-safety-invalidation] 68 | static bool addFilesToList(const std::string& fileList, std::vector& pathNames) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:83:23: note: parameter 'pathNames' is invalidated here 83 | pathNames.emplace_back(std::move(fileName)); | ~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:83:13: note: later used here 83 | pathNames.emplace_back(std::move(fileName)); | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:58:88: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 58 | CmdLineParser(CmdLineLogger &logger, Settings &settings, Suppressions &suppressions); | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:158:19: note: escapes to this field 158 | Suppressions &mSuppressions; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:58:40: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 58 | CmdLineParser(CmdLineLogger &logger, Settings &settings, Suppressions &suppressions); | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:155:20: note: escapes to this field 155 | CmdLineLogger &mLogger; | ~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:58:60: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 58 | CmdLineParser(CmdLineLogger &logger, Settings &settings, Suppressions &suppressions); | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cmdlineparser.h:157:15: note: escapes to this field 157 | Settings &mSettings; | ~~~~~~~~~~^~~~~~~~~ 16 warnings generated. [237/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli/CMakeFiles/cli.dir/cmake_pch.hxx -MD -MT cli/CMakeFiles/cli.dir/threadexecutor.cpp.o -MF cli/CMakeFiles/cli.dir/threadexecutor.cpp.o.d -o cli/CMakeFiles/cli.dir/threadexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.h:49:251: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 49 | ThreadExecutor(const std::list &files, const std::list& fileSettings, const Settings &settings, Suppressions &suppressions, ErrorLogger &errorLogger, TimerResults* timerResults, CppCheck::ExecuteCmdFn executeCommand); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.h:55:28: note: escapes to this field 55 | CppCheck::ExecuteCmdFn mExecuteCommand; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:52:87: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 52 | explicit SyncLogForwarder(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:83:18: note: escapes to this field 83 | ErrorLogger &mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:52:61: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 52 | explicit SyncLogForwarder(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:82:21: note: escapes to this field 82 | ThreadExecutor &mThreadExecutor; | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:89:234: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 89 | ThreadData(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, TimerResults *timerResults, const Settings &settings, Suppressions& supprs, const std::list &files, const std::list &fileSettings, CppCheck::ExecuteCmdFn executeCommand) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:163:36: note: escapes to this field 163 | const std::list &mFileSettings; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:89:273: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 89 | ThreadData(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, TimerResults *timerResults, const Settings &settings, Suppressions& supprs, const std::list &files, const std::list &fileSettings, CppCheck::ExecuteCmdFn executeCommand) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:175:28: note: escapes to this field 175 | CppCheck::ExecuteCmdFn mExecuteCommand; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:89:100: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 89 | ThreadData(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, TimerResults *timerResults, const Settings &settings, Suppressions& supprs, const std::list &files, const std::list &fileSettings, CppCheck::ExecuteCmdFn executeCommand) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:172:19: note: escapes to this field 172 | TimerResults *mTimerResults; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:89:189: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 89 | ThreadData(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, TimerResults *timerResults, const Settings &settings, Suppressions& supprs, const std::list &files, const std::list &fileSettings, CppCheck::ExecuteCmdFn executeCommand) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:161:39: note: escapes to this field 161 | const std::list &mFiles; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:89:126: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 89 | ThreadData(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, TimerResults *timerResults, const Settings &settings, Suppressions& supprs, const std::list &files, const std::list &fileSettings, CppCheck::ExecuteCmdFn executeCommand) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:173:21: note: escapes to this field 173 | const Settings &mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:89:148: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 89 | ThreadData(ThreadExecutor &threadExecutor, ErrorLogger &errorLogger, TimerResults *timerResults, const Settings &settings, Suppressions& supprs, const std::list &files, const std::list &fileSettings, CppCheck::ExecuteCmdFn executeCommand) | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/threadexecutor.cpp:174:19: note: escapes to this field 174 | Suppressions &mSuppressions; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ 18 warnings generated. [238/411] : && /usr/bin/cmake -E rm -f lib/libcli.a && /usr/bin/llvm-ar qc lib/libcli.a lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o cli/CMakeFiles/cli.dir/cmdlineparser.cpp.o cli/CMakeFiles/cli.dir/cppcheckexecutor.cpp.o cli/CMakeFiles/cli.dir/executor.cpp.o cli/CMakeFiles/cli.dir/filelister.cpp.o cli/CMakeFiles/cli.dir/processexecutor.cpp.o cli/CMakeFiles/cli.dir/sehwrapper.cpp.o cli/CMakeFiles/cli.dir/signalhandler.cpp.o cli/CMakeFiles/cli.dir/singleexecutor.cpp.o cli/CMakeFiles/cli.dir/stacktrace.cpp.o cli/CMakeFiles/cli.dir/threadexecutor.cpp.o && /usr/bin/llvm-ranlib lib/libcli.a && : [239/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/filelist/CMakeFiles/test-filelist.dir/moc_testfilelist.cpp.o -MF gui/test/filelist/CMakeFiles/test-filelist.dir/moc_testfilelist.cpp.o.d -o gui/test/filelist/CMakeFiles/test-filelist.dir/moc_testfilelist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist/moc_testfilelist.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist/moc_testfilelist.cpp:128:16: note: param returned here 128 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. [240/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/tools/dmake -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -MD -MT tools/dmake/CMakeFiles/dmake.dir/dmake.cpp.o -MF tools/dmake/CMakeFiles/dmake.dir/dmake.cpp.o.d -o tools/dmake/CMakeFiles/dmake.dir/dmake.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:35: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:37: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./../lib/pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:73:43: warning: parameter 'depfiles' is later invalidated [-Wlifetime-safety-invalidation] 73 | static void getDeps(std::string filename, std::vector &depfiles) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:113:22: note: parameter 'depfiles' is invalidated here 113 | depfiles.push_back(filename); | ~~~~~~~~~^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:145:24: note: later used here 145 | getDeps(hfile, depfiles); | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:169:32: warning: parameter 'files' is later invalidated [-Wlifetime-safety-invalidation] 169 | static std::string getCppFiles(std::vector &files, const std::string &path, bool recursive) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:182:19: note: parameter 'files' is invalidated here 182 | files.push_back(file.path()); | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:182:13: note: later used here 182 | files.push_back(file.path()); | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:354:20: warning: parameter 'libfiles_prio' is later invalidated [-Wlifetime-safety-invalidation] 354 | for (auto& l : libfiles_prio) | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:356:11: note: parameter 'libfiles_prio' is invalidated here 356 | l = "../" + l; | ~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:354:18: note: later used here 354 | for (auto& l : libfiles_prio) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:359:20: warning: parameter 'extfiles' is later invalidated [-Wlifetime-safety-invalidation] 359 | for (auto& e : extfiles) | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:361:11: note: parameter 'extfiles' is invalidated here 361 | e = "../" + e; | ~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:359:18: note: later used here 359 | for (auto& e : extfiles) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:540:42: warning: parameter 'outstr' is later invalidated [-Wlifetime-safety-invalidation] 540 | write_vcxproj("cli/cli.vcxproj", [&](std::string &outstr){ | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:547:20: note: parameter 'outstr' is invalidated here 547 | outstr += make_vcxproj_cl_entry(c, Compile); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:547:13: note: later used here 547 | outstr += make_vcxproj_cl_entry(c, Compile); | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:549:12: warning: parameter 'outstr' is later invalidated [-Wlifetime-safety-invalidation] 549 | }, [&](std::string &outstr){ | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:555:20: note: parameter 'outstr' is invalidated here 555 | outstr += make_vcxproj_cl_entry(h, Include); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:555:13: note: later used here 555 | outstr += make_vcxproj_cl_entry(h, Include); | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:559:47: warning: parameter 'outstr' is later invalidated [-Wlifetime-safety-invalidation] 559 | write_vcxproj("lib/cppcheck.vcxproj", [&](std::string &outstr){ | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:560:16: note: parameter 'outstr' is invalidated here 560 | outstr += make_vcxproj_cl_entry(R"(..\externals\simplecpp\simplecpp.cpp)", NoPch); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:561:9: note: later used here 561 | outstr += make_vcxproj_cl_entry(R"(..\externals\tinyxml2\tinyxml2.cpp)", NoPch); | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:567:12: warning: parameter 'outstr' is later invalidated [-Wlifetime-safety-invalidation] 567 | }, [&](std::string &outstr){ | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:568:16: note: parameter 'outstr' is invalidated here 568 | outstr += make_vcxproj_cl_entry(R"(..\externals\simplecpp\simplecpp.h)", Include); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:569:9: note: later used here 569 | outstr += make_vcxproj_cl_entry(R"(..\externals\tinyxml2\tinyxml2.h)", Include); | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:576:50: warning: parameter 'outstr' is later invalidated [-Wlifetime-safety-invalidation] 576 | write_vcxproj("test/testrunner.vcxproj", [&](std::string &outstr){ | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:591:20: note: parameter 'outstr' is invalidated here 591 | outstr += make_vcxproj_cl_entry(t, t == "fixture.cpp" ? Precompile : Compile); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:591:13: note: later used here 591 | outstr += make_vcxproj_cl_entry(t, t == "fixture.cpp" ? Precompile : Compile); | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:593:12: warning: parameter 'outstr' is later invalidated [-Wlifetime-safety-invalidation] 593 | }, [&](std::string &outstr){ | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:605:20: note: parameter 'outstr' is invalidated here 605 | outstr += make_vcxproj_cl_entry(testfile_h, Include); | ~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/tools/dmake/dmake.cpp:605:13: note: later used here 605 | outstr += make_vcxproj_cl_entry(testfile_h, Include); | ^~~~~~ 14 warnings generated. [241/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/filelist/CMakeFiles/test-filelist.dir/__/__/filelist.cpp.o -MF gui/test/filelist/CMakeFiles/test-filelist.dir/__/__/filelist.cpp.o.d -o gui/test/filelist/CMakeFiles/test-filelist.dir/__/__/filelist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/filelist.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/filelist.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ 1 warning generated. [242/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/filelist -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/filelist/CMakeFiles/test-filelist.dir/testfilelist.cpp.o -MF gui/test/filelist/CMakeFiles/test-filelist.dir/testfilelist.cpp.o.d -o gui/test/filelist/CMakeFiles/test-filelist.dir/testfilelist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/filelist/testfilelist.cpp [243/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/moc_testresultstree.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/moc_testresultstree.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/moc_testresultstree.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/moc_testresultstree.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/moc_testresultstree.cpp:116:16: note: param returned here 116 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. [244/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultitem.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultitem.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultitem.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultitem.cpp [245/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/projectfile -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/projectfile.cpp.o -MF gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/projectfile.cpp.o.d -o gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/projectfile.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.h:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:892:45: note: in instantiation of function template specialization 'utils::as_const>' requested here 892 | for (const QString& incdir : utils::as_const(mIncludeDirs)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:955:71: note: in instantiation of function template specialization 'utils::as_const>' requested here 955 | for (const SuppressionList::Suppression &suppression : utils::as_const(mSuppressions)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 23 warnings generated. [246/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_common.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_common.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_common.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_common.cpp [247/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_applicationlist.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_applicationlist.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_applicationlist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_applicationlist.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_applicationlist.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/applicationlist.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_applicationlist.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 4 warnings generated. [248/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultstree.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultstree.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultstree.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultstree.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultstree.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultstree.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_resultstree.cpp:194:16: note: param returned here 194 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 7 warnings generated. [249/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_projectfile.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_projectfile.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_projectfile.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_projectfile.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_projectfile.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_projectfile.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_projectfile.cpp:9: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_projectfile.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 19 warnings generated. [250/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadhandler.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadhandler.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadhandler.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadhandler.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadhandler.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadresult.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadhandler.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadresult.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadhandler.cpp:173:16: note: param returned here 173 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 12 warnings generated. [251/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadresult.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadresult.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadresult.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadresult.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadresult.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadresult.h:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/checkthread.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/threadresult.h:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/../../../../../../gui/checkthread.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree/__/__/moc_threadresult.cpp:153:16: note: param returned here 153 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 12 warnings generated. [252/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=tools/dmake/CMakeFiles/dmake.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o tools/dmake/CMakeFiles/dmake.dir/dmake.cpp.o -o bin/dmake lib/libcli.a lib/libsimplecpp.a lib/libfrontend.a lib/libsimplecpp.a /usr/lib64/libtinyxml2.so.11.0.0 && : [253/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0 && /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/dmake [254/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultitem.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultitem.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultitem.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ 6 warnings generated. [255/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -fpch-instantiate-templates -Xclang -emit-pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -x c++-header -MD -MT test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -MF test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch.d -o test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.cxx In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./importproject.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:51:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 51 | const std::string& dump() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:52:16: note: param returned here 52 | return mDump; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:55:81: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 55 | const std::map>& getUsedVariables() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:56:16: note: param returned here 56 | return mUsedVariables; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:175:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 175 | const std::string & scope() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:176:20: note: param returned here 176 | return mScope; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:178:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 178 | const std::string & name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:179:20: note: param returned here 179 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:181:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | const std::string & fullName() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./templatesimplifier.h:182:20: note: param returned here 182 | return mFullName; | ^~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:61:56: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 61 | ScopeInfo2(std::string name_, const Token *bodyEnd_, std::set usingNamespaces_ = std::set()) : name(std::move(name_)), bodyEnd(bodyEnd_), usingNamespaces(std::move(usingNamespaces_)) {} | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:63:24: note: escapes to this field 63 | const Token* const bodyEnd{}; | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:228:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 228 | const std::string &str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:229:16: note: param returned here 229 | return mStr; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:773:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 773 | Token* isInsertedBrace(bool b) { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:775:16: note: param returned here 775 | return this; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:1616:32: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1616 | RET_NONNULL Token *astTop() { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:1623:16: note: param returned here 1623 | return ret; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:1626:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1626 | RET_NONNULL const Token *astTop() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:1633:16: note: param returned here 1633 | return ret; | ^~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenlist.h:143:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 143 | const std::vector& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenlist.h:144:16: note: param returned here 144 | return mFiles; | ^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:902:31: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 902 | static T *tokAtImpl(T *tok, int idx) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:254:16: note: in instantiation of function template specialization 'Token::tokAtImpl' requested here 254 | return tokAtImpl(this, idx); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:912:16: note: param returned here 912 | return tok; | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:902:31: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 902 | static T *tokAtImpl(T *tok, int idx) | ~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:258:16: note: in instantiation of function template specialization 'Token::tokAtImpl' requested here 258 | return tokAtImpl(this, idx); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./token.h:912:16: note: param returned here 912 | return tok; | ^~~ 19 warnings generated. [256/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/testresultstree.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/testresultstree.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/testresultstree.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationlist.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree/testresultstree.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 30 warnings generated. [257/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -MD -MT cli/CMakeFiles/cppcheck.dir/main.cpp.o -MF cli/CMakeFiles/cppcheck.dir/main.cpp.o.d -o cli/CMakeFiles/cppcheck.dir/main.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/main.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/main.cpp:59: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/cppcheckexecutor.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ 3 warnings generated. [258/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/helpers.cpp.o -MF test/CMakeFiles/testrunner.dir/helpers.cpp.o.d -o test/CMakeFiles/testrunner.dir/helpers.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.cpp:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ 14 warnings generated. [259/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultstree.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultstree.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultstree.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:34: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadresult.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:139:45: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 139 | const QString& getCheckDirectory() const; | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:1202:12: note: param returned here 1202 | return mCheckPath; | ^~~~~~~~~~ 31 warnings generated. [260/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/fixture.cpp.o -MF test/CMakeFiles/testrunner.dir/fixture.cpp.o.d -o test/CMakeFiles/testrunner.dir/fixture.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:64:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 64 | const TestSet &tests() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:65:20: note: param returned here 65 | return _tests; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:211:64: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 211 | SettingsBuilder& checkLevel(Settings::CheckLevel level); | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:505:12: note: param returned here 505 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:213:51: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 213 | SettingsBuilder& library(const char lib[]); | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:522:12: note: param returned here 522 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:220:55: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 220 | SettingsBuilder& platform(Platform::Type type); | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:536:12: note: param returned here 536 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:240:75: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 240 | SettingsBuilder& libraryxml(const char xmldata[], std::size_t len); | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.cpp:548:12: note: param returned here 548 | return *this; | ^~~~~ 26 warnings generated. [261/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/main.cpp.o -MF test/CMakeFiles/testrunner.dir/main.cpp.o.d -o test/CMakeFiles/testrunner.dir/main.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/main.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/main.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/main.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/main.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ 28 warnings generated. [262/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/options.cpp.o -MF test/CMakeFiles/testrunner.dir/options.cpp.o.d -o test/CMakeFiles/testrunner.dir/options.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:17: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.h:52:76: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 52 | const std::map>& which_tests() const; | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:87:12: note: param returned here 87 | return mWhichTests; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:17: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.h:57:35: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 57 | const std::string& exe() const; | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:92:12: note: param returned here 92 | return mExe; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:17: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.h:50:44: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 50 | TimerResultsIntf* timer_results() const; | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:102:12: note: param returned here 102 | return mTimerResults.get(); | ^~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:17: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.h:55:51: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 55 | const std::vector& errors() const; | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/options.cpp:107:12: note: param returned here 107 | return mErrors; | ^~~~~~~ 4 warnings generated. [263/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testanalyzerinformation.cpp.o -MF test/CMakeFiles/testrunner.dir/testanalyzerinformation.cpp.o.d -o test/CMakeFiles/testrunner.dir/testanalyzerinformation.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testanalyzerinformation.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testanalyzerinformation.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testanalyzerinformation.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testanalyzerinformation.cpp:279:1: note: param returned here 279 | REGISTER_TEST(TestAnalyzerInformation) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [264/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/test64bit.cpp.o -MF test/CMakeFiles/testrunner.dir/test64bit.cpp.o.d -o test/CMakeFiles/testrunner.dir/test64bit.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/test64bit.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/test64bit.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check64bit.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/test64bit.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/test64bit.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/test64bit.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/test64bit.cpp:335:1: note: param returned here 335 | REGISTER_TEST(Test64BitPortability) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [265/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testassert.cpp.o -MF test/CMakeFiles/testrunner.dir/testassert.cpp.o.d -o test/CMakeFiles/testrunner.dir/testassert.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testassert.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testassert.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkassert.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testassert.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testassert.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testassert.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testassert.cpp:274:1: note: param returned here 274 | REGISTER_TEST(TestAssert) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [266/411] cd /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui && /usr/bin/cmake -E cmake_autogen /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui_autogen.dir/AutogenInfo.json Release && /usr/bin/cmake -E touch /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/timestamp && /usr/bin/cmake -E cmake_transform_depfile Ninja gccdepfile /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0 /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/deps /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/CMakeFiles/d/62813d1c30b85d1eb73d58b95efff5bb4cea1959ea08c6089611e350096e39b7.d [267/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testastutils.cpp.o -MF test/CMakeFiles/testrunner.dir/testastutils.cpp.o.d -o test/CMakeFiles/testrunner.dir/testastutils.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./astutils.h:249:34: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 249 | ReferenceToken(const Token* t, ErrorPath e) | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./astutils.h:253:18: note: escapes to this field 253 | const Token* token; | ~~~~~~~~~~~~~^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testastutils.cpp:523:1: note: param returned here 523 | REGISTER_TEST(TestAstUtils) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 35 warnings generated. [268/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testbool.cpp.o -MF test/CMakeFiles/testrunner.dir/testbool.cpp.o.d -o test/CMakeFiles/testrunner.dir/testbool.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbool.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbool.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkbool.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbool.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbool.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbool.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbool.cpp:1395:1: note: param returned here 1395 | REGISTER_TEST(TestBool) | ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [269/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcharvar.cpp.o -MF test/CMakeFiles/testrunner.dir/testcharvar.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcharvar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcharvar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcharvar.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkother.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcharvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcharvar.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcharvar.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcharvar.cpp:200:1: note: param returned here 200 | REGISTER_TEST(TestCharVar) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [270/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcheck.cpp.o -MF test/CMakeFiles/testrunner.dir/testcheck.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcheck.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheck.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheck.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheck.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheck.cpp:48:1: note: param returned here 48 | REGISTER_TEST(TestCheck) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [271/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcheckersreport.cpp.o -MF test/CMakeFiles/testrunner.dir/testcheckersreport.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcheckersreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheckersreport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheckersreport.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheckersreport.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcheckersreport.cpp:56:1: note: param returned here 56 | REGISTER_TEST(TestCheckersReport) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [272/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -fpch-instantiate-templates -Xclang -emit-pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -x c++-header -MD -MT gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -MF gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch.d -o gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.cxx In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:56:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 56 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:58:16: note: param returned here 58 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:61:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 61 | const std::string& spath() const | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:63:16: note: param returned here 63 | return mPathSimplified; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:66:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 66 | const std::string& abspath() const | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./filesettings.h:71:16: note: param returned here 71 | return mPathAbsolute; | ^~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.h:118:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 118 | const QString& getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.h:119:16: note: param returned here 119 | return mFileName; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.h:150:47: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit LineNumberArea(CodeEditor *editor) : QWidget(editor) { | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.h:164:17: note: escapes to this field 164 | CodeEditor *mCodeEditor; | ~~~~~~~~~~~~^~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:26: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ 9 warnings generated. [273/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testclangimport.cpp.o -MF test/CMakeFiles/testrunner.dir/testclangimport.cpp.o.d -o test/CMakeFiles/testrunner.dir/testclangimport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclangimport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclangimport.cpp:18: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclangimport.cpp:18: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclangimport.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclangimport.cpp:1377:1: note: param returned here 1377 | REGISTER_TEST(TestClangImport) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 31 warnings generated. [274/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testautovariables.cpp.o -MF test/CMakeFiles/testrunner.dir/testautovariables.cpp.o.d -o test/CMakeFiles/testrunner.dir/testautovariables.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testautovariables.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testautovariables.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkautovariables.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testautovariables.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testautovariables.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testautovariables.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testautovariables.cpp:5006:1: note: param returned here 5006 | REGISTER_TEST(TestAutoVariables) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [275/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcolor.cpp.o -MF test/CMakeFiles/testrunner.dir/testcolor.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcolor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcolor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcolor.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcolor.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcolor.cpp:38:1: note: param returned here 38 | REGISTER_TEST(TestColor) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [276/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testbufferoverrun.cpp.o -MF test/CMakeFiles/testrunner.dir/testbufferoverrun.cpp.o.d -o test/CMakeFiles/testrunner.dir/testbufferoverrun.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbufferoverrun.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbufferoverrun.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkbufferoverrun.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbufferoverrun.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkbufferoverrun.h:28: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./ctu.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbufferoverrun.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbufferoverrun.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testbufferoverrun.cpp:6040:1: note: param returned here 6040 | REGISTER_TEST(TestBufferOverrun) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [277/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcmdlineparser.cpp.o -MF test/CMakeFiles/testrunner.dir/testcmdlineparser.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcmdlineparser.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/./cmdlineparser.h:85:55: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | const std::list& getFiles() const { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/./cmdlineparser.h:86:16: note: param returned here 86 | return mFiles; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/./cmdlineparser.h:92:59: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 92 | const std::list& getFileSettings() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/./cmdlineparser.h:93:16: note: param returned here 93 | return mFileSettings; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp:33: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcmdlineparser.cpp:3852:1: note: param returned here 3852 | REGISTER_TEST(TestCmdlineParser) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [278/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testconstructors.cpp.o -MF test/CMakeFiles/testrunner.dir/testconstructors.cpp.o.d -o test/CMakeFiles/testrunner.dir/testconstructors.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:240:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 240 | explicit Usage(const Variable *var) : var(var) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:243:25: note: escapes to this field 243 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testconstructors.cpp:4653:1: note: param returned here 4653 | REGISTER_TEST(TestConstructors) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 26 warnings generated. [279/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcppcheck.cpp.o -MF test/CMakeFiles/testrunner.dir/testcppcheck.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcppcheck.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:33: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:154:83: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | CppCheck::ExecuteCmdFn getExecuteCommand(const std::string& fname, int& called) const | ~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:158:9: note: param returned here 158 | return [&](std::string exe, std::vector args, std::string redirect, std::string& /*output*/) -> int { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159 | ++called; | ~~~~~~~~~ 160 | if (exe == exename_("clang-tidy")) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 161 | { | ~ 162 | ASSERT_EQUALS(4, args.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 163 | ASSERT_EQUALS("-quiet", args[0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 164 | ASSERT_EQUALS("-checks=*,-clang-analyzer-*,-llvm*", args[1]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 165 | ASSERT_EQUALS(fname, args[2]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 166 | ASSERT_EQUALS("--", args[3]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | ASSERT_EQUALS("2>&1", redirect); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | return EXIT_SUCCESS; | ~~~~~~~~~~~~~~~~~~~~ 169 | } | ~ 170 | if (exe == exename_("python3")) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 | { | ~ 172 | ASSERT_EQUALS(1, args.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | ASSERT_EQUALS("--version", args[0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:154:90: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | CppCheck::ExecuteCmdFn getExecuteCommand(const std::string& fname, int& called) const | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:158:9: note: param returned here 158 | return [&](std::string exe, std::vector args, std::string redirect, std::string& /*output*/) -> int { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159 | ++called; | ~~~~~~~~~ 160 | if (exe == exename_("clang-tidy")) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 161 | { | ~ 162 | ASSERT_EQUALS(4, args.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 163 | ASSERT_EQUALS("-quiet", args[0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 164 | ASSERT_EQUALS("-checks=*,-clang-analyzer-*,-llvm*", args[1]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 165 | ASSERT_EQUALS(fname, args[2]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 166 | ASSERT_EQUALS("--", args[3]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | ASSERT_EQUALS("2>&1", redirect); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | return EXIT_SUCCESS; | ~~~~~~~~~~~~~~~~~~~~ 169 | } | ~ 170 | if (exe == exename_("python3")) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 | { | ~ 172 | ASSERT_EQUALS(1, args.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | ASSERT_EQUALS("--version", args[0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:154:70: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | CppCheck::ExecuteCmdFn getExecuteCommand(const std::string& fname, int& called) const | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:158:9: note: param returned here 158 | return [&](std::string exe, std::vector args, std::string redirect, std::string& /*output*/) -> int { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 159 | ++called; | ~~~~~~~~~ 160 | if (exe == exename_("clang-tidy")) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 161 | { | ~ 162 | ASSERT_EQUALS(4, args.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 163 | ASSERT_EQUALS("-quiet", args[0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 164 | ASSERT_EQUALS("-checks=*,-clang-analyzer-*,-llvm*", args[1]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 165 | ASSERT_EQUALS(fname, args[2]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 166 | ASSERT_EQUALS("--", args[3]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 167 | ASSERT_EQUALS("2>&1", redirect); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 168 | return EXIT_SUCCESS; | ~~~~~~~~~~~~~~~~~~~~ 169 | } | ~ 170 | if (exe == exename_("python3")) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 171 | { | ~ 172 | ASSERT_EQUALS(1, args.size()); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 173 | ASSERT_EQUALS("--version", args[0]); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcppcheck.cpp:764:1: note: param returned here 764 | REGISTER_TEST(TestCppcheck) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 36 warnings generated. [280/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testcondition.cpp.o -MF test/CMakeFiles/testrunner.dir/testcondition.cpp.o.d -o test/CMakeFiles/testrunner.dir/testcondition.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcondition.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcondition.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkcondition.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcondition.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcondition.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcondition.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testcondition.cpp:6877:1: note: param returned here 6877 | REGISTER_TEST(TestCondition) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [281/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testclass.cpp.o -MF test/CMakeFiles/testrunner.dir/testclass.cpp.o.d -o test/CMakeFiles/testrunner.dir/testclass.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:240:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 240 | explicit Usage(const Variable *var) : var(var) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:243:25: note: escapes to this field 243 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./ctu.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testclass.cpp:9505:1: note: param returned here 9505 | REGISTER_TEST(TestClass) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 26 warnings generated. [282/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testexceptionsafety.cpp.o -MF test/CMakeFiles/testrunner.dir/testexceptionsafety.cpp.o.d -o test/CMakeFiles/testrunner.dir/testexceptionsafety.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexceptionsafety.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexceptionsafety.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkexceptionsafety.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexceptionsafety.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexceptionsafety.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexceptionsafety.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexceptionsafety.cpp:548:1: note: param returned here 548 | REGISTER_TEST(TestExceptionSafety) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [283/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testerrorlogger.cpp.o -MF test/CMakeFiles/testrunner.dir/testerrorlogger.cpp.o.d -o test/CMakeFiles/testrunner.dir/testerrorlogger.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testerrorlogger.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testerrorlogger.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testerrorlogger.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testerrorlogger.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testerrorlogger.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testerrorlogger.cpp:871:1: note: param returned here 871 | REGISTER_TEST(TestErrorLogger) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 23 warnings generated. [284/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testexecutor.cpp.o -MF test/CMakeFiles/testrunner.dir/testexecutor.cpp.o.d -o test/CMakeFiles/testrunner.dir/testexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexecutor.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexecutor.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexecutor.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexecutor.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testexecutor.cpp:88:1: note: param returned here 88 | REGISTER_TEST(TestExecutor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 23 warnings generated. [285/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testfilesettings.cpp.o -MF test/CMakeFiles/testrunner.dir/testfilesettings.cpp.o.d -o test/CMakeFiles/testrunner.dir/testfilesettings.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilesettings.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilesettings.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilesettings.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilesettings.cpp:78:1: note: param returned here 78 | REGISTER_TEST(TestFileSettings) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [286/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testfrontend.cpp.o -MF test/CMakeFiles/testrunner.dir/testfrontend.cpp.o.d -o test/CMakeFiles/testrunner.dir/testfrontend.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfrontend.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfrontend.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfrontend.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfrontend.cpp:147:1: note: param returned here 147 | REGISTER_TEST(TestFrontend) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [287/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testfilelister.cpp.o -MF test/CMakeFiles/testrunner.dir/testfilelister.cpp.o.d -o test/CMakeFiles/testrunner.dir/testfilelister.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilelister.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilelister.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilelister.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilelister.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfilelister.cpp:203:1: note: param returned here 203 | REGISTER_TEST(TestFileLister) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 20 warnings generated. [288/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testimportproject.cpp.o -MF test/CMakeFiles/testrunner.dir/testimportproject.cpp.o.d -o test/CMakeFiles/testrunner.dir/testimportproject.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testimportproject.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testimportproject.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testimportproject.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testimportproject.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testimportproject.cpp:778:1: note: param returned here 778 | REGISTER_TEST(TestImportProject) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 20 warnings generated. [289/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testincompletestatement.cpp.o -MF test/CMakeFiles/testrunner.dir/testincompletestatement.cpp.o.d -o test/CMakeFiles/testrunner.dir/testincompletestatement.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testincompletestatement.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testincompletestatement.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkother.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testincompletestatement.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testincompletestatement.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testincompletestatement.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testincompletestatement.cpp:861:1: note: param returned here 861 | REGISTER_TEST(TestIncompleteStatement) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [290/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testinternal.cpp.o -MF test/CMakeFiles/testrunner.dir/testinternal.cpp.o.d -o test/CMakeFiles/testrunner.dir/testinternal.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testinternal.cpp [291/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testfunctions.cpp.o -MF test/CMakeFiles/testrunner.dir/testfunctions.cpp.o.d -o test/CMakeFiles/testrunner.dir/testfunctions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfunctions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfunctions.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkfunctions.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfunctions.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfunctions.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfunctions.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testfunctions.cpp:2381:1: note: param returned here 2381 | REGISTER_TEST(TestFunctions) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [292/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testgarbage.cpp.o -MF test/CMakeFiles/testrunner.dir/testgarbage.cpp.o.d -o test/CMakeFiles/testrunner.dir/testgarbage.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testgarbage.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testgarbage.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testgarbage.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testgarbage.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testgarbage.cpp:1911:1: note: param returned here 1911 | REGISTER_TEST(TestGarbage) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [293/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testlibrary.cpp.o -MF test/CMakeFiles/testrunner.dir/testlibrary.cpp.o.d -o test/CMakeFiles/testrunner.dir/testlibrary.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testlibrary.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testlibrary.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testlibrary.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testlibrary.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testlibrary.cpp:1186:1: note: param returned here 1186 | REGISTER_TEST(TestLibrary) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [294/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testleakautovar.cpp.o -MF test/CMakeFiles/testrunner.dir/testleakautovar.cpp.o.d -o test/CMakeFiles/testrunner.dir/testleakautovar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkleakautovar.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkleakautovar.h:53:96: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 53 | explicit AllocInfo(int type_ = 0, AllocStatus status_ = NOALLOC, const Token* allocTok_ = nullptr) : status(status_), type(type_), allocTok(allocTok_) {} | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkleakautovar.h:52:23: note: escapes to this field 52 | const Token * allocTok; | ~~~~~~~~~~~~~~^~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:3281:1: note: param returned here 3281 | REGISTER_TEST(TestLeakAutoVar) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:3329:1: note: param returned here 3329 | REGISTER_TEST(TestLeakAutoVarRecursiveCountLimit) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:3434:1: note: param returned here 3434 | REGISTER_TEST(TestLeakAutoVarStrcpy) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:3508:1: note: param returned here 3508 | REGISTER_TEST(TestLeakAutoVarWindows) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testleakautovar.cpp:3587:1: note: param returned here 3587 | REGISTER_TEST(TestLeakAutoVarPosix) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 30 warnings generated. [295/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testmemleak.cpp.o -MF test/CMakeFiles/testrunner.dir/testmemleak.cpp.o.d -o test/CMakeFiles/testrunner.dir/testmemleak.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkmemoryleak.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:101:1: note: param returned here 101 | REGISTER_TEST(TestMemleak) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:477:1: note: param returned here 477 | REGISTER_TEST(TestMemleakInFunction) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:1697:1: note: param returned here 1697 | REGISTER_TEST(TestMemleakInClass) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:2381:1: note: param returned here 2381 | REGISTER_TEST(TestMemleakStructMember) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmemleak.cpp:3088:1: note: param returned here 3088 | REGISTER_TEST(TestMemleakNoVar) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 41 warnings generated. [296/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testoptions.cpp.o -MF test/CMakeFiles/testrunner.dir/testoptions.cpp.o.d -o test/CMakeFiles/testrunner.dir/testoptions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testoptions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testoptions.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testoptions.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testoptions.cpp:179:1: note: param returned here 179 | REGISTER_TEST(TestOptions) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [297/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testnullpointer.cpp.o -MF test/CMakeFiles/testrunner.dir/testnullpointer.cpp.o.d -o test/CMakeFiles/testrunner.dir/testnullpointer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testnullpointer.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testnullpointer.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checknullpointer.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testnullpointer.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./ctu.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testnullpointer.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testnullpointer.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testnullpointer.cpp:5094:1: note: param returned here 5094 | REGISTER_TEST(TestNullPointer) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [298/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testmathlib.cpp.o -MF test/CMakeFiles/testrunner.dir/testmathlib.cpp.o.d -o test/CMakeFiles/testrunner.dir/testmathlib.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmathlib.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmathlib.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmathlib.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testmathlib.cpp:1516:1: note: param returned here 1516 | REGISTER_TEST(TestMathLib) | ^~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [299/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testio.cpp.o -MF test/CMakeFiles/testrunner.dir/testio.cpp.o.d -o test/CMakeFiles/testrunner.dir/testio.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testio.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testio.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkio.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testio.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testio.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testio.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testio.cpp:5125:1: note: param returned here 5125 | REGISTER_TEST(TestIO) | ^~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [300/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testpathmatch.cpp.o -MF test/CMakeFiles/testrunner.dir/testpathmatch.cpp.o.d -o test/CMakeFiles/testrunner.dir/testpathmatch.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpathmatch.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpathmatch.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpathmatch.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpathmatch.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpathmatch.cpp:313:1: note: param returned here 313 | REGISTER_TEST(TestPathMatch) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 20 warnings generated. [301/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testplatform.cpp.o -MF test/CMakeFiles/testrunner.dir/testplatform.cpp.o.d -o test/CMakeFiles/testrunner.dir/testplatform.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testplatform.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testplatform.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testplatform.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testplatform.cpp:461:1: note: param returned here 461 | REGISTER_TEST(TestPlatform) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [302/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testpostfixoperator.cpp.o -MF test/CMakeFiles/testrunner.dir/testpostfixoperator.cpp.o.d -o test/CMakeFiles/testrunner.dir/testpostfixoperator.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpostfixoperator.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpostfixoperator.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkpostfixoperator.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpostfixoperator.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpostfixoperator.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpostfixoperator.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpostfixoperator.cpp:388:1: note: param returned here 388 | REGISTER_TEST(TestPostfixOperator) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [303/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testpath.cpp.o -MF test/CMakeFiles/testrunner.dir/testpath.cpp.o.d -o test/CMakeFiles/testrunner.dir/testpath.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpath.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpath.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpath.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpath.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpath.cpp:654:1: note: param returned here 654 | REGISTER_TEST(TestPath) | ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [304/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testprogrammemory.cpp.o -MF test/CMakeFiles/testrunner.dir/testprogrammemory.cpp.o.d -o test/CMakeFiles/testrunner.dir/testprogrammemory.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprogrammemory.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprogrammemory.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprogrammemory.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprogrammemory.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprogrammemory.cpp:102:36: note: in instantiation of function template specialization 'utils::as_const' requested here 102 | ASSERT_THROW_EQUALS(utils::as_const(pm).at(123), std::out_of_range, "ProgramMemory::at"); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:333:75: note: expanded from macro 'ASSERT_THROW_EQUALS' 333 | #define ASSERT_THROW_EQUALS( CMD, EXCEPTION, EXPECTED ) do { try { (void)(CMD); assertThrowFail(__FILE__, __LINE__); } catch (const AssertFailedError&) { throw; } catch (const EXCEPTION&e) { assertEquals(__FILE__, __LINE__, EXPECTED, e.what()); } catch (...) { assertThrowFail(__FILE__, __LINE__); } } while (false) | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprogrammemory.cpp:106:1: note: param returned here 106 | REGISTER_TEST(TestProgramMemory) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 23 warnings generated. [305/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testregex.cpp.o -MF test/CMakeFiles/testrunner.dir/testregex.cpp.o.d -o test/CMakeFiles/testrunner.dir/testregex.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testregex.cpp [306/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testprocessexecutor.cpp.o -MF test/CMakeFiles/testrunner.dir/testprocessexecutor.cpp.o.d -o test/CMakeFiles/testrunner.dir/testprocessexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp:319:1: note: param returned here 319 | REGISTER_TEST(TestProcessExecutorFiles) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testprocessexecutor.cpp:320:1: note: param returned here 320 | REGISTER_TEST(TestProcessExecutorFS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 24 warnings generated. [307/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsettings.cpp.o -MF test/CMakeFiles/testrunner.dir/testsettings.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsettings.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsettings.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsettings.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsettings.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsettings.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsettings.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsettings.cpp:396:1: note: param returned here 396 | REGISTER_TEST(TestSettings) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 23 warnings generated. [308/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsarifreport.cpp.o -MF test/CMakeFiles/testrunner.dir/testsarifreport.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsarifreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsarifreport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsarifreport.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./sarifreport.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsarifreport.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./sarifreport.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsarifreport.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsarifreport.cpp:906:1: note: param returned here 906 | REGISTER_TEST(TestSarifReport) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsarifreport.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./sarifreport.h:29: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ 39 warnings generated. [309/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsimplifytokens.cpp.o -MF test/CMakeFiles/testrunner.dir/testsimplifytokens.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsimplifytokens.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytokens.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytokens.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytokens.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytokens.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytokens.cpp:2701:1: note: param returned here 2701 | REGISTER_TEST(TestSimplifyTokens) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [310/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsimplifytemplate.cpp.o -MF test/CMakeFiles/testrunner.dir/testsimplifytemplate.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsimplifytemplate.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytemplate.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytemplate.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytemplate.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytemplate.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytemplate.cpp:6812:1: note: param returned here 6812 | REGISTER_TEST(TestSimplifyTemplate) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [311/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testother.cpp.o -MF test/CMakeFiles/testrunner.dir/testother.cpp.o.d -o test/CMakeFiles/testrunner.dir/testother.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testother.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testother.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkother.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testother.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testother.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testother.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testother.cpp:14271:1: note: param returned here 14271 | REGISTER_TEST(TestOther) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [312/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testpreprocessor.cpp.o -MF test/CMakeFiles/testrunner.dir/testpreprocessor.cpp.o.d -o test/CMakeFiles/testrunner.dir/testpreprocessor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp:27: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp:30: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp:32: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp:33: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testpreprocessor.cpp:3283:1: note: param returned here 3283 | REGISTER_TEST(TestPreprocessor) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 33 warnings generated. [313/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsingleexecutor.cpp.o -MF test/CMakeFiles/testrunner.dir/testsingleexecutor.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsingleexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp:315:1: note: param returned here 315 | REGISTER_TEST(TestSingleExecutorFiles) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsingleexecutor.cpp:316:1: note: param returned here 316 | REGISTER_TEST(TestSingleExecutorFS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 24 warnings generated. [314/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/teststandards.cpp.o -MF test/CMakeFiles/testrunner.dir/teststandards.cpp.o.d -o test/CMakeFiles/testrunner.dir/teststandards.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststandards.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststandards.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststandards.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststandards.cpp:144:1: note: param returned here 144 | REGISTER_TEST(TestStandards) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [315/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsimplifyusing.cpp.o -MF test/CMakeFiles/testrunner.dir/testsimplifyusing.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsimplifyusing.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifyusing.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifyusing.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifyusing.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifyusing.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifyusing.cpp:1717:1: note: param returned here 1717 | REGISTER_TEST(TestSimplifyUsing) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [316/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsizeof.cpp.o -MF test/CMakeFiles/testrunner.dir/testsizeof.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsizeof.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsizeof.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsizeof.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checksizeof.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsizeof.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsizeof.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsizeof.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsizeof.cpp:954:1: note: param returned here 954 | REGISTER_TEST(TestSizeof) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [317/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsummaries.cpp.o -MF test/CMakeFiles/testrunner.dir/testsummaries.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsummaries.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsummaries.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsummaries.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsummaries.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsummaries.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsummaries.cpp:60:1: note: param returned here 60 | REGISTER_TEST(TestSummaries) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [318/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsimplifytypedef.cpp.o -MF test/CMakeFiles/testrunner.dir/testsimplifytypedef.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsimplifytypedef.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytypedef.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytypedef.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytypedef.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytypedef.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsimplifytypedef.cpp:4791:1: note: param returned here 4791 | REGISTER_TEST(TestSimplifyTypedef) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [319/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/teststring.cpp.o -MF test/CMakeFiles/testrunner.dir/teststring.cpp.o.d -o test/CMakeFiles/testrunner.dir/teststring.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststring.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststring.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkstring.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststring.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststring.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststring.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststring.cpp:858:1: note: param returned here 858 | REGISTER_TEST(TestString) | ^~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [320/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testthreadexecutor.cpp.o -MF test/CMakeFiles/testrunner.dir/testthreadexecutor.cpp.o.d -o test/CMakeFiles/testrunner.dir/testthreadexecutor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp:320:1: note: param returned here 320 | REGISTER_TEST(TestThreadExecutorFiles) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testthreadexecutor.cpp:321:1: note: param returned here 321 | REGISTER_TEST(TestThreadExecutorFS) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 24 warnings generated. [321/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testtimer.cpp.o -MF test/CMakeFiles/testrunner.dir/testtimer.cpp.o.d -o test/CMakeFiles/testrunner.dir/testtimer.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtimer.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtimer.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtimer.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtimer.cpp:70:1: note: param returned here 70 | REGISTER_TEST(TestTimer) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [322/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testtoken.cpp.o -MF test/CMakeFiles/testrunner.dir/testtoken.cpp.o.d -o test/CMakeFiles/testrunner.dir/testtoken.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtoken.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtoken.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtoken.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtoken.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtoken.cpp:1520:1: note: param returned here 1520 | REGISTER_TEST(TestToken) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [323/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsuppressions.cpp.o -MF test/CMakeFiles/testrunner.dir/testsuppressions.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsuppressions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsuppressions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsuppressions.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsuppressions.cpp:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsuppressions.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsuppressions.cpp:32: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:57:47: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 57 | const std::string &getFileName() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./suppressions.h:58:20: note: param returned here 58 | return mFileName; | ^~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsuppressions.cpp:2390:1: note: param returned here 2390 | REGISTER_TEST(TestSuppressions) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 23 warnings generated. [324/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/teststl.cpp.o -MF test/CMakeFiles/testrunner.dir/teststl.cpp.o.d -o test/CMakeFiles/testrunner.dir/teststl.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststl.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststl.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkstl.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststl.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststl.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststl.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/teststl.cpp:7785:1: note: param returned here 7785 | REGISTER_TEST(TestStl) | ^~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [325/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testtokenlist.cpp.o -MF test/CMakeFiles/testrunner.dir/testtokenlist.cpp.o.d -o test/CMakeFiles/testrunner.dir/testtokenlist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenlist.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenlist.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenlist.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenlist.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenlist.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenlist.cpp:192:1: note: param returned here 192 | REGISTER_TEST(TestTokenList) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 32 warnings generated. [326/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testtokenrange.cpp.o -MF test/CMakeFiles/testrunner.dir/testtokenrange.cpp.o.d -o test/CMakeFiles/testrunner.dir/testtokenrange.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:131:1: note: param returned here 131 | REGISTER_TEST(TestTokenRange) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:38:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:75:45: note: in instantiation of member function 'TokenRangeBase::TokenRangeBase' requested here 75 | TokenRange(Token* front, Token* back) : TokenRangeBase(front, back) {} | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:34:8: note: escapes to this field 34 | T* mFront; | ~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:38:37: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:35:8: note: escapes to this field 35 | T* mBack; | ~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:38:28: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:80:62: note: in instantiation of member function 'TokenRangeBase::TokenRangeBase' requested here 80 | ConstTokenRange(const Token* front, const Token* back) : TokenRangeBase(front, back) {} | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:34:8: note: escapes to this field 34 | T* mFront; | ~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:38:37: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 38 | TokenRangeBase(T* front, T* back) : mFront(front), mBack(back) {} | ~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:35:8: note: escapes to this field 35 | T* mBack; | ~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:49:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 49 | explicit TokenIterator(T* t) : mt(t) {} | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:66:16: note: in instantiation of member function 'TokenRangeBase::TokenIterator::TokenIterator' requested here 66 | return TokenIterator(mFront); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:52:29: note: in instantiation of member function 'TokenRangeBase::begin' requested here 52 | for (const Token* t : range) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:47:12: note: escapes to this field 47 | T* mt; | ~~~^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:50:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 50 | TokenIterator& operator++() { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenrange.cpp:52:29: note: in instantiation of member function 'TokenRangeBase::TokenIterator::operator++' requested here 52 | for (const Token* t : range) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./tokenrange.h:52:20: note: param returned here 52 | return *this; | ^~~~~ 40 warnings generated. [327/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testtype.cpp.o -MF test/CMakeFiles/testrunner.dir/testtype.cpp.o.d -o test/CMakeFiles/testrunner.dir/testtype.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtype.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtype.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checktype.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtype.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtype.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtype.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtype.cpp:642:1: note: param returned here 642 | REGISTER_TEST(TestType) | ^~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [328/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testunusedfunctions.cpp.o -MF test/CMakeFiles/testrunner.dir/testunusedfunctions.cpp.o.d -o test/CMakeFiles/testrunner.dir/testunusedfunctions.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedfunctions.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedfunctions.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedfunctions.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedfunctions.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedfunctions.cpp:843:1: note: param returned here 843 | REGISTER_TEST(TestUnusedFunctions) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [329/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testunusedprivfunc.cpp.o -MF test/CMakeFiles/testrunner.dir/testunusedprivfunc.cpp.o.d -o test/CMakeFiles/testrunner.dir/testunusedprivfunc.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:240:43: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 240 | explicit Usage(const Variable *var) : var(var) {} | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkclass.h:243:25: note: escapes to this field 243 | const Variable *var; | ~~~~~~~~~~~~~~~~^~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedprivfunc.cpp:881:1: note: param returned here 881 | REGISTER_TEST(TestUnusedPrivateFunction) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 26 warnings generated. [330/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testuninitvar.cpp.o -MF test/CMakeFiles/testrunner.dir/testuninitvar.cpp.o.d -o test/CMakeFiles/testrunner.dir/testuninitvar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testuninitvar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testuninitvar.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkuninitvar.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testuninitvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./ctu.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testuninitvar.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testuninitvar.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testuninitvar.cpp:8267:1: note: param returned here 8267 | REGISTER_TEST(TestUninitVar) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [331/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testunusedvar.cpp.o -MF test/CMakeFiles/testrunner.dir/testunusedvar.cpp.o.d -o test/CMakeFiles/testrunner.dir/testunusedvar.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkunusedvar.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testunusedvar.cpp:7484:1: note: param returned here 7484 | REGISTER_TEST(TestUnusedVar) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 35 warnings generated. [332/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testvaarg.cpp.o -MF test/CMakeFiles/testrunner.dir/testvaarg.cpp.o.d -o test/CMakeFiles/testrunner.dir/testvaarg.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvaarg.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvaarg.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkvaarg.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:67: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:49:21: note: escapes to this field 49 | const Settings& mSettings; | ~~~~~~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:48:28: note: escapes to this field 48 | const Tokenizer* const mTokenizer{}; | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:40:93: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 40 | CheckImpl(const Tokenizer *tokenizer, const Settings &settings, ErrorLogger &errorLogger) | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./checkimpl.h:50:18: note: escapes to this field 50 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvaarg.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvaarg.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvaarg.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvaarg.cpp:363:1: note: param returned here 363 | REGISTER_TEST(TestVaarg) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 25 warnings generated. [333/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testutils.cpp.o -MF test/CMakeFiles/testrunner.dir/testutils.cpp.o.d -o test/CMakeFiles/testrunner.dir/testutils.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:573:20: note: in instantiation of function template specialization 'utils::as_const' requested here 573 | utils::as_const(c).f(); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:584:30: note: in instantiation of function template specialization 'utils::as_const' requested here 584 | auto cr = utils::as_const(i); // TODO: does nothing and should not be allowed | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:617:1: note: param returned here 617 | REGISTER_TEST(TestUtils) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/precompiled.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:450:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 450 | static inline std::function memoize(F f) | ~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:595:35: note: in instantiation of function template specialization 'utils::memoize<(lambda at /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testutils.cpp:595:43), int>' requested here 595 | const auto callF = utils::memoize([&]() { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:454:9: note: param returned here 454 | return [=]() mutable -> R { | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 455 | if (init) | ~~~~~~~~~ 456 | return result; | ~~~~~~~~~~~~~~ 457 | result = f(); | ~~~~~~~~~~~~~ 458 | init = true; | ~~~~~~~~~~~~ 459 | return result; | ~~~~~~~~~~~~~~ 460 | }; | ~ 22 warnings generated. [334/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testvarid.cpp.o -MF test/CMakeFiles/testrunner.dir/testvarid.cpp.o.d -o test/CMakeFiles/testrunner.dir/testvarid.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvarid.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvarid.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvarid.cpp:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvarid.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvarid.cpp:4573:1: note: param returned here 4573 | REGISTER_TEST(TestVarID) | ^~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [335/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testvfvalue.cpp.o -MF test/CMakeFiles/testrunner.dir/testvfvalue.cpp.o.d -o test/CMakeFiles/testrunner.dir/testvfvalue.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvfvalue.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvfvalue.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvfvalue.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvfvalue.cpp:48:1: note: param returned here 48 | REGISTER_TEST(TestValueFlowValue) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 19 warnings generated. [336/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testtokenize.cpp.o -MF test/CMakeFiles/testrunner.dir/testtokenize.cpp.o.d -o test/CMakeFiles/testrunner.dir/testtokenize.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenize.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenize.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenize.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenize.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenize.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./preprocessor.h:36: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:87:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 87 | View(const char* data) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:94:30: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 94 | View(const char* data, std::size_t size) | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:100:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 100 | View(const std::string& str) | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:115:21: note: escapes to this field 115 | const char* mData; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:172:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const TokenString& str() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:173:20: note: param returned here 173 | return string; | ^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:495:25: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 495 | iterator begin() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:496:20: note: param returned here 496 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:498:23: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 498 | iterator end() { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:499:20: note: param returned here 499 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:501:37: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 501 | const_iterator begin() const { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:502:20: note: param returned here 502 | return mData.begin(); | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:504:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 504 | const_iterator end() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:505:20: note: param returned here 505 | return mData.end(); | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:507:38: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 507 | const_iterator cbegin() const { | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:508:20: note: param returned here 508 | return mData.cbegin(); | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:510:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 510 | const_iterator cend() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/./simplecpp.h:511:20: note: param returned here 511 | return mData.cend(); | ^~~~~~~~~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testtokenize.cpp:9348:1: note: param returned here 9348 | REGISTER_TEST(TestTokenizer) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 32 warnings generated. [337/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/CMakeFiles/cppcheck-gui.dir/qrc_gui.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/qrc_gui.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/qrc_gui.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/qrc_gui.cpp [338/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/aboutdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/aboutdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/aboutdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/aboutdialog.cpp [339/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/application.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/application.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/application.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ 3 warnings generated. [340/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testsymboldatabase.cpp.o -MF test/CMakeFiles/testrunner.dir/testsymboldatabase.cpp.o.d -o test/CMakeFiles/testrunner.dir/testsymboldatabase.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:117: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:77:18: note: escapes to this field 77 | const Scope* enclosingScope; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:41: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:75:18: note: escapes to this field 75 | const Token* classDef; ///< Points to "class" token | ~~~~~~~~~~~~~^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:107:77: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 107 | explicit Type(const Token* classDef_ = nullptr, const Scope* classScope_ = nullptr, const Scope* enclosingScope_ = nullptr) : | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:76:18: note: escapes to this field 76 | const Scope* classScope; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:163:45: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 163 | explicit Enumerator(const Scope * scope_) : scope(scope_) {} | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:164:19: note: escapes to this field 164 | const Scope * scope; | ~~~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:223:73: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 223 | nonneg int index_, AccessControl access_, const Type *type_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:693:17: note: escapes to this field 693 | const Type *mType; | ~~~~~~~~~~~~^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:53: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:678:18: note: escapes to this field 678 | const Token *mTypeStartToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:72: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:681:18: note: escapes to this field 681 | const Token *mTypeEndToken; | ~~~~~~~~~~~~~^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:222:32: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 222 | Variable(const Token *name_, const Token *start_, const Token *end_, | ~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:675:18: note: escapes to this field 675 | const Token *mNameToken; | ~~~~~~~~~~~~~^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:224:33: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 224 | const Scope *scope_, const Settings& settings) | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:696:18: note: escapes to this field 696 | const Scope *mScope; | ~~~~~~~~~~~~~^~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:545:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 545 | const std::vector &dimensions() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:546:16: note: param returned here 546 | return mDimensions; | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1088:70: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1088 | const Enumerator * findEnumerator(const std::string & name) const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1092:16: note: param returned here 1092 | return it == enumeratorList.end() ? nullptr : &*it; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1403:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1403 | const std::vector & variableList() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./symboldatabase.h:1404:16: note: param returned here 1404 | return mVariableList; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:136:75: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 136 | static const Scope *findFunctionScopeByToken(const SymbolDatabase * db, const Token *tok) { | ~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:140:28: note: param returned here 140 | return &(*scope); | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:146:88: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 146 | static const Function *findFunctionByName(const char str[], const Scope* startScope) { | ~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:159:24: note: param returned here 159 | return &*it; | ^~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testsymboldatabase.cpp:11682:1: note: param returned here 11682 | REGISTER_TEST(TestSymbolDatabase) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 36 warnings generated. [341/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/applicationdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/applicationdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/applicationdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.h:52:39: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 52 | Application &app, | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.h:79:18: note: escapes to this field 79 | Application& mApplication; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 4 warnings generated. [342/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/cppcheck-gui_autogen/mocs_compilation.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/cppcheck-gui_autogen/mocs_compilation.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/cppcheck-gui_autogen/mocs_compilation.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_aboutdialog.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_applicationdialog.cpp:92:16: note: param returned here 92 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp:4: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_applicationlist.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/applicationlist.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_applicationlist.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_checkthread.cpp:128:16: note: param returned here 128 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_codeeditor.cpp:82:16: note: param returned here 82 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_codeeditor.cpp:160:16: note: param returned here 160 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_codeeditstylecontrols.cpp:103:16: note: param returned here 103 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_codeeditstylecontrols.cpp:203:16: note: param returned here 203 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_codeeditstyledialog.cpp:195:16: note: param returned here 195 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_fileviewdialog.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_helpdialog.cpp:82:16: note: param returned here 82 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_libraryaddfunctiondialog.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_librarydialog.cpp:133:16: note: param returned here 133 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_libraryeditargdialog.cpp:88:16: note: param returned here 88 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_mainwindow.cpp:294:16: note: param returned here 294 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_newsuppressiondialog.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_platforms.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp:17: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_projectfile.cpp:9: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_projectfile.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp:18: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_projectfiledialog.cpp:9: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfiledialog.h:121:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 121 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/projectfiledialog.h:122:16: note: param returned here 122 | return mSuppressions; | ^~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_projectfiledialog.cpp:174:16: note: param returned here 174 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_resultstree.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_resultstree.cpp:9: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_resultstree.cpp:194:16: note: param returned here 194 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_resultsview.cpp:241:16: note: param returned here 241 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_scratchpad.cpp:88:16: note: param returned here 88 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_settingsdialog.cpp:128:16: note: param returned here 128 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_statsdialog.cpp:92:16: note: param returned here 92 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_threaddetails.cpp:105:16: note: param returned here 105 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_threadhandler.cpp:173:16: note: param returned here 173 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_threadresult.cpp:153:16: note: param returned here 153 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/mocs_compilation.cpp:27: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_translationhandler.cpp:9: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/../../../../gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_translationhandler.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/EWIEGA46WW/moc_txtreport.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 55 warnings generated. [343/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/applicationlist.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/applicationlist.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/applicationlist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationlist.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationlist.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationlist.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ 3 warnings generated. [344/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/checkstatistics.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/checkstatistics.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/checkstatistics.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:71:59: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 71 | const std::set& getActiveCheckers() const { | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:72:16: note: param returned here 72 | return mActiveCheckers; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:85:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | const QString& getCheckersReport() const { | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:86:16: note: param returned here 86 | return mCheckersReport; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.cpp:64:18: warning: code will never be executed [-Wunreachable-code] 64 | qDebug() << "Unknown error type - not added to statistics."; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.cpp:103:18: warning: code will never be executed [-Wunreachable-code] 103 | qDebug() << "Unknown error type - returning zero statistics."; | ^~ 4 warnings generated. [345/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/codeeditorstyle.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/codeeditorstyle.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/codeeditorstyle.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditorstyle.cpp [346/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/codeeditstylecontrols.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/codeeditstylecontrols.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/codeeditstylecontrols.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.h:39:35: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 39 | const QColor& getColor() const; | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.cpp:70:12: note: param returned here 70 | return mColor; | ^~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.h:60:43: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 60 | const QFont::Weight& getWeight() const; | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstylecontrols.cpp:127:12: note: param returned here 127 | return mWeight; | ^~~~~~~ 2 warnings generated. [347/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/codeeditor.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/codeeditor.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/codeeditor.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.cpp In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.cpp:137:42: note: in instantiation of function template specialization 'utils::as_const>' requested here 137 | for (const QString &pattern : utils::as_const(keywordPatterns)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.h:45:54: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 45 | CodeEditorStyle *widgetStyle); | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.h:83:22: note: escapes to this field 83 | CodeEditorStyle *mWidgetStyle; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditor.cpp:220:48: note: in instantiation of function template specialization 'utils::as_const>' requested here 220 | for (const HighlightingRule &rule : utils::as_const(mHighlightingRulesWithSymbols)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 3 warnings generated. [348/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/codeeditstyledialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/codeeditstyledialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/codeeditstyledialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/codeeditstyledialog.cpp [349/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/common.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/common.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/common.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/common.cpp [350/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/checkthread.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/checkthread.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/checkthread.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:61:103: warning: parameter 'output' is later invalidated [-Wlifetime-safety-invalidation] 61 | int CheckThread::executeCommand(std::string exe, std::vector args, std::string redirect, std::string &output) // cppcheck-suppress passedByValueCallback | ^~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:63:12: note: parameter 'output' is invalidated here 63 | output.clear(); | ~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:96:9: note: later used here 96 | output = (s1 + "\n" + s2).toStdString(); | ^~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:60:37: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 60 | CheckThread(ThreadResult &result, int threadIndex); | ~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:136:19: note: escapes to this field 136 | ThreadResult &mResult; | ~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:168:37: warning: code will never be executed [-Wunreachable-code] 168 | qDebug() << "Checking file" << QString::fromStdString(fname); | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:150:37: warning: code will never be executed [-Wunreachable-code] 150 | qDebug() << "Checking file" << QString::fromStdString(fname); | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:138:18: warning: code will never be executed [-Wunreachable-code] 138 | qDebug() << "Whole program analysis"; | ^~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:193:40: note: in instantiation of function template specialization 'utils::as_const>' requested here 193 | for (const QString& addon : utils::as_const(mAddonsAndTools)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.cpp:312:26: warning: code will never be executed [-Wunreachable-code] 312 | qDebug() << debug; | ^~ 12 warnings generated. [351/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/csvreport.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/csvreport.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/csvreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/csvreport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/csvreport.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [352/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/erroritem.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/erroritem.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/erroritem.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [353/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/fileviewdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/fileviewdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/fileviewdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/fileviewdialog.cpp [354/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/filelist.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/filelist.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/filelist.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/filelist.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/filelist.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:285:30: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 285 | const Pos &getpos() const | ~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./pathmatch.h:287:16: note: param returned here 287 | return mPos; | ^~~~ 1 warning generated. [355/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/libraryaddfunctiondialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/libraryaddfunctiondialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/libraryaddfunctiondialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/libraryaddfunctiondialog.cpp [356/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/helpdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/helpdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/helpdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/helpdialog.cpp In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/helpdialog.cpp:69:35: note: in instantiation of function template specialization 'utils::as_const>' requested here 69 | for (const QString &p: utils::as_const(paths)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 1 warning generated. [357/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/cli/. -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++11 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-dollar-in-identifier-extension -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/test/CMakeFiles/testrunner.dir/cmake_pch.hxx -MD -MT test/CMakeFiles/testrunner.dir/testvalueflow.cpp.o -MF test/CMakeFiles/testrunner.dir/testvalueflow.cpp.o.d -o test/CMakeFiles/testrunner.dir/testvalueflow.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvalueflow.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvalueflow.cpp:20: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:26: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvalueflow.cpp:20: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:137:40: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 137 | static Check& getCheck(Check& check) | ~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:139:16: note: param returned here 139 | return check; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:150:60: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 150 | explicit SettingsBuilder(const TestFixture &fixture) : fixture(fixture) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:151:51: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 151 | SettingsBuilder(const TestFixture &fixture, Settings settings) : fixture(fixture), settings(std::move(settings)) {} | ~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:242:28: note: escapes to this field 242 | const TestFixture &fixture; | ~~~~~~~~~~~~~~~~~~~^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:153:63: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 153 | SettingsBuilder& severity(Severity sev, bool b = true) { | ~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:157:20: note: param returned here 157 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:160:66: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 160 | SettingsBuilder& certainty(Certainty cert, bool b = true) { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:164:20: note: param returned here 164 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:167:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 167 | SettingsBuilder& clang() { | ~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:171:20: note: param returned here 171 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:174:40: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 174 | SettingsBuilder& checkLibrary() { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:178:20: note: param returned here 178 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:181:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 181 | SettingsBuilder& checkUnusedTemplates(bool b = true) { | ~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:185:20: note: param returned here 185 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:188:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | SettingsBuilder& debugwarnings(bool b = true) { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:192:20: note: param returned here 192 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:195:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | SettingsBuilder& c(Standards::cstd_t std) { | ~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:200:20: note: param returned here 200 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:203:54: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 203 | SettingsBuilder& cpp(Standards::cppstd_t std) { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:208:20: note: param returned here 208 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:222:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 222 | SettingsBuilder& checkConfiguration() { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:226:20: note: param returned here 226 | return *this; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:229:53: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 229 | SettingsBuilder& checkHeaders(bool b = true) { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:233:20: note: param returned here 233 | return *this; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvalueflow.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:134:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 134 | const TokenList& get() const { | ~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:135:16: note: param returned here 135 | return list; | ^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:149:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 149 | const std::string& path() const | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:151:16: note: param returned here 151 | return mFullPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:154:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 154 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/helpers.h:155:16: note: param returned here 155 | return mName; | ^~~~~ warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/testvalueflow.cpp:9814:1: note: param returned here 9814 | REGISTER_TEST(TestValueFlow) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/test/fixture.h:342:229: note: expanded from macro 'REGISTER_TEST' 342 | #define REGISTER_TEST( CLASSNAME ) namespace { class CLASSNAME ## Instance : public TestInstance { public: CLASSNAME ## Instance() : TestInstance(#CLASSNAME) {} TestFixture* create() override { impl.reset(new CLASSNAME); return impl.get(); } }; CLASSNAME ## Instance instance_ ## CLASSNAME; } | ^~~~~~~~~~ 22 warnings generated. [358/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/libraryeditargdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/libraryeditargdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/libraryeditargdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/libraryeditargdialog.cpp [359/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/librarydialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/librarydialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/librarydialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/librarydialog.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/librarydialog.cpp:53:65: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 53 | CppcheckLibraryData::Function *function, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/librarydialog.cpp:60:40: note: escapes to this field 60 | CppcheckLibraryData::Function *function; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/librarydialog.cpp:295:45: note: in instantiation of function template specialization 'utils::as_const>' requested here 295 | for (QListWidgetItem *item : utils::as_const(allItems)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 2 warnings generated. [360/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/main.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/main.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/main.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/main.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/main.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/main.cpp:23: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ 6 warnings generated. [361/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/platforms.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/platforms.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/platforms.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/platforms.cpp [362/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/newsuppressiondialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/newsuppressiondialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/newsuppressiondialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/newsuppressiondialog.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/newsuppressiondialog.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [363/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/printablereport.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/printablereport.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/printablereport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/printablereport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/printablereport.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/printablereport.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/printablereport.h:63:50: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 63 | const QString& getFormattedReportText() const; | ~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/printablereport.cpp:57:12: note: param returned here 57 | return mFormattedReport; | ^~~~~~~~~~~~~~~~ 6 warnings generated. [364/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/cppchecklibrarydata.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/cppchecklibrarydata.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/cppchecklibrarydata.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/cppchecklibrarydata.cpp [365/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/report.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/report.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/report.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.h:85:21: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 85 | QFile* getFile(); | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp:62:12: note: param returned here 62 | return &mFile; | ^~~~~~ 1 warning generated. [366/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/projectfile.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/projectfile.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/projectfile.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:892:45: note: in instantiation of function template specialization 'utils::as_const>' requested here 892 | for (const QString& incdir : utils::as_const(mIncludeDirs)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.cpp:955:71: note: in instantiation of function template specialization 'utils::as_const>' requested here 955 | for (const SuppressionList::Suppression &suppression : utils::as_const(mSuppressions)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 17 warnings generated. [367/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/resultitem.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/resultitem.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/resultitem.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ 6 warnings generated. [368/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/projectfiledialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/projectfiledialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/projectfiledialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.h:121:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 121 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.h:122:16: note: param returned here 122 | return mSuppressions; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.cpp:28: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.cpp:194:38: note: in instantiation of function template specialization 'utils::as_const>' requested here 194 | for (const QString &lib : utils::as_const(libs)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.h:57:56: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 57 | explicit ProjectFileDialog(ProjectFile *projectFile, bool premium, QWidget *parent = nullptr); | ~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.h:341:25: note: escapes to this field 341 | ProjectFile * const mProjectFile; | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ 18 warnings generated. [369/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/resultsview.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/resultsview.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/resultsview.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:71:59: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 71 | const std::set& getActiveCheckers() const { | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:72:16: note: param returned here 72 | return mActiveCheckers; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:85:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | const QString& getCheckersReport() const { | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:86:16: note: param returned here 86 | return mCheckersReport; | ^~~~~~~~~~~~~~~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.cpp:422:41: note: in instantiation of function template specialization 'utils::as_const>' requested here 422 | for (const ErrorItem& item : utils::as_const(errors)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 9 warnings generated. [370/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/scratchpad.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/scratchpad.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/scratchpad.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/scratchpad.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/scratchpad.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/scratchpad.h:39:47: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 39 | explicit ScratchPad(MainWindow& mainWindow); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/scratchpad.h:55:17: note: escapes to this field 55 | MainWindow& mMainWindow; | ~~~~~~~~~~~~^~~~~~~~~~~ 1 warning generated. [371/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/showtypes.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/showtypes.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/showtypes.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/showtypes.cpp [372/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/resultstree.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/resultstree.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/resultstree.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:29: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:772:38: warning: code will never be executed [-Wunreachable-code] 772 | qDebug() << "Opening file: " << file; | ^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:139:45: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 139 | const QString& getCheckDirectory() const; | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.cpp:1202:12: note: param returned here 1202 | return mCheckPath; | ^~~~~~~~~~ 26 warnings generated. [373/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/settingsdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/settingsdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/settingsdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.cpp:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.h:49:50: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 49 | TranslationHandler *translator, | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.h:233:25: note: escapes to this field 233 | TranslationHandler *mTranslator; | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.h:48:41: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 48 | SettingsDialog(ApplicationList *list, | ~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/settingsdialog.h:220:22: note: escapes to this field 220 | ApplicationList *mApplications; | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ 6 warnings generated. [374/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/threaddetails.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/threaddetails.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/threaddetails.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threaddetails.cpp In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threaddetails.cpp:48:37: note: in instantiation of function template specialization 'utils::as_const>' requested here 48 | for (const auto& td: utils::as_const(mThreadDetails)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 1 warning generated. [375/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/statsdialog.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/statsdialog.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/statsdialog.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/statsdialog.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/statsdialog.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:71:59: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 71 | const std::set& getActiveCheckers() const { | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:72:16: note: param returned here 72 | return mActiveCheckers; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:85:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 85 | const QString& getCheckersReport() const { | ~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkstatistics.h:86:16: note: param returned here 86 | return mCheckersReport; | ^~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/statsdialog.cpp:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ 17 warnings generated. [376/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/mainwindow.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/mainwindow.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/mainwindow.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationlist.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:52:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getName() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:53:16: note: param returned here 53 | return mName; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:60:35: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 60 | const QString& getPath() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:61:16: note: param returned here 61 | return mPath; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:68:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const QString& getParameters() const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/application.h:69:16: note: param returned here 69 | return mParameters; | ^~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:38: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:80:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 80 | const QString& getRootPath() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:81:16: note: param returned here 81 | return mRootPath; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:84:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 84 | const QString& getBuildDir() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:85:16: note: param returned here 85 | return mBuildDir; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:88:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 88 | const QString& getImportProject() const { | ~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:89:16: note: param returned here 89 | return mImportProject; | ^~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:132:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 132 | const QStringList& getDefines() const { | ~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:133:16: note: param returned here 133 | return mDefines; | ^~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:140:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 140 | const QStringList& getUndefines() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:141:16: note: param returned here 141 | return mUndefines; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:144:42: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 144 | const QString& getUserInclude() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:145:16: note: param returned here 145 | return mUserInclude; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:172:51: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 172 | const QStringList& getVsConfigurations() const { | ~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:173:16: note: param returned here 173 | return mVsConfigurations; | ^~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:180:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 180 | const QStringList& getLibraries() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:181:16: note: param returned here 181 | return mLibraries; | ^~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:188:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 188 | const QString& getPlatform() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:189:16: note: param returned here 189 | return mPlatform; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:200:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:201:16: note: param returned here 201 | return mSuppressions; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:214:41: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 214 | const QStringList& getAddons() const { | ~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:215:16: note: param returned here 215 | return mAddons; | ^~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:248:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 248 | const QStringList& getTags() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:249:16: note: param returned here 249 | return mTags; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:272:39: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 272 | const QString& getFilename() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:273:16: note: param returned here 273 | return mFilename; | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:387:50: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 387 | const QStringList& getCodingStandards() const { | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:388:16: note: param returned here 388 | return mCodingStandards; | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:433:61: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 433 | const QStringList& getCheckUnknownFunctionReturn() const { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfile.h:434:16: note: param returned here 434 | return mCheckUnknownFunctionReturn; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:39: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.h:121:71: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 121 | const QList& getSuppressions() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/projectfiledialog.h:122:16: note: param returned here 122 | return mSuppressions; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:41: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:41: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:52: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:107: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:381:11: note: param returned here 381 | GET(bool, u_.boolean_) | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:387:5: note: param returned here 387 | (type_ == int64_type && (const_cast(this)->type_ = number_type, (const_cast(this)->u_.number_ = u_.int64_)), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 388 | u_.number_)) | ~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:183:45: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 183 | template const T &get() const; | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:375:12: note: expanded from macro 'GET' 375 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:184:33: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 184 | template T &get(); | ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:389:14: note: param returned here 389 | GET(int64_t, u_.int64_) | ^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:379:12: note: expanded from macro 'GET' 379 | return var; \ | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:489:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 489 | SNPRINTF(buf, sizeof(buf), "%" PRId64, u_.int64_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:496:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 496 | SNPRINTF(buf, sizeof(buf), fabs(u_.number_) < (1ULL << 53) && modf(u_.number_, &tmp) == 0 ? "%.f" : "%.17g", u_.number_); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:549:9: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 549 | SNPRINTF(buf, sizeof(buf), "\\u%04x", c & 0xff); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:972:35: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 972 | default_parse_context(value *out, size_t depths = DEFAULT_MAX_DEPTHS) : out_(out), depths_(depths) { | ~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:968:10: note: escapes to this field 968 | value *out_; | ~~~~~~~^~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1182:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1182 | inline std::istream &operator>>(std::istream &is, picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1189:10: note: param returned here 1189 | return is; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1192:49: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 1192 | inline std::ostream &operator<<(std::ostream &os, const picojson::value &x) { | ~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1194:10: note: param returned here 1194 | return os; | ^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.h:70:38: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 70 | MainWindow(TranslationHandler* th, QSettings* settings); | ~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.h:444:25: note: escapes to this field 444 | TranslationHandler *mTranslation; | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.h:70:59: warning: parameter in cross-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-constructor-suggestions] 70 | MainWindow(TranslationHandler* th, QSettings* settings); | ~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.h:435:16: note: escapes to this field 435 | QSettings *mSettings; | ~~~~~~~~~~~^~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:626:45: warning: code will never be executed [-Wunreachable-code] 626 | qDebug() << "Checking project file" << mProjectFile->getFilename(); | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:705:45: warning: code will never be executed [-Wunreachable-code] 705 | qDebug() << "Checking project file" << mProjectFile->getFilename(); | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:799:58: warning: code will never be executed [-Wunreachable-code] 799 | qDebug() << "Setting current directory to: " << dir; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:982:24: warning: code will never be executed [-Wunreachable-code] 982 | qDebug().noquote() << "library not found: '" + filename + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:976:28: warning: code will never be executed [-Wunreachable-code] 976 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:971:28: warning: code will never be executed [-Wunreachable-code] 971 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:960:28: warning: code will never be executed [-Wunreachable-code] 960 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:955:28: warning: code will never be executed [-Wunreachable-code] 955 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:945:24: warning: code will never be executed [-Wunreachable-code] 945 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:940:24: warning: code will never be executed [-Wunreachable-code] 940 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:931:28: warning: code will never be executed [-Wunreachable-code] 931 | qDebug().noquote() << "looking for library '" + libpath + "'"; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:1444:47: warning: code will never be executed [-Wunreachable-code] 1444 | qDebug() << "Rechecking project file" << mProjectFile->getFilename(); | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:2263:30: warning: code will never be executed [-Wunreachable-code] 2263 | qDebug() << "Response: " << str; | ^~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:2259:18: warning: code will never be executed [-Wunreachable-code] 2259 | qDebug() << "Response: ERROR"; | ^~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.cpp:107: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./json.h:34: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, __gnu_cxx::__normal_iterator>>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, __gnu_cxx::__normal_iterator>>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string<__gnu_cxx::__normal_iterator>>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1129:3: note: in instantiation of function template specialization 'picojson::parse<__gnu_cxx::__normal_iterator>>' requested here 1129 | parse(out, s.begin(), s.end(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1108:5: warning: 'snprintf' was marked unused but was used [-Wused-but-marked-unused] 1108 | SNPRINTF(buf, sizeof(buf), "syntax error at line %d near: ", in.line()); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:115:18: note: expanded from macro 'SNPRINTF' 115 | #define SNPRINTF snprintf | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1104:114: warning: parameter 'err' is later invalidated [-Wlifetime-safety-invalidation] 1104 | template inline Iter _parse(Context &ctx, const Iter &first, const Iter &last, std::string *err) { | ^~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:14: note: parameter 'err' is invalidated here 1115 | err->push_back(static_cast(ch)); | ~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1115:9: note: later used here 1115 | err->push_back(static_cast(ch)); | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:779:69: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 779 | template inline bool _parse_string(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:814:11: note: parameter 'out' is invalidated here 814 | out.push_back(static_cast(ch)); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:31: note: later used here 806 | if (!_parse_codepoint(out, in)) { | ^~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:738:72: warning: parameter 'out' is later invalidated [-Wlifetime-safety-invalidation] 738 | template inline bool _parse_codepoint(String &out, input &in) { | ^~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:806:14: note: in instantiation of function template specialization 'picojson::_parse_codepoint, std::istreambuf_iterator>' requested here 806 | if (!_parse_codepoint(out, in)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:994:12: note: in instantiation of function template specialization 'picojson::_parse_string, std::istreambuf_iterator>' requested here 994 | return _parse_string(out_->get(), in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:892:16: note: in instantiation of function template specialization 'picojson::default_parse_context::parse_string>' requested here 892 | return ctx.parse_string(in); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1106:8: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1106 | if (!_parse(ctx, in) && err != NULL) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1124:10: note: in instantiation of function template specialization 'picojson::_parse>' requested here 1124 | return _parse(ctx, first, last, err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:1135:3: note: in instantiation of function template specialization 'picojson::parse>' requested here 1135 | parse(out, std::istreambuf_iterator(is.rdbuf()), std::istreambuf_iterator(), &err); | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:764:11: note: parameter 'out' is invalidated here 764 | out.push_back(static_cast(0xc0 | (uni_ch >> 6))); | ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/./picojson.h:774:5: note: later used here 774 | out.push_back(static_cast(0x80 | (uni_ch & 0x3f))); | ^~~ 62 warnings generated. [377/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/threadresult.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/threadresult.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/threadresult.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadresult.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadresult.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadresult.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [378/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/txtreport.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/txtreport.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/txtreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/txtreport.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/txtreport.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [379/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/translationhandler.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/translationhandler.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/translationhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:89:46: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 89 | const QString& getCurrentLanguage() const; | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.cpp:144:12: note: param returned here 144 | return mCurrentLanguage; | ^~~~~~~~~~~~~~~~ 2 warnings generated. [380/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/xmlreport.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/xmlreport.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/xmlreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreport.cpp [381/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/threadhandler.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/threadhandler.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/threadhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.h:25: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadresult.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultsview.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultstree.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:52:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 52 | const QString& getIconFileName() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/resultitem.h:53:16: note: param returned here 53 | return mIconFileName; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.cpp:100:18: warning: code will never be executed [-Wunreachable-code] 100 | qDebug() << "Can't start checking if there's no files to check or if check is in progress."; | ^~ In file included from :1: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx:5: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/precompiled.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/checkthread.h:23: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/filesettings.h:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.h:27: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:440:63: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 440 | constexpr typename std::add_const::type & as_const(T& t) noexcept | ~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threadhandler.cpp:165:39: note: in instantiation of function template specialization 'utils::as_const>' requested here 165 | for (CheckThread* thread : utils::as_const(mThreads)) { | ^ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.h:445:16: note: param returned here 445 | return t; | ^ 8 warnings generated. [382/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_HELP_LIB -DQT_NETWORK_LIB -DQT_NO_DEBUG -DQT_NO_DEBUG_OUTPUT -DQT_NO_FOREACH -DQT_NO_WARNING_OUTPUT -DQT_PRINTSUPPORT_LIB -DQT_SQL_LIB -DQT_WIDGETS_LIB -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/cppcheck-gui_autogen/include -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/picojson/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/frontend/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtPrintSupport -isystem /usr/include/qt6/QtHelp -isystem /usr/include/qt6/QtSql -isystem /usr/include/qt6/QtNetwork -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Winvalid-pch -Xclang -include-pch -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx.pch -Xclang -include -Xclang /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/CMakeFiles/cppcheck-gui.dir/cmake_pch.hxx -MD -MT gui/CMakeFiles/cppcheck-gui.dir/xmlreportv2.cpp.o -MF gui/CMakeFiles/cppcheck-gui.dir/xmlreportv2.cpp.o.d -o gui/CMakeFiles/cppcheck-gui.dir/xmlreportv2.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:176:18: warning: code will never be executed [-Wunreachable-code] 176 | qDebug() << "You must Open() the file before reading it!"; | ^~ 6 warnings generated. [383/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/erroritem.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/erroritem.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/erroritem.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [384/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/common.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/common.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/common.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/common.cpp [385/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/showtypes.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/showtypes.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/showtypes.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/showtypes.cpp [386/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/report.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/report.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/report.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.h:85:21: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 85 | QFile* getFile(); | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp:62:12: note: param returned here 62 | return &mFile; | ^~~~~~ 1 warning generated. [387/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/moc_testtranslationhandler.cpp.o -MF gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/moc_testtranslationhandler.cpp.o.d -o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/moc_testtranslationhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/moc_testtranslationhandler.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/moc_testtranslationhandler.cpp:88:16: note: param returned here 88 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. [388/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/moc_translationhandler.cpp.o -MF gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/moc_translationhandler.cpp.o.d -o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/moc_translationhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__/moc_translationhandler.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__/moc_translationhandler.cpp:9: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__/../../../../../../gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__/../../../../../../gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler/__/__/moc_translationhandler.cpp:81:16: note: param returned here 81 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 2 warnings generated. [389/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree\" -DTINYXML2_IMPORT -D_FILE_OFFSET_BITS=64 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/resultstree -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/externals/simplecpp/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -Wno-missing-noreturn -MD -MT gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/xmlreportv2.cpp.o -MF gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/xmlreportv2.cpp.o.d -o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/xmlreportv2.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. [390/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/common.cpp.o -MF gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/common.cpp.o.d -o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/common.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/common.cpp [391/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/moc_testxmlreportv2.cpp.o -MF gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/moc_testxmlreportv2.cpp.o.d -o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/moc_testxmlreportv2.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2/moc_testxmlreportv2.cpp warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2/moc_testxmlreportv2.cpp:88:16: note: param returned here 88 | return static_cast(this); | ^~~~~~~~~~~~~~~~~~~~~~~~ 1 warning generated. [392/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/translationhandler.cpp.o -MF gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/translationhandler.cpp.o.d -o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/translationhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:89:46: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 89 | const QString& getCurrentLanguage() const; | ~~~~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.cpp:144:12: note: param returned here 144 | return mCurrentLanguage; | ^~~~~~~~~~~~~~~~ 2 warnings generated. [393/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_GUI_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler\" -DQT_TESTLIB_LIB -DQT_WIDGETS_LIB -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtWidgets -isystem /usr/include/qt6/QtGui -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/testtranslationhandler.cpp.o -MF gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/testtranslationhandler.cpp.o.d -o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/testtranslationhandler.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler/testtranslationhandler.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/translationhandler/testtranslationhandler.cpp:21: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:72:58: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 72 | const QList& getTranslations() const { | ~~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/translationhandler.h:73:16: note: param returned here 73 | return mTranslations; | ^~~~~~~~~~~~~ 1 warning generated. [394/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/erroritem.cpp.o -MF gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/erroritem.cpp.o.d -o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/erroritem.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [395/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/report.cpp.o -MF gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/report.cpp.o.d -o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/report.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp:19: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.h:85:21: warning: implicit this in cross-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-cross-tu-suggestions] 85 | QFile* getFile(); | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/report.cpp:62:12: note: param returned here 62 | return &mFile; | ^~~~~~ 1 warning generated. [396/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreport.cpp.o -MF gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreport.cpp.o.d -o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreport.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreport.cpp [397/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/testxmlreportv2.cpp.o -MF gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/testxmlreportv2.cpp.o.d -o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/testxmlreportv2.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2/testxmlreportv2.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2/testxmlreportv2.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ 5 warnings generated. [398/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -rdynamic -Xlinker --dependency-file=test/signal/CMakeFiles/test-signalhandler.dir/link.d test/signal/CMakeFiles/test-signalhandler.dir/test-signalhandler.cpp.o test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/signalhandler.cpp.o test/signal/CMakeFiles/test-signalhandler.dir/__/__/cli/stacktrace.cpp.o -o bin/test-signalhandler && : [399/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -rdynamic -Xlinker --dependency-file=test/signal/CMakeFiles/test-stacktrace.dir/link.d test/signal/CMakeFiles/test-stacktrace.dir/test-stacktrace.cpp.o test/signal/CMakeFiles/test-stacktrace.dir/__/__/cli/stacktrace.cpp.o -o bin/test-stacktrace && : [400/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=test/seh/CMakeFiles/test-sehwrapper.dir/link.d test/seh/CMakeFiles/test-sehwrapper.dir/test-sehwrapper.cpp.o test/seh/CMakeFiles/test-sehwrapper.dir/__/__/cli/sehwrapper.cpp.o -o bin/test-sehwrapper && : [401/411] /usr/bin/clang++ -DFILESDIR=\"/usr/share/Cppcheck\" -DHAVE_BOOST -DHAVE_EXECINFO_H=1 -DQT_CORE_LIB -DQT_NO_DEBUG -DQT_TESTCASE_BUILDDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2\" -DQT_TESTCASE_SOURCEDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -DQT_TESTLIB_LIB -DSRCDIR=\"/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2\" -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/test/xmlreportv2 -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui -I/builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/. -isystem /usr/include/qt6/QtCore -isystem /usr/include/qt6 -isystem /usr/lib64/qt6/mkspecs/linux-g++ -isystem /usr/include/qt6/QtTest -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -std=c++17 -Weverything -O2 -pedantic -mllvm -inline-deferral -gdwarf-4 -Wno-sign-conversion -Wno-shadow-field-in-constructor -Wno-implicit-int-conversion -Wno-double-promotion -Wno-shadow-field -Wno-shadow-uncaptured-local -Wno-implicit-float-conversion -Wno-switch-enum -Wno-date-time -Wno-disabled-macro-expansion -Wno-sign-compare -Wno-ms-bitfield-padding -Wno-unsafe-buffer-usage -Wno-global-constructors -Wno-exit-time-destructors -Wno-padded -Wno-nrvo -Wno-c++98-compat -Wno-c++98-compat-pedantic -Wno-switch-default -Wno-four-char-constants -Wno-weak-vtables -Wno-multichar -Wno-shadow-header -U_GLIBCXX_DEBUG -Wno-ctad-maybe-unsupported -MD -MT gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreportv2.cpp.o -MF gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreportv2.cpp.o.d -o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreportv2.cpp.o -c /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:19: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.h:22: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/erroritem.h:22: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:95:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 95 | const std::string& getinfo() const { | ~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:96:20: note: param returned here 96 | return mInfo; | ^~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:195:44: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 195 | const std::string &shortMessage() const { | ~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:196:16: note: param returned here 196 | return mShortMessage; | ^~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:200:46: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 200 | const std::string &verboseMessage() const { | ~~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:201:16: note: param returned here 201 | return mVerboseMessage; | ^~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:205:43: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 205 | const std::string &symbolNames() const { | ~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:206:16: note: param returned here 206 | return mSymbolNames; | ^~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:312:36: warning: parameter in intra-TU constructor should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-constructor-suggestions] 312 | ProgressReporter(ErrorLogger& e, int reportProgressInterval, std::string filename, std::string stage) : | ~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./errorlogger.h:338:18: note: escapes to this field 338 | ErrorLogger& mErrorLogger; | ~~~~~~~~~~~~~^~~~~~~~~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:21: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./cppcheck.h:24: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:68:36: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 68 | const std::string& name() const { | ~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./check.h:69:16: note: param returned here 69 | return mName; | ^~~~~ In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/xmlreportv2.cpp:24: In file included from /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./settings.h:25: /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:257:76: warning: implicit this in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 257 | const std::string& getReturnType(const std::string& function) const { | ~~~~~~~~~~~~~ ^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:259:20: note: param returned here 259 | return (i != functions.end()) ? i->second.returnType : mEmptyString; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:483:89: warning: parameter in intra-TU function should be marked [[clang::lifetimebound]] [-Wlifetime-safety-intra-tu-suggestions] 483 | static const AllocFunc* getAllocDealloc(const std::map &data, const std::string &name) { | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^ | [[clang::lifetimebound]] /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/./library.h:485:16: note: param returned here 485 | return (it == data.end()) ? nullptr : &it->second; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 8 warnings generated. [402/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/link.d gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/moc_testcppchecklibrarydata.cpp.o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/qrc_resources.cpp.o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/testcppchecklibrarydata.cpp.o gui/test/cppchecklibrarydata/CMakeFiles/test-cppchecklibrarydata.dir/__/__/cppchecklibrarydata.cpp.o -o bin/test-cppchecklibrarydata /usr/lib64/libQt6Test.so.6.11.2 /usr/lib64/libQt6Core.so.6.11.2 && : [403/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/test/filelist/CMakeFiles/test-filelist.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o gui/test/filelist/CMakeFiles/test-filelist.dir/moc_testfilelist.cpp.o gui/test/filelist/CMakeFiles/test-filelist.dir/testfilelist.cpp.o gui/test/filelist/CMakeFiles/test-filelist.dir/__/__/filelist.cpp.o -o bin/test-filelist /usr/lib64/libQt6Test.so.6.11.2 lib/libsimplecpp.a /usr/lib64/libQt6Core.so.6.11.2 /usr/lib64/libtinyxml2.so.11.0.0 && : [404/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/test/projectfile/CMakeFiles/test-projectfile.dir/link.d gui/test/projectfile/CMakeFiles/test-projectfile.dir/moc_testprojectfile.cpp.o gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/moc_projectfile.cpp.o gui/test/projectfile/CMakeFiles/test-projectfile.dir/testprojectfile.cpp.o gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/common.cpp.o gui/test/projectfile/CMakeFiles/test-projectfile.dir/__/__/projectfile.cpp.o -o bin/test-projectfile /usr/lib64/libQt6Test.so.6.11.2 /usr/lib64/libQt6Core.so.6.11.2 && : [405/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/test/resultstree/CMakeFiles/test-resultstree.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/moc_testresultstree.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultstree.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_resultitem.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_applicationlist.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_common.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_projectfile.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadhandler.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/moc_threadresult.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/testresultstree.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultstree.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/resultitem.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/common.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/erroritem.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/showtypes.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/report.cpp.o gui/test/resultstree/CMakeFiles/test-resultstree.dir/__/__/xmlreportv2.cpp.o -o bin/test-resultstree lib/libsimplecpp.a /usr/lib64/libQt6Widgets.so.6.11.2 /usr/lib64/libQt6Test.so.6.11.2 /usr/lib64/libtinyxml2.so.11.0.0 /usr/lib64/libQt6Gui.so.6.11.2 /usr/lib64/libGLX.so /usr/lib64/libOpenGL.so /usr/lib64/libQt6Core.so.6.11.2 && : [406/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/link.d gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/moc_testtranslationhandler.cpp.o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/moc_translationhandler.cpp.o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/testtranslationhandler.cpp.o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/common.cpp.o gui/test/translationhandler/CMakeFiles/test-translationhandler.dir/__/__/translationhandler.cpp.o -o bin/test-translationhandler /usr/lib64/libQt6Widgets.so.6.11.2 /usr/lib64/libQt6Test.so.6.11.2 /usr/lib64/libQt6Gui.so.6.11.2 /usr/lib64/libGLX.so /usr/lib64/libOpenGL.so /usr/lib64/libQt6Core.so.6.11.2 && : [407/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/moc_testxmlreportv2.cpp.o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/testxmlreportv2.cpp.o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/erroritem.cpp.o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/report.cpp.o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreport.cpp.o gui/test/xmlreportv2/CMakeFiles/test-xmlreportv2.dir/__/__/xmlreportv2.cpp.o -o bin/test-xmlreportv2 /usr/lib64/libQt6Test.so.6.11.2 /usr/lib64/libQt6Core.so.6.11.2 /usr/lib64/libtinyxml2.so.11.0.0 lib/libsimplecpp.a && : [408/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=cli/CMakeFiles/cppcheck.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o cli/CMakeFiles/cppcheck.dir/main.cpp.o -o bin/cppcheck lib/libcli.a lib/libsimplecpp.a lib/libfrontend.a /usr/lib64/libtinyxml2.so.11.0.0 lib/libsimplecpp.a && : [409/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=gui/CMakeFiles/cppcheck-gui.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o gui/CMakeFiles/cppcheck-gui.dir/cppcheck-gui_autogen/mocs_compilation.cpp.o gui/CMakeFiles/cppcheck-gui.dir/qrc_gui.cpp.o gui/CMakeFiles/cppcheck-gui.dir/aboutdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/application.cpp.o gui/CMakeFiles/cppcheck-gui.dir/applicationdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/applicationlist.cpp.o gui/CMakeFiles/cppcheck-gui.dir/checkstatistics.cpp.o gui/CMakeFiles/cppcheck-gui.dir/checkthread.cpp.o gui/CMakeFiles/cppcheck-gui.dir/codeeditor.cpp.o gui/CMakeFiles/cppcheck-gui.dir/codeeditorstyle.cpp.o gui/CMakeFiles/cppcheck-gui.dir/codeeditstylecontrols.cpp.o gui/CMakeFiles/cppcheck-gui.dir/codeeditstyledialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/common.cpp.o gui/CMakeFiles/cppcheck-gui.dir/cppchecklibrarydata.cpp.o gui/CMakeFiles/cppcheck-gui.dir/csvreport.cpp.o gui/CMakeFiles/cppcheck-gui.dir/erroritem.cpp.o gui/CMakeFiles/cppcheck-gui.dir/filelist.cpp.o gui/CMakeFiles/cppcheck-gui.dir/fileviewdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/helpdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/libraryaddfunctiondialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/librarydialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/libraryeditargdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/main.cpp.o gui/CMakeFiles/cppcheck-gui.dir/mainwindow.cpp.o gui/CMakeFiles/cppcheck-gui.dir/newsuppressiondialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/platforms.cpp.o gui/CMakeFiles/cppcheck-gui.dir/printablereport.cpp.o gui/CMakeFiles/cppcheck-gui.dir/projectfile.cpp.o gui/CMakeFiles/cppcheck-gui.dir/projectfiledialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/report.cpp.o gui/CMakeFiles/cppcheck-gui.dir/resultitem.cpp.o gui/CMakeFiles/cppcheck-gui.dir/resultstree.cpp.o gui/CMakeFiles/cppcheck-gui.dir/resultsview.cpp.o gui/CMakeFiles/cppcheck-gui.dir/scratchpad.cpp.o gui/CMakeFiles/cppcheck-gui.dir/settingsdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/showtypes.cpp.o gui/CMakeFiles/cppcheck-gui.dir/statsdialog.cpp.o gui/CMakeFiles/cppcheck-gui.dir/threaddetails.cpp.o gui/CMakeFiles/cppcheck-gui.dir/threadhandler.cpp.o gui/CMakeFiles/cppcheck-gui.dir/threadresult.cpp.o gui/CMakeFiles/cppcheck-gui.dir/translationhandler.cpp.o gui/CMakeFiles/cppcheck-gui.dir/txtreport.cpp.o gui/CMakeFiles/cppcheck-gui.dir/xmlreport.cpp.o gui/CMakeFiles/cppcheck-gui.dir/xmlreportv2.cpp.o -o bin/cppcheck-gui lib/libsimplecpp.a lib/libfrontend.a /usr/lib64/libQt6PrintSupport.so.6.11.2 /usr/lib64/libQt6Help.so.6.11.2 /usr/lib64/libQt6Network.so.6.11.2 lib/libsimplecpp.a /usr/lib64/libtinyxml2.so.11.0.0 /usr/lib64/libQt6Widgets.so.6.11.2 /usr/lib64/libQt6Gui.so.6.11.2 /usr/lib64/libGLX.so /usr/lib64/libOpenGL.so /usr/lib64/libQt6Sql.so.6.11.2 /usr/lib64/libQt6Core.so.6.11.2 && : [410/411] : && /usr/bin/clang++ -O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -DNDEBUG -Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 -Xlinker --dependency-file=test/CMakeFiles/testrunner.dir/link.d lib/CMakeFiles/cppcheck-core.dir/build/mc_valueflow.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenize.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_symboldatabase.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_addoninfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_analyzerinfo.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_astutils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_check64bit.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkassert.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkautovariables.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbool.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkbufferoverrun.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkclass.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkcondition.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersidmapping.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkersreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkexceptionsafety.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkimpl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkinternal.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkio.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkleakautovar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkmemoryleak.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checknullpointer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkother.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkpostfixoperator.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checks.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checksizeof.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstl.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkstring.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checktype.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkuninitvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedfunctions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkunusedvar.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_checkvaarg.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_clangimport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_color.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_cppcheck.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_ctu.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errorlogger.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_errortypes.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_findtoken.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_forwardanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_fwdanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_importproject.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_infer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_keywords.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_library.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_mathlib.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_path.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathanalysis.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_pathmatch.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_platform.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_preprocessor.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_programmemory.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_regex.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_reverseanalyzer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_sarifreport.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_settings.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_standards.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_summaries.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_suppressions.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_templatesimplifier.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_timer.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_token.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_tokenlist.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_utils.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_analyzers.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_common.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vf_settokenvalue.cpp.o lib/CMakeFiles/cppcheck-core.dir/build/mc_vfvalue.cpp.o test/CMakeFiles/testrunner.dir/fixture.cpp.o test/CMakeFiles/testrunner.dir/helpers.cpp.o test/CMakeFiles/testrunner.dir/main.cpp.o test/CMakeFiles/testrunner.dir/options.cpp.o test/CMakeFiles/testrunner.dir/test64bit.cpp.o test/CMakeFiles/testrunner.dir/testanalyzerinformation.cpp.o test/CMakeFiles/testrunner.dir/testassert.cpp.o test/CMakeFiles/testrunner.dir/testastutils.cpp.o test/CMakeFiles/testrunner.dir/testautovariables.cpp.o test/CMakeFiles/testrunner.dir/testbool.cpp.o test/CMakeFiles/testrunner.dir/testbufferoverrun.cpp.o test/CMakeFiles/testrunner.dir/testcharvar.cpp.o test/CMakeFiles/testrunner.dir/testcheck.cpp.o test/CMakeFiles/testrunner.dir/testcheckersreport.cpp.o test/CMakeFiles/testrunner.dir/testclangimport.cpp.o test/CMakeFiles/testrunner.dir/testclass.cpp.o test/CMakeFiles/testrunner.dir/testcmdlineparser.cpp.o test/CMakeFiles/testrunner.dir/testcolor.cpp.o test/CMakeFiles/testrunner.dir/testcondition.cpp.o test/CMakeFiles/testrunner.dir/testconstructors.cpp.o test/CMakeFiles/testrunner.dir/testcppcheck.cpp.o test/CMakeFiles/testrunner.dir/testerrorlogger.cpp.o test/CMakeFiles/testrunner.dir/testexceptionsafety.cpp.o test/CMakeFiles/testrunner.dir/testexecutor.cpp.o test/CMakeFiles/testrunner.dir/testfilelister.cpp.o test/CMakeFiles/testrunner.dir/testfilesettings.cpp.o test/CMakeFiles/testrunner.dir/testfrontend.cpp.o test/CMakeFiles/testrunner.dir/testfunctions.cpp.o test/CMakeFiles/testrunner.dir/testgarbage.cpp.o test/CMakeFiles/testrunner.dir/testimportproject.cpp.o test/CMakeFiles/testrunner.dir/testincompletestatement.cpp.o test/CMakeFiles/testrunner.dir/testinternal.cpp.o test/CMakeFiles/testrunner.dir/testio.cpp.o test/CMakeFiles/testrunner.dir/testleakautovar.cpp.o test/CMakeFiles/testrunner.dir/testlibrary.cpp.o test/CMakeFiles/testrunner.dir/testmathlib.cpp.o test/CMakeFiles/testrunner.dir/testmemleak.cpp.o test/CMakeFiles/testrunner.dir/testnullpointer.cpp.o test/CMakeFiles/testrunner.dir/testoptions.cpp.o test/CMakeFiles/testrunner.dir/testother.cpp.o test/CMakeFiles/testrunner.dir/testpath.cpp.o test/CMakeFiles/testrunner.dir/testpathmatch.cpp.o test/CMakeFiles/testrunner.dir/testplatform.cpp.o test/CMakeFiles/testrunner.dir/testpostfixoperator.cpp.o test/CMakeFiles/testrunner.dir/testpreprocessor.cpp.o test/CMakeFiles/testrunner.dir/testprocessexecutor.cpp.o test/CMakeFiles/testrunner.dir/testprogrammemory.cpp.o test/CMakeFiles/testrunner.dir/testregex.cpp.o test/CMakeFiles/testrunner.dir/testsarifreport.cpp.o test/CMakeFiles/testrunner.dir/testsettings.cpp.o test/CMakeFiles/testrunner.dir/testsimplifytemplate.cpp.o test/CMakeFiles/testrunner.dir/testsimplifytokens.cpp.o test/CMakeFiles/testrunner.dir/testsimplifytypedef.cpp.o test/CMakeFiles/testrunner.dir/testsimplifyusing.cpp.o test/CMakeFiles/testrunner.dir/testsingleexecutor.cpp.o test/CMakeFiles/testrunner.dir/testsizeof.cpp.o test/CMakeFiles/testrunner.dir/teststandards.cpp.o test/CMakeFiles/testrunner.dir/teststl.cpp.o test/CMakeFiles/testrunner.dir/teststring.cpp.o test/CMakeFiles/testrunner.dir/testsummaries.cpp.o test/CMakeFiles/testrunner.dir/testsuppressions.cpp.o test/CMakeFiles/testrunner.dir/testsymboldatabase.cpp.o test/CMakeFiles/testrunner.dir/testthreadexecutor.cpp.o test/CMakeFiles/testrunner.dir/testtimer.cpp.o test/CMakeFiles/testrunner.dir/testtoken.cpp.o test/CMakeFiles/testrunner.dir/testtokenize.cpp.o test/CMakeFiles/testrunner.dir/testtokenlist.cpp.o test/CMakeFiles/testrunner.dir/testtokenrange.cpp.o test/CMakeFiles/testrunner.dir/testtype.cpp.o test/CMakeFiles/testrunner.dir/testuninitvar.cpp.o test/CMakeFiles/testrunner.dir/testunusedfunctions.cpp.o test/CMakeFiles/testrunner.dir/testunusedprivfunc.cpp.o test/CMakeFiles/testrunner.dir/testunusedvar.cpp.o test/CMakeFiles/testrunner.dir/testutils.cpp.o test/CMakeFiles/testrunner.dir/testvaarg.cpp.o test/CMakeFiles/testrunner.dir/testvalueflow.cpp.o test/CMakeFiles/testrunner.dir/testvarid.cpp.o test/CMakeFiles/testrunner.dir/testvfvalue.cpp.o -o bin/testrunner lib/libsimplecpp.a lib/libfrontend.a lib/libcli.a lib/libfrontend.a /usr/lib64/libtinyxml2.so.11.0.0 lib/libsimplecpp.a && : + RPM_EC=0 ++ jobs -p + exit 0 Executing(%install): /bin/sh -e /var/tmp/rpm-tmp.U8dayh + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + '[' /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT '!=' / ']' + rm -rf /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT ++ dirname /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT + mkdir -p /builddir/build/BUILD/cppcheck-2.22.0-build + mkdir /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT + CFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + cd cppcheck-2.22.0 + DESTDIR=/builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT + /usr/bin/cmake --install redhat-linux-build -- Install configuration: "Release" -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/bin/cppcheck -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/bin/cppcheck-htmlreport -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/__init__.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/cppcheck.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/cppcheckdata.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/findcasts.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/misc.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/misra.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/misra_9.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/naming.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/namingng.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/runaddon.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/threadsafety.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/y2038.py -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/ROS_naming.json -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/namingng.config.json -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/namingng.json -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/avr.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/bento4.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/boost.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/bsd.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/cairo.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/cppcheck-lib.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/cppunit.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/dpdk.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/embedded_sql.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/emscripten.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/ginac.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/gnu.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/googletest.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/gtk.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/icu.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/kde.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/libcerror.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/libcurl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/libsigc++.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/lua.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/mfc.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/microsoft_atl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/microsoft_gsl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/microsoft_sal.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/microsoft_unittest.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/motif.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/nspr.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/ntl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/opencv2.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/opengl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/openmp.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/openssl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/pcre.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/posix.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/protobuf.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/python.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/qt.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/ruby.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/sdl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/selinux.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/sfml.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/sqlite3.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/std.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/tinyxml2.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/vcl.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/windows.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/wxsqlite3.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/wxsvg.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/wxwidgets.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/zephyr.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/cfg/zlib.cfg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/aix_ppc64.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/arm32-wchar_t2.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/arm32-wchar_t4.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/arm64-wchar_t2.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/arm64-wchar_t4.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/avr8.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/cray_sv1.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/elbrus-e1cp.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/mips32.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/msp430_eabi_large_datamodel.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/pic16.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/pic8-enhanced.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/pic8.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/riscv32.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/platforms/riscv64.xml -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/bin/cppcheck-gui -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_de.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_es.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_fi.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_fr.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_it.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_ja.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_ka.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_ko.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_nl.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_ru.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_sr.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_sv.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_zh_CN.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/lang/cppcheck_zh_TW.qm -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/applications/cppcheck-gui.desktop -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/icons/hicolor/scalable/apps/cppcheck-gui.svg -- Installing: /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/icons/hicolor/64x64/apps/cppcheck-gui.png + install -D -p -m 644 cppcheck.1 /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/man/man1/cppcheck.1 + desktop-file-validate /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/applications/cppcheck-gui.desktop + install -D -p -m 644 gui/cppcheck-gui.png /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/pixmaps/cppcheck-gui.png + install -D -p -m 644 gui/help/online-help.qhc /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/help/online-help.qhc + install -D -p -m 644 gui/help/online-help.qch /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/help/online-help.qch + install -D -p -m 755 htmlreport/cppcheck-htmlreport /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/bin/cppcheck-htmlreport + grep -l '#\!/usr/bin/env python3' /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/__init__.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/cppcheck.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/cppcheckdata.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/findcasts.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/misc.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/misra.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/misra_9.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/naming.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/namingng.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/runaddon.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/threadsafety.py /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/Cppcheck/addons/y2038.py + xargs chmod +x grep: warning: stray \ before ! + /usr/bin/find-debuginfo -j4 --strict-build-id -m -i --build-id-seed 2.22.0-1.fc46 --unique-debug-suffix -2.22.0-1.fc46.x86_64 --unique-debug-src-base cppcheck-2.22.0-1.fc46.x86_64 --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 110000000 --remove-section .gnu.build.attributes -S debugsourcefiles.list /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0 find-debuginfo: starting Extracting debug info from 2 files DWARF-compressing 2 files sepdebugcrcfix: Updated 2 CRC32s, 0 CRC32s did match. Creating .debug symlinks for symlinks to ELF files Copying sources found by 'debugedit -l' to /usr/src/debug/cppcheck-2.22.0-1.fc46.x86_64 find-debuginfo: done + /usr/lib/rpm/check-buildroot + /usr/lib/rpm/redhat/brp-ldconfig + COMPRESS='gzip -9 -n' + COMPRESS_EXT=.gz + /usr/lib/rpm/brp-compress + /usr/lib/rpm/redhat/brp-strip-lto /usr/bin/strip + /usr/lib/rpm/check-rpaths + /usr/lib/rpm/redhat/brp-mangle-shebangs mangling shebang in /usr/share/Cppcheck/addons/y2038.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/share/Cppcheck/addons/threadsafety.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/share/Cppcheck/addons/namingng.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/share/Cppcheck/addons/naming.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/share/Cppcheck/addons/misra.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/share/Cppcheck/addons/misc.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/share/Cppcheck/addons/findcasts.py from /usr/bin/env python3 to #!/usr/bin/python3 mangling shebang in /usr/bin/cppcheck-htmlreport from /usr/bin/env python3 to #!/usr/bin/python3 + /usr/lib/rpm/brp-remove-la-files + /usr/lib/rpm/redhat/brp-python-rpm-in-distinfo + env /usr/lib/rpm/redhat/brp-python-bytecompile '' 1 0 -j4 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j4 /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT Scanned 41 directories and 453 files, processed 1 inodes, 0 modified (0 replaced + 0 rewritten), 0 unsupported format, 0 errors + /usr/bin/linkdupes --brp /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr Scanned 40 directories and 453 files, considered 453 files, read 23 files, linked 3 files, 0 errors sum of sizes of linked files: 3320 bytes Reading /builddir/build/BUILD/cppcheck-2.22.0-build/SPECPARTS/rpm-debuginfo.specpart Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.GOTRhf + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + CFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CFLAGS + CXXFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer ' + export CXXFLAGS + FFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FFLAGS + FCFLAGS='-O2 -flto=thin -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS --config=/usr/lib/rpm/redhat/redhat-hardened-clang.cfg -fstack-protector-strong -m64 -march=x86-64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -mtls-dialect=gnu2 -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none -Cforce-frame-pointers=yes --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 ' + export LDFLAGS + LT_SYS_LIBRARY_PATH=/usr/lib64: + export LT_SYS_LIBRARY_PATH + CC=clang + export CC + CXX=clang++ + export CXX + cd cppcheck-2.22.0 + /usr/bin/ctest --test-dir redhat-linux-build --output-on-failure --force-new-ctest-process -j4 --parallel 1 -E addon Test project /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build Start 50: TestProcessExecutorFiles 1/117 Test #50: TestProcessExecutorFiles ............. Passed 0.15 sec Start 51: TestProcessExecutorFS 2/117 Test #51: TestProcessExecutorFS ................ Passed 0.15 sec Start 15: TestCondition 3/117 Test #15: TestCondition ........................ Passed 0.73 sec Start 64: TestStl 4/117 Test #64: TestStl .............................. Passed 0.35 sec Start 73: TestTokenizer 5/117 Test #73: TestTokenizer ........................ Passed 0.17 sec Start 5: TestAutoVariables 6/117 Test #5: TestAutoVariables .................... Passed 0.10 sec Start 77: TestUninitVar 7/117 Test #77: TestUninitVar ........................ Passed 0.17 sec Start 107: cfg-std_c 8/117 Test #107: cfg-std_c ............................ Passed 1.27 sec Start 108: cfg-std_cpp 9/117 Test #108: cfg-std_cpp .......................... Passed 1.65 sec Start 7: TestBufferOverrun 10/117 Test #7: TestBufferOverrun .................... Passed 0.15 sec Start 12: TestClass 11/117 Test #12: TestClass ............................ Passed 0.20 sec Start 29: TestIO 12/117 Test #29: TestIO ............................... Passed 0.47 sec Start 42: TestNullPointer 13/117 Test #42: TestNullPointer ...................... Passed 0.12 sec Start 56: TestSimplifyTemplate 14/117 Test #56: TestSimplifyTemplate ................. Passed 0.07 sec Start 67: TestSuppressions 15/117 Test #67: TestSuppressions ..................... Passed 0.17 sec Start 30: TestLeakAutoVar 16/117 Test #30: TestLeakAutoVar ...................... Passed 0.08 sec Start 61: TestSingleExecutorFS 17/117 Test #61: TestSingleExecutorFS ................. Passed 0.04 sec Start 31: TestLeakAutoVarRecursiveCountLimit 18/117 Test #31: TestLeakAutoVarRecursiveCountLimit ... Passed 0.17 sec Start 44: TestOther 19/117 Test #44: TestOther ............................ Passed 0.29 sec Start 60: TestSingleExecutorFiles 20/117 Test #60: TestSingleExecutorFiles .............. Passed 0.04 sec Start 68: TestSymbolDatabase 21/117 Test #68: TestSymbolDatabase ................... Passed 0.16 sec Start 69: TestThreadExecutorFiles 22/117 Test #69: TestThreadExecutorFiles .............. Passed 0.03 sec Start 70: TestThreadExecutorFS 23/117 Test #70: TestThreadExecutorFS ................. Passed 0.03 sec Start 83: TestValueFlow 24/117 Test #83: TestValueFlow ........................ Passed 0.59 sec Start 102: cfg-posix_c 25/117 Test #102: cfg-posix_c .......................... Passed 0.19 sec Start 112: cfg-wxwidgets_cpp 26/117 Test #112: cfg-wxwidgets_cpp .................... Passed 0.29 sec Start 80: TestUnusedVar 27/117 Test #80: TestUnusedVar ........................ Passed 0.13 sec Start 109: cfg-windows32A 28/117 Test #109: cfg-windows32A ....................... Passed 0.18 sec Start 110: cfg-windows32W 29/117 Test #110: cfg-windows32W ....................... Passed 0.17 sec Start 111: cfg-windows64 30/117 Test #111: cfg-windows64 ........................ Passed 0.17 sec Start 1: Test64BitPortability 31/117 Test #1: Test64BitPortability ................. Passed 0.01 sec Start 2: TestAnalyzerInformation 32/117 Test #2: TestAnalyzerInformation .............. Passed 0.00 sec Start 3: TestAssert 33/117 Test #3: TestAssert ........................... Passed 0.01 sec Start 4: TestAstUtils 34/117 Test #4: TestAstUtils ......................... Passed 0.03 sec Start 6: TestBool 35/117 Test #6: TestBool ............................. Passed 0.03 sec Start 8: TestCharVar 36/117 Test #8: TestCharVar .......................... Passed 0.00 sec Start 9: TestCheck 37/117 Test #9: TestCheck ............................ Passed 0.00 sec Start 10: TestCheckersReport 38/117 Test #10: TestCheckersReport ................... Passed 0.00 sec Start 11: TestClangImport 39/117 Test #11: TestClangImport ...................... Passed 0.00 sec Start 13: TestCmdlineParser 40/117 Test #13: TestCmdlineParser .................... Passed 0.04 sec Start 14: TestColor 41/117 Test #14: TestColor ............................ Passed 0.00 sec Start 16: TestConstructors 42/117 Test #16: TestConstructors ..................... Passed 0.06 sec Start 17: TestCppcheck 43/117 Test #17: TestCppcheck ......................... Passed 0.01 sec Start 18: TestErrorLogger 44/117 Test #18: TestErrorLogger ...................... Passed 0.00 sec Start 19: TestExceptionSafety 45/117 Test #19: TestExceptionSafety .................. Passed 0.01 sec Start 20: TestExecutor 46/117 Test #20: TestExecutor ......................... Passed 0.00 sec Start 21: TestFileLister 47/117 Test #21: TestFileLister ....................... Passed 0.01 sec Start 22: TestFileSettings 48/117 Test #22: TestFileSettings ..................... Passed 0.00 sec Start 23: TestFrontend 49/117 Test #23: TestFrontend ......................... Passed 0.00 sec Start 24: TestFunctions 50/117 Test #24: TestFunctions ........................ Passed 0.06 sec Start 25: TestGarbage 51/117 Test #25: TestGarbage .......................... Passed 0.05 sec Start 26: TestImportProject 52/117 Test #26: TestImportProject .................... Passed 0.00 sec Start 27: TestIncompleteStatement 53/117 Test #27: TestIncompleteStatement .............. Passed 0.04 sec Start 28: TestInternal 54/117 Test #28: TestInternal ......................... Passed 0.00 sec Start 32: TestLeakAutoVarStrcpy 55/117 Test #32: TestLeakAutoVarStrcpy ................ Passed 0.01 sec Start 33: TestLeakAutoVarWindows 56/117 Test #33: TestLeakAutoVarWindows ............... Passed 0.02 sec Start 34: TestLeakAutoVarPosix 57/117 Test #34: TestLeakAutoVarPosix ................. Passed 0.01 sec Start 35: TestLibrary 58/117 Test #35: TestLibrary .......................... Passed 0.03 sec Start 36: TestMathLib 59/117 Test #36: TestMathLib .......................... Passed 0.00 sec Start 37: TestMemleak 60/117 Test #37: TestMemleak .......................... Passed 0.00 sec Start 38: TestMemleakInFunction 61/117 Test #38: TestMemleakInFunction ................ Passed 0.02 sec Start 39: TestMemleakInClass 62/117 Test #39: TestMemleakInClass ................... Passed 0.02 sec Start 40: TestMemleakStructMember 63/117 Test #40: TestMemleakStructMember .............. Passed 0.02 sec Start 41: TestMemleakNoVar 64/117 Test #41: TestMemleakNoVar ..................... Passed 0.02 sec Start 43: TestOptions 65/117 Test #43: TestOptions .......................... Passed 0.00 sec Start 45: TestPath 66/117 Test #45: TestPath ............................. Passed 0.00 sec Start 46: TestPathMatch 67/117 Test #46: TestPathMatch ........................ Passed 0.00 sec Start 47: TestPlatform 68/117 Test #47: TestPlatform ......................... Passed 0.00 sec Start 48: TestPostfixOperator 69/117 Test #48: TestPostfixOperator .................. Passed 0.01 sec Start 49: TestPreprocessor 70/117 Test #49: TestPreprocessor ..................... Passed 0.02 sec Start 52: TestProgramMemory 71/117 Test #52: TestProgramMemory .................... Passed 0.00 sec Start 53: TestRegExPcre 72/117 Test #53: TestRegExPcre ........................ Passed 0.00 sec Start 54: TestSarifReport 73/117 Test #54: TestSarifReport ...................... Passed 0.00 sec Start 55: TestSettings 74/117 Test #55: TestSettings ......................... Passed 0.00 sec Start 57: TestSimplifyTokens 75/117 Test #57: TestSimplifyTokens ................... Passed 0.04 sec Start 58: TestSimplifyTypedef 76/117 Test #58: TestSimplifyTypedef .................. Passed 0.03 sec Start 59: TestSimplifyUsing 77/117 Test #59: TestSimplifyUsing .................... Passed 0.02 sec Start 62: TestSizeof 78/117 Test #62: TestSizeof ........................... Passed 0.02 sec Start 63: TestStandards 79/117 Test #63: TestStandards ........................ Passed 0.00 sec Start 65: TestString 80/117 Test #65: TestString ........................... Passed 0.02 sec Start 66: TestSummaries 81/117 Test #66: TestSummaries ........................ Passed 0.00 sec Start 71: TestTimer 82/117 Test #71: TestTimer ............................ Passed 0.00 sec Start 72: TestToken 83/117 Test #72: TestToken ............................ Passed 0.00 sec Start 74: TestTokenList 84/117 Test #74: TestTokenList ........................ Passed 0.00 sec Start 75: TestTokenRange 85/117 Test #75: TestTokenRange ....................... Passed 0.00 sec Start 76: TestType 86/117 Test #76: TestType ............................. Passed 0.02 sec Start 78: TestUnusedFunctions 87/117 Test #78: TestUnusedFunctions .................. Passed 0.03 sec Start 79: TestUnusedPrivateFunction 88/117 Test #79: TestUnusedPrivateFunction ............ Passed 0.01 sec Start 81: TestUtils 89/117 Test #81: TestUtils ............................ Passed 0.00 sec Start 82: TestVaarg 90/117 Test #82: TestVaarg ............................ Passed 0.01 sec Start 84: TestVarID 91/117 Test #84: TestVarID ............................ Passed 0.04 sec Start 85: TestValueFlowValue 92/117 Test #85: TestValueFlowValue ................... Passed 0.00 sec Start 86: cfg-boost_cpp 93/117 Test #86: cfg-boost_cpp ........................ Passed 0.01 sec Start 87: cfg-bsd_c 94/117 Test #87: cfg-bsd_c ............................ Passed 0.01 sec Start 88: cfg-cairo_c 95/117 Test #88: cfg-cairo_c .......................... Passed 0.01 sec Start 89: cfg-cppunit_cpp 96/117 Test #89: cfg-cppunit_cpp ...................... Passed 0.01 sec Start 90: cfg-emscripten_cpp 97/117 Test #90: cfg-emscripten_cpp ................... Passed 0.01 sec Start 91: cfg-gnu_c 98/117 Test #91: cfg-gnu_c ............................ Passed 0.10 sec Start 92: cfg-googletest_cpp 99/117 Test #92: cfg-googletest_cpp ................... Passed 0.01 sec Start 93: cfg-gtk_c 100/117 Test #93: cfg-gtk_c ............................ Passed 0.04 sec Start 94: cfg-kde_cpp 101/117 Test #94: cfg-kde_cpp .......................... Passed 0.01 sec Start 95: cfg-libcurl_c 102/117 Test #95: cfg-libcurl_c ........................ Passed 0.01 sec Start 96: cfg-libsigc___cpp 103/117 Test #96: cfg-libsigc___cpp .................... Passed 0.01 sec Start 97: cfg-lua_c 104/117 Test #97: cfg-lua_c ............................ Passed 0.01 sec Start 98: cfg-mfc_cpp 105/117 Test #98: cfg-mfc_cpp .......................... Passed 0.01 sec Start 99: cfg-opencv2_cpp 106/117 Test #99: cfg-opencv2_cpp ...................... Passed 0.01 sec Start 100: cfg-openmp_c 107/117 Test #100: cfg-openmp_c ......................... Passed 0.01 sec Start 101: cfg-openssl_c 108/117 Test #101: cfg-openssl_c ........................ Passed 0.01 sec Start 103: cfg-python_c 109/117 Test #103: cfg-python_c ......................... Passed 0.01 sec Start 104: cfg-qt_cpp 110/117 Test #104: cfg-qt_cpp ........................... Passed 0.04 sec Start 105: cfg-selinux_c 111/117 Test #105: cfg-selinux_c ........................ Passed 0.01 sec Start 106: cfg-sqlite3_c 112/117 Test #106: cfg-sqlite3_c ........................ Passed 0.01 sec Start 113: test-cppchecklibrarydata 113/117 Test #113: test-cppchecklibrarydata ............. Passed 0.13 sec Start 114: test-filelist 114/117 Test #114: test-filelist ........................ Passed 0.01 sec Start 115: test-projectfile 115/117 Test #115: test-projectfile ..................... Passed 0.00 sec Start 116: test-translationhandler 116/117 Test #116: test-translationhandler .............. Passed 0.26 sec Start 117: test-xmlreportv2 117/117 Test #117: test-xmlreportv2 ..................... Passed 0.01 sec 100% tests passed, 0 tests failed out of 117 Total Test time (real) = 10.12 sec + RPM_EC=0 ++ jobs -p + exit 0 Processing files: cppcheck-2.22.0-1.fc46.x86_64 Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.nf1xPW + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + cd cppcheck-2.22.0 + DOCDIR=/builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/doc/cppcheck + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export DOCDIR + /usr/bin/mkdir -p /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/doc/cppcheck + cp -pr /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/AUTHORS /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/doc/cppcheck + cp -pr /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/man/manual.html /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/doc/cppcheck + cp -pr /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/man/reference-cfg-format.html /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/doc/cppcheck + RPM_EC=0 ++ jobs -p + exit 0 Executing(%license): /bin/sh -e /var/tmp/rpm-tmp.zkIl0H + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + cd cppcheck-2.22.0 + LICENSEDIR=/builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/licenses/cppcheck + export LC_ALL=C.UTF-8 + LC_ALL=C.UTF-8 + export LICENSEDIR + /usr/bin/mkdir -p /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/licenses/cppcheck + cp -pr /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/COPYING /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT/usr/share/licenses/cppcheck + RPM_EC=0 ++ jobs -p + exit 0 Provides: cppcheck = 2.22.0-1.fc46 cppcheck(x86-64) = 2.22.0-1.fc46 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.15)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.28)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libm.so.6(GLIBC_2.23)(64bit) libm.so.6(GLIBC_2.29)(64bit) libm.so.6(GLIBC_2.35)(64bit) libm.so.6(GLIBC_2.38)(64bit) libm.so.6(GLIBC_2.43)(64bit) libm.so.6(GLIBC_2.44)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.11)(64bit) libstdc++.so.6(CXXABI_1.3.13)(64bit) libstdc++.so.6(CXXABI_1.3.2)(64bit) libstdc++.so.6(CXXABI_1.3.3)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) libstdc++.so.6(CXXABI_1.3.7)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.18)(64bit) libstdc++.so.6(GLIBCXX_3.4.19)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.22)(64bit) libstdc++.so.6(GLIBCXX_3.4.26)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) libstdc++.so.6(GLIBCXX_3.4.32)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) libtinyxml2.so.11()(64bit) rtld(GNU_HASH) Processing files: cppcheck-gui-2.22.0-1.fc46.x86_64 Provides: application() application(cppcheck-gui.desktop) cppcheck-gui = 2.22.0-1.fc46 cppcheck-gui(x86-64) = 2.22.0-1.fc46 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PartialHardlinkSets) <= 4.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: libQt6Core.so.6()(64bit) libQt6Core.so.6(Qt_6)(64bit) libQt6Core.so.6(Qt_6.11)(64bit) libQt6Gui.so.6()(64bit) libQt6Gui.so.6(Qt_6)(64bit) libQt6Help.so.6()(64bit) libQt6Help.so.6(Qt_6)(64bit) libQt6Network.so.6()(64bit) libQt6Network.so.6(Qt_6)(64bit) libQt6PrintSupport.so.6()(64bit) libQt6PrintSupport.so.6(Qt_6)(64bit) libQt6Widgets.so.6()(64bit) libQt6Widgets.so.6(Qt_6)(64bit) libc.so.6()(64bit) libc.so.6(GLIBC_2.14)(64bit) libc.so.6(GLIBC_2.2.5)(64bit) libc.so.6(GLIBC_2.3)(64bit) libc.so.6(GLIBC_2.3.4)(64bit) libc.so.6(GLIBC_2.32)(64bit) libc.so.6(GLIBC_2.33)(64bit) libc.so.6(GLIBC_2.34)(64bit) libc.so.6(GLIBC_2.38)(64bit) libc.so.6(GLIBC_2.4)(64bit) libc.so.6(GLIBC_ABI_DT_RELR)(64bit) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2.5)(64bit) libm.so.6(GLIBC_2.23)(64bit) libm.so.6(GLIBC_2.29)(64bit) libm.so.6(GLIBC_2.35)(64bit) libm.so.6(GLIBC_2.38)(64bit) libm.so.6(GLIBC_2.43)(64bit) libm.so.6(GLIBC_2.44)(64bit) libstdc++.so.6()(64bit) libstdc++.so.6(CXXABI_1.3)(64bit) libstdc++.so.6(CXXABI_1.3.5)(64bit) libstdc++.so.6(CXXABI_1.3.7)(64bit) libstdc++.so.6(CXXABI_1.3.9)(64bit) libstdc++.so.6(GLIBCXX_3.4)(64bit) libstdc++.so.6(GLIBCXX_3.4.11)(64bit) libstdc++.so.6(GLIBCXX_3.4.14)(64bit) libstdc++.so.6(GLIBCXX_3.4.15)(64bit) libstdc++.so.6(GLIBCXX_3.4.18)(64bit) libstdc++.so.6(GLIBCXX_3.4.19)(64bit) libstdc++.so.6(GLIBCXX_3.4.20)(64bit) libstdc++.so.6(GLIBCXX_3.4.21)(64bit) libstdc++.so.6(GLIBCXX_3.4.26)(64bit) libstdc++.so.6(GLIBCXX_3.4.29)(64bit) libstdc++.so.6(GLIBCXX_3.4.30)(64bit) libstdc++.so.6(GLIBCXX_3.4.32)(64bit) libstdc++.so.6(GLIBCXX_3.4.9)(64bit) libtinyxml2.so.11()(64bit) rtld(GNU_HASH) Processing files: cppcheck-htmlreport-2.22.0-1.fc46.x86_64 Provides: cppcheck-htmlreport = 2.22.0-1.fc46 cppcheck-htmlreport(x86-64) = 2.22.0-1.fc46 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Requires: /usr/bin/python3 Processing files: cppcheck-debugsource-2.22.0-1.fc46.x86_64 Provides: cppcheck-debugsource = 2.22.0-1.fc46 cppcheck-debugsource(x86-64) = 2.22.0-1.fc46 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Processing files: cppcheck-debuginfo-2.22.0-1.fc46.x86_64 Provides: cppcheck-debuginfo = 2.22.0-1.fc46 cppcheck-debuginfo(x86-64) = 2.22.0-1.fc46 debuginfo(build-id) = 3c9c510b8c20279325919d4f317d1adbf19292ee Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: cppcheck-debugsource(x86-64) = 2.22.0-1.fc46 Processing files: cppcheck-gui-debuginfo-2.22.0-1.fc46.x86_64 Provides: cppcheck-gui-debuginfo = 2.22.0-1.fc46 cppcheck-gui-debuginfo(x86-64) = 2.22.0-1.fc46 debuginfo(build-id) = 77b7bee9fc129f20fdc6ca5d75c37187952a7ac8 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: cppcheck-debugsource(x86-64) = 2.22.0-1.fc46 Checking for unpackaged file(s): /usr/lib/rpm/check-files /builddir/build/BUILD/cppcheck-2.22.0-build/BUILDROOT Wrote: /builddir/build/RPMS/cppcheck-debugsource-2.22.0-1.fc46.x86_64.rpm Wrote: /builddir/build/RPMS/cppcheck-2.22.0-1.fc46.x86_64.rpm Wrote: /builddir/build/RPMS/cppcheck-htmlreport-2.22.0-1.fc46.x86_64.rpm Wrote: /builddir/build/RPMS/cppcheck-gui-2.22.0-1.fc46.x86_64.rpm Wrote: /builddir/build/RPMS/cppcheck-gui-debuginfo-2.22.0-1.fc46.x86_64.rpm Wrote: /builddir/build/RPMS/cppcheck-debuginfo-2.22.0-1.fc46.x86_64.rpm Executing(rmbuild): /bin/sh -e /var/tmp/rpm-tmp.fR3vNc + umask 022 + cd /builddir/build/BUILD/cppcheck-2.22.0-build + test -d /builddir/build/BUILD/cppcheck-2.22.0-build + /usr/bin/chmod -Rf a+rX,u+w,g-w,o-w /builddir/build/BUILD/cppcheck-2.22.0-build + rm -rf /builddir/build/BUILD/cppcheck-2.22.0-build + RPM_EC=0 ++ jobs -p + exit 0 Finish: rpmbuild cppcheck-2.22.0-1.fc46.src.rpm Finish: build phase for cppcheck-2.22.0-1.fc46.src.rpm INFO: chroot_scan: 1 files copied to /var/lib/copr-rpmbuild/results/chroot_scan INFO: /var/lib/mock/fedora-rawhide-x86_64-1790849817.256227/root/var/log/dnf5.log INFO: chroot_scan: creating tarball /var/lib/copr-rpmbuild/results/chroot_scan.tar.gz /bin/tar: Removing leading `/' from member names INFO: Done(/var/lib/copr-rpmbuild/results/cppcheck-2.22.0-1.fc46.src.rpm) Config(child) 7 minutes 5 seconds INFO: Results and/or logs in: /var/lib/copr-rpmbuild/results INFO: Cleaning up build root ('cleanup_on_success=True') Start: clean chroot INFO: unmounting tmpfs. Finish: clean chroot Finish: run Running RPMResults tool Package info: { "packages": [ { "name": "cppcheck-debuginfo", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "x86_64" }, { "name": "cppcheck-debugsource", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "x86_64" }, { "name": "cppcheck-gui-debuginfo", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "x86_64" }, { "name": "cppcheck", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "src" }, { "name": "cppcheck-htmlreport", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "x86_64" }, { "name": "cppcheck-gui", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "x86_64" }, { "name": "cppcheck", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "x86_64" } ] } RPMResults finished