Warning: Permanently added '13.122.90.7' (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-s390x --chroot fedora-rawhide-s390x Version: 1.10 PID: 5242 Logging PID: 5244 Task: {'allow_user_ssh': False, 'appstream': False, 'background': True, 'build_id': 11059310, 'buildroot_pkgs': ['fedora-clang-default-cc'], 'chroot': 'fedora-rawhide-s390x', '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-s390x/', '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-s390x/', '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-s390x/', '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-s390x', 'timeout': 90000, 'uses_devel_repo': False, 'with_opts': ['toolchain_clang', 'clang_lto'], 'without_opts': []} Running: git clone https://copr-dist-git.fedorainfracloud.org/git/@fedora-llvm-team/clang-monthly-fedora-rebuild/cppcheck /var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/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-bjaf4g4b/cppcheck', '--depth', '500', '--no-single-branch', '--recursive'] cwd: . rc: 0 stdout: stderr: Cloning into '/var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/cppcheck'... Running: git checkout f60f7963200a17dc6d6342bd2006195c51434d56 -- cmd: ['git', 'checkout', 'f60f7963200a17dc6d6342bd2006195c51434d56', '--'] cwd: /var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/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-bjaf4g4b/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 3.50M 0 00:01 00:01 1.36M INFO: Reading stdout from command: md5sum cppcheck-2.22.0.tar.gz Running (timeout=90000): unbuffer mock --spec /var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/cppcheck/cppcheck.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/cppcheck --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1790998635.037619 -r /var/lib/copr-rpmbuild/results/configs/child.cfg --with toolchain_clang --with clang_lto tail: /var/lib/copr-rpmbuild/main.log: file truncated INFO: mock.py version 6.9 starting (python version = 3.14.5, NVR = mock-6.9-1.fc44), args: /usr/libexec/mock/mock --spec /var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/cppcheck/cppcheck.spec --sources /var/lib/copr-rpmbuild/workspace/workdir-bjaf4g4b/cppcheck --resultdir /var/lib/copr-rpmbuild/results --uniqueext 1790998635.037619 -r /var/lib/copr-rpmbuild/results/configs/child.cfg --with toolchain_clang --with 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-bjaf4g4b/cppcheck/cppcheck.spec) Config(fedora-rawhide-s390x) Start: clean chroot Finish: clean chroot Mock Version: 6.9 INFO: Mock Version: 6.9 Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-s390x-bootstrap-1790998635.037619/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-8816ba51-4ef2-4f8f-bebc-344b2a549351 INFO: Checking that 7a840af7fea2c1a4a645cc0a833e2a111868ea4d4913fca5a2dd837a47653c14 image matches host's architecture INFO: Copy content of container 7a840af7fea2c1a4a645cc0a833e2a111868ea4d4913fca5a2dd837a47653c14 to /var/lib/mock/fedora-rawhide-s390x-bootstrap-1790998635.037619/root INFO: mounting 7a840af7fea2c1a4a645cc0a833e2a111868ea4d4913fca5a2dd837a47653c14 with podman image mount INFO: image 7a840af7fea2c1a4a645cc0a833e2a111868ea4d4913fca5a2dd837a47653c14 as /var/lib/containers/storage/overlay/e9e7dd9e9b196bdc3fc1da7681bd8cf9c95de9688cc19ce69495db1876258da5/merged INFO: umounting image 7a840af7fea2c1a4a645cc0a833e2a111868ea4d4913fca5a2dd837a47653c14 (/var/lib/containers/storage/overlay/e9e7dd9e9b196bdc3fc1da7681bd8cf9c95de9688cc19ce69495db1876258da5/merged) with podman image umount INFO: Removing image mock-bootstrap-8816ba51-4ef2-4f8f-bebc-344b2a549351 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-s390x-1790998635.037619/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.s390x rpm-sequoia-1.10.3-1.fc46.s390x dnf5-5.4.6.0-1.fc46.s390x dnf5-plugins-5.4.6.0-1.fc46.s390x Start: installing minimal buildroot with dnf5 Updating and loading repositories: Additional repo copr_tstellar_fedora_c 100% | 2.6 KiB/s | 2.5 KiB | 00m01s Additional repo copr_fedora_llvm_team_ 100% | 15.1 KiB/s | 25.7 KiB | 00m02s Copr repository 100% | 1.7 MiB/s | 3.9 MiB | 00m02s fedora 100% | 5.0 MiB/s | 19.8 MiB | 00m04s Repositories loaded. Package Arch Version Repository Size Installing group/module packages: bash s390x 0:5.3.15-2.fc46 copr_base 8.7 MiB bzip2 s390x 0:1.0.8-24.fc46 copr_base 86.2 KiB coreutils s390x 0:9.12-1.fc46 fedora 6.5 MiB cpio s390x 0:2.15-10.fc46 copr_base 1.2 MiB diffutils s390x 0:3.12-6.fc45 fedora 1.6 MiB fedora-release-common noarch 0:46-0.1 fedora 4.6 KiB findutils s390x 1:4.11.0-2.fc46 copr_base 2.0 MiB gawk s390x 0:5.4.1-1.fc46 copr_base 2.3 MiB glibc-minimal-langpack s390x 0:2.44.9000-4.fc46 fedora 0.0 B grep s390x 0:3.12-4.fc45 fedora 1.0 MiB gzip s390x 0:1.14-4.fc46 copr_base 413.3 KiB info s390x 0:7.3-3.fc46 copr_base 439.2 KiB patch s390x 0:2.8-6.fc46 copr_base 270.8 KiB redhat-rpm-config noarch 0:345-4.fc46 fedora 184.2 KiB rpm-build s390x 0:6.1.0-1.fc46 fedora 302.1 KiB sed s390x 0:4.10-2.fc45 fedora 870.1 KiB shadow-utils s390x 2:4.20.0-1.fc46 copr_base 4.0 MiB tar s390x 2:1.35-9.fc45 fedora 3.0 MiB unzip s390x 0:6.0-71.fc45 fedora 440.9 KiB util-linux s390x 0:2.42.4-2.fc46 fedora 3.5 MiB which s390x 0:2.25-2.fc46 copr_base 82.8 KiB xz s390x 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 s390x 0:0.7.3-3.fc45 fedora 2.3 MiB alternatives s390x 0:1.33-6.fc46 copr_base 65.6 KiB ansible-srpm-macros noarch 0:1-22.fc45 fedora 35.7 KiB audit-libs s390x 0:4.2.1-2.fc45 fedora 397.8 KiB binutils s390x 0:2.47.50-12.fc46 fedora 25.0 MiB build-reproducibility-srpm-macros noarch 0:0.7.3-3.fc45 fedora 1.2 KiB bzip2-libs s390x 0:1.0.8-24.fc46 copr_base 120.1 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 s390x 0:9.12-1.fc46 fedora 11.5 MiB crypto-policies noarch 0:20260713-2.gitc42da77.fc45 fedora 134.3 KiB curl s390x 0:8.23.0~rc2-1.fc46 fedora 509.3 KiB cyrus-sasl-lib s390x 0:2.1.28-37.fc45 fedora 2.4 MiB debugedit s390x 0:5.3-3.fc46 copr_base 227.6 KiB dwz s390x 0:0.17-3.fc45 fedora 310.4 KiB ed s390x 0:1.22.6-1.fc46 copr_base 166.7 KiB efi-srpm-macros noarch 0:6-9.fc45 fedora 40.3 KiB elfutils s390x 0:0.196-1.fc46 fedora 3.0 MiB elfutils-debuginfod-client s390x 0:0.196-1.fc46 fedora 75.4 KiB elfutils-libelf s390x 0:0.196-1.fc46 fedora 1.4 MiB elfutils-libs s390x 0:0.196-1.fc46 fedora 786.2 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 s390x 0:5.48-3.fc46 fedora 101.6 KiB file-libs s390x 0:5.48-3.fc46 fedora 12.3 MiB filesystem s390x 0:3.18-59.fc45 fedora 112.0 B filesystem-srpm-macros noarch 0:3.18-59.fc45 fedora 38.2 KiB fips-provider s390x 0:1.5.3-1.fc46 fedora 4.1 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 s390x 0:17.2-6.fc46 fedora 15.9 MiB gdbm-libs s390x 1:1.23-12.fc46 copr_base 157.3 KiB ghc-srpm-macros noarch 0:1.10-2.fc45 fedora 792.0 B glibc s390x 0:2.44.9000-4.fc46 fedora 5.5 MiB glibc-common s390x 0:2.44.9000-4.fc46 fedora 1.1 MiB glibc-gconv-extra s390x 0:2.44.9000-4.fc46 fedora 6.8 MiB gmp s390x 1:6.3.0-6.fc45 fedora 769.7 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 s390x 0:2.4.9-18.fc46 copr_base 6.8 MiB gnupg2-dirmngr s390x 0:2.4.9-18.fc46 copr_base 795.5 KiB gnupg2-gpg-agent s390x 0:2.4.9-18.fc46 copr_base 881.0 KiB gnupg2-gpgconf s390x 0:2.4.9-18.fc46 copr_base 310.5 KiB gnupg2-keyboxd s390x 0:2.4.9-18.fc46 copr_base 246.1 KiB gnupg2-verify s390x 0:2.4.9-18.fc46 copr_base 451.1 KiB gnutls s390x 0:3.8.13-5.fc46 fedora 3.7 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 s390x 0:1.6.2-12.fc46 copr_base 56.2 KiB jansson s390x 0:2.14-5.fc46 copr_base 108.9 KiB java-srpm-macros noarch 0:1-9.fc45 fedora 870.0 B json-c s390x 0:0.18-9.fc46 copr_base 90.2 KiB kernel-srpm-macros noarch 0:1.0-30.fc45 fedora 1.9 KiB keyutils-libs s390x 0:1.6.3-8.fc46 copr_base 49.8 KiB krb5-libs s390x 0:1.22.2-9.fc45 fedora 2.5 MiB libacl s390x 0:2.4.0-2.fc45 fedora 43.6 KiB libarchive s390x 0:3.8.9-2.fc46 copr_base 1.1 MiB libassuan s390x 0:2.5.7-6.fc46 copr_base 167.8 KiB libattr s390x 0:2.6.0-2.fc46 copr_base 23.9 KiB libblkid s390x 0:2.42.4-2.fc46 fedora 290.1 KiB libbrotli s390x 0:1.2.0-6.fc46 copr_base 984.0 KiB libcap s390x 0:2.78-2.fc45 fedora 210.1 KiB libcap-ng s390x 0:0.9.6-1.fc46 fedora 64.3 KiB libcbor s390x 0:0.14.0-3.fc45 fedora 83.3 KiB libcom_err s390x 0:1.47.4-2.fc46 copr_base 58.6 KiB libcurl s390x 0:8.23.0~rc2-1.fc46 fedora 1.1 MiB libeconf s390x 0:0.7.9-4.fc46 copr_base 68.8 KiB libevent s390x 0:2.1.13-1.fc46 copr_base 985.9 KiB libfdisk s390x 0:2.42.4-2.fc46 fedora 394.6 KiB libffi s390x 0:3.8.0-1.fc46 fedora 83.1 KiB libfido2 s390x 0:1.17.0-5.fc46 copr_base 261.2 KiB libfsverity s390x 0:1.7-4.fc45 fedora 24.1 KiB libgcc s390x 0:16.2.1-2.fc46.1 fedora 213.6 KiB libgcrypt s390x 0:1.12.4-1.fc46 fedora 1.3 MiB libgomp s390x 0:16.2.1-2.fc46.1 fedora 576.9 KiB libgpg-error s390x 0:1.61-2.fc46 copr_base 981.8 KiB libidn2 s390x 0:2.3.8-4.fc46 copr_base 568.1 KiB libksba s390x 0:1.8.1-1.fc46 copr_base 468.8 KiB liblastlog2 s390x 0:2.42.4-2.fc46 fedora 33.2 KiB libmount s390x 0:2.42.4-2.fc46 fedora 408.1 KiB libnghttp2 s390x 0:1.69.0-6.fc46 fedora 173.7 KiB libnghttp3 s390x 0:1.18.0-1.fc46 copr_base 203.5 KiB libpkgconf s390x 0:2.5.1-2.fc46 copr_base 93.6 KiB libpsl s390x 0:0.23.3-1.fc46 copr_base 76.0 KiB libselinux s390x 0:3.11-5.fc46 fedora 217.0 KiB libselinux-utils s390x 0:3.11-5.fc46 fedora 269.5 KiB libsemanage s390x 0:3.11-4.fc46 fedora 320.1 KiB libsepol s390x 0:3.11-2.fc46 copr_base 996.4 KiB libsmartcols s390x 0:2.42.4-2.fc46 fedora 196.1 KiB libssh s390x 0:0.12.2-1.fc45 fedora 709.1 KiB libssh-config noarch 0:0.12.2-1.fc45 fedora 277.0 B libstdc++ s390x 0:16.2.1-2.fc46.1 fedora 3.4 MiB libtasn1 s390x 0:4.21.0-2.fc46 copr_base 204.4 KiB libtool-ltdl s390x 0:2.6.2-1.fc46 fedora 69.6 KiB libunistring s390x 0:1.1-12.fc46 copr_base 1.8 MiB libusb1 s390x 0:1.0.30-2.fc45 fedora 175.4 KiB libuuid s390x 0:2.42.4-2.fc46 fedora 33.0 KiB libverto s390x 0:0.3.2-13.fc45 fedora 25.0 KiB libxcrypt s390x 0:4.5.2-4.fc45 fedora 289.0 KiB libxml2 s390x 0:2.15.4-1.fc46 fedora 1.7 MiB libzstd s390x 0:1.5.7-6.fc46 copr_base 1.2 MiB linkdupes s390x 0:0.7.3-3.fc45 fedora 905.1 KiB lua-libs s390x 0:5.5.1-2.fc46 fedora 341.8 KiB lua-srpm-macros noarch 0:1-18.fc45 fedora 1.3 KiB lz4-libs s390x 0:1.10.0-5.fc46 copr_base 236.9 KiB meson-srpm-macros noarch 0:1.12.1-2.fc46 fedora 1.7 KiB mpfr s390x 0:4.2.2-4.fc45 fedora 695.3 KiB ncurses-base noarch 0:6.6-3.fc46 copr_base 329.7 KiB ncurses-libs s390x 0:6.6-3.fc46 copr_base 1.0 MiB nettle s390x 0:4.0-5.fc45 fedora 849.1 KiB ngtcp2 s390x 0:1.22.1-3.fc45 fedora 316.9 KiB ngtcp2-crypto-ossl s390x 0:1.22.1-3.fc45 fedora 47.2 KiB npth s390x 0:1.8-5.fc46 copr_base 49.1 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 s390x 0:2.6.14-1.fc46 fedora 676.3 KiB openssl-libs s390x 1:4.0.3-1.fc46 fedora 6.0 MiB p11-kit s390x 0:0.26.5-1.fc46 copr_base 3.0 MiB p11-kit-trust s390x 0:0.26.5-1.fc46 copr_base 647.6 KiB package-notes-srpm-macros noarch 0:0.20-2.fc45 fedora 1.6 KiB pam-libs s390x 0:1.7.2-4.fc46 copr_base 125.7 KiB pcre2 s390x 0:10.47-1.fc46.2 copr_base 905.2 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 s390x 0:2.5.1-2.fc46 copr_base 94.6 KiB pkgconf-m4 noarch 0:2.5.1-2.fc46 copr_base 14.3 KiB pkgconf-pkg-config s390x 0:2.5.1-2.fc46 copr_base 988.0 B policycoreutils s390x 0:3.11-2.fc46 copr_base 863.2 KiB popt s390x 0:1.19-11.fc46 copr_base 136.2 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 s390x 0:8.3-6.fc46 copr_base 579.1 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 s390x 0:6.1.0-1.fc46 fedora 3.1 MiB rpm-build-libs s390x 0:6.1.0-1.fc46 fedora 283.7 KiB rpm-libs s390x 0:6.1.0-1.fc46 fedora 1.1 MiB rpm-plugin-selinux s390x 0:6.1.0-1.fc46 fedora 11.6 KiB rpm-sequoia s390x 0:1.10.3-1.fc46 copr_base 2.6 MiB rpm-sign-libs s390x 0:6.1.0-1.fc46 fedora 35.4 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 s390x 0:3.53.4-1.fc45 fedora 1.7 MiB systemd-libs s390x 0:262-3.fc46 fedora 2.7 MiB systemd-standalone-sysusers s390x 0:262-3.fc46 fedora 979.1 KiB tpm2-tss s390x 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 s390x 0:2.42.4-2.fc46 fedora 1.5 MiB xxhash-libs s390x 0:0.8.4-1.fc46 copr_base 77.3 KiB xz-libs s390x 1:5.8.4-1.fc46 copr_base 257.5 KiB zig-srpm-macros noarch 0:1-9.fc45 fedora 1.3 KiB zip s390x 0:3.0-46.fc45 fedora 729.1 KiB zlib-ng-compat s390x 0:2.3.3-6.fc46 copr_base 145.0 KiB zstd s390x 0:1.5.7-6.fc46 copr_base 507.2 KiB Installing groups: Buildsystem building group Transaction Summary: Installing: 189 packages Total size of inbound packages is 70 MiB. Need to download 70 MiB. After this operation, 230 MiB extra will be used (install 230 MiB, remove 0 B). [ 1/189] fedora-release-common-0:46-0. 100% | 56.6 KiB/s | 18.2 KiB | 00m00s [ 2/189] redhat-rpm-config-0:345-4.fc4 100% | 133.6 KiB/s | 78.1 KiB | 00m01s [ 3/189] glibc-minimal-langpack-0:2.44 100% | 166.3 KiB/s | 137.0 KiB | 00m01s [ 4/189] rpm-build-0:6.1.0-1.fc46.s390 100% | 243.5 KiB/s | 160.4 KiB | 00m01s [ 5/189] bash-0:5.3.15-2.fc46.s390x 100% | 203.6 MiB/s | 1.8 MiB | 00m00s [ 6/189] bzip2-0:1.0.8-24.fc46.s390x 100% | 25.1 MiB/s | 51.4 KiB | 00m00s [ 7/189] tar-2:1.35-9.fc45.s390x 100% | 1.1 MiB/s | 876.6 KiB | 00m01s [ 8/189] cpio-0:2.15-10.fc46.s390x 100% | 96.2 MiB/s | 295.6 KiB | 00m00s [ 9/189] unzip-0:6.0-71.fc45.s390x 100% | 288.2 KiB/s | 206.3 KiB | 00m01s [ 10/189] findutils-1:4.11.0-2.fc46.s39 100% | 181.7 MiB/s | 558.2 KiB | 00m00s [ 11/189] gawk-0:5.4.1-1.fc46.s390x 100% | 226.9 MiB/s | 1.1 MiB | 00m00s [ 12/189] diffutils-0:3.12-6.fc45.s390x 100% | 1.9 MiB/s | 404.8 KiB | 00m00s [ 13/189] gzip-0:1.14-4.fc46.s390x 100% | 85.9 MiB/s | 175.9 KiB | 00m00s [ 14/189] info-0:7.3-3.fc46.s390x 100% | 96.6 MiB/s | 197.8 KiB | 00m00s [ 15/189] patch-0:2.8-6.fc46.s390x 100% | 1.1 MiB/s | 124.5 KiB | 00m00s [ 16/189] coreutils-0:9.12-1.fc46.s390x 100% | 1.9 MiB/s | 1.3 MiB | 00m01s [ 17/189] shadow-utils-2:4.20.0-1.fc46. 100% | 226.9 MiB/s | 1.4 MiB | 00m00s [ 18/189] grep-0:3.12-4.fc45.s390x 100% | 949.2 KiB/s | 303.7 KiB | 00m00s [ 19/189] which-0:2.25-2.fc46.s390x 100% | 20.2 MiB/s | 41.5 KiB | 00m00s [ 20/189] xz-1:5.8.4-1.fc46.s390x 100% | 155.3 MiB/s | 636.2 KiB | 00m00s [ 21/189] sed-0:4.10-2.fc45.s390x 100% | 1.6 MiB/s | 323.5 KiB | 00m00s [ 22/189] util-linux-0:2.42.4-2.fc46.s3 100% | 4.7 MiB/s | 1.2 MiB | 00m00s [ 23/189] fedora-repos-0:46-0.3.noarch 100% | 60.1 KiB/s | 9.6 KiB | 00m00s [ 24/189] redhat-systemd-presets-0:102- 100% | 54.1 KiB/s | 8.5 KiB | 00m00s [ 25/189] R-srpm-macros-0:1.3.7-3.fc45. 100% | 70.1 KiB/s | 11.1 KiB | 00m00s [ 26/189] glibc-0:2.44.9000-4.fc46.s390 100% | 6.7 MiB/s | 2.1 MiB | 00m00s [ 27/189] glibc-common-0:2.44.9000-4.fc 100% | 1.3 MiB/s | 441.5 KiB | 00m00s [ 28/189] ansible-srpm-macros-0:1-22.fc 100% | 121.0 KiB/s | 19.8 KiB | 00m00s [ 29/189] build-reproducibility-srpm-ma 100% | 68.6 KiB/s | 10.8 KiB | 00m00s [ 30/189] cmake-srpm-macros-0:4.3.0-5.f 100% | 65.0 KiB/s | 10.3 KiB | 00m00s [ 31/189] dwz-0:0.17-3.fc45.s390x 100% | 822.4 KiB/s | 144.7 KiB | 00m00s [ 32/189] efi-srpm-macros-0:6-9.fc45.no 100% | 134.9 KiB/s | 21.4 KiB | 00m00s [ 33/189] erlang-srpm-macros-0:0.3.11-2 100% | 63.1 KiB/s | 10.0 KiB | 00m00s [ 34/189] file-0:5.48-3.fc46.s390x 100% | 308.8 KiB/s | 50.6 KiB | 00m00s [ 35/189] filesystem-srpm-macros-0:3.18 100% | 166.1 KiB/s | 26.4 KiB | 00m00s [ 36/189] fonts-srpm-macros-1:5.0.0-4.f 100% | 169.7 KiB/s | 27.2 KiB | 00m00s [ 37/189] forge-srpm-macros-0:0.4.0-5.f 100% | 123.3 KiB/s | 19.7 KiB | 00m00s [ 38/189] fpc-srpm-macros-0:1.3-17.fc45 100% | 49.1 KiB/s | 7.8 KiB | 00m00s [ 39/189] gap-srpm-macros-0:2-3.fc45.no 100% | 58.9 KiB/s | 9.3 KiB | 00m00s [ 40/189] ghc-srpm-macros-0:1.10-2.fc45 100% | 48.3 KiB/s | 8.5 KiB | 00m00s [ 41/189] gnat-srpm-macros-0:7-3.fc45.n 100% | 54.2 KiB/s | 8.6 KiB | 00m00s [ 42/189] gnome-srpm-macros-0:1.0-2.fc4 100% | 55.9 KiB/s | 8.8 KiB | 00m00s [ 43/189] java-srpm-macros-0:1-9.fc45.n 100% | 52.1 KiB/s | 8.3 KiB | 00m00s [ 44/189] go-srpm-macros-0:3.8.0-3.fc45 100% | 133.0 KiB/s | 27.8 KiB | 00m00s [ 45/189] kernel-srpm-macros-0:1.0-30.f 100% | 52.5 KiB/s | 8.3 KiB | 00m00s [ 46/189] lua-srpm-macros-0:1-18.fc45.n 100% | 55.0 KiB/s | 8.7 KiB | 00m00s [ 47/189] meson-srpm-macros-0:1.12.1-2. 100% | 57.3 KiB/s | 11.8 KiB | 00m00s [ 48/189] ocaml-srpm-macros-0:11-4.fc45 100% | 55.9 KiB/s | 9.0 KiB | 00m00s [ 49/189] openblas-srpm-macros-0:2-22.f 100% | 46.9 KiB/s | 7.5 KiB | 00m00s [ 50/189] package-notes-srpm-macros-0:0 100% | 65.6 KiB/s | 10.5 KiB | 00m00s [ 51/189] perl-srpm-macros-0:1-65.fc45. 100% | 50.0 KiB/s | 8.4 KiB | 00m00s [ 52/189] pyproject-srpm-macros-0:1.23. 100% | 97.9 KiB/s | 15.6 KiB | 00m00s [ 53/189] qt5-srpm-macros-0:5.15.18-3.f 100% | 51.0 KiB/s | 8.1 KiB | 00m00s [ 54/189] python-srpm-macros-0:3.15-2.f 100% | 110.4 KiB/s | 23.9 KiB | 00m00s [ 55/189] qt6-srpm-macros-0:6.11.2-1.fc 100% | 57.1 KiB/s | 9.1 KiB | 00m00s [ 56/189] rust-srpm-macros-0:28.5-2.fc4 100% | 70.6 KiB/s | 11.4 KiB | 00m00s [ 57/189] tree-sitter-srpm-macros-0:0.4 100% | 75.7 KiB/s | 14.0 KiB | 00m00s [ 58/189] rpm-0:6.1.0-1.fc46.s390x 100% | 2.1 MiB/s | 570.0 KiB | 00m00s [ 59/189] zig-srpm-macros-0:1-9.fc45.no 100% | 55.8 KiB/s | 8.8 KiB | 00m00s [ 60/189] zip-0:3.0-46.fc45.s390x 100% | 1.2 MiB/s | 279.2 KiB | 00m00s [ 61/189] elfutils-0:0.196-1.fc46.s390x 100% | 2.5 MiB/s | 600.3 KiB | 00m00s [ 62/189] elfutils-libelf-0:0.196-1.fc4 100% | 973.8 KiB/s | 242.5 KiB | 00m00s [ 63/189] libgcc-0:16.2.1-2.fc46.1.s390 100% | 544.1 KiB/s | 114.8 KiB | 00m00s [ 64/189] libstdc++-0:16.2.1-2.fc46.1.s 100% | 4.6 MiB/s | 1.1 MiB | 00m00s [ 65/189] rpm-build-libs-0:6.1.0-1.fc46 100% | 599.9 KiB/s | 132.0 KiB | 00m00s [ 66/189] binutils-0:2.47.50-12.fc46.s3 100% | 6.2 MiB/s | 5.2 MiB | 00m01s [ 67/189] rpm-libs-0:6.1.0-1.fc46.s390x 100% | 2.1 MiB/s | 467.2 KiB | 00m00s [ 68/189] libacl-0:2.4.0-2.fc45.s390x 100% | 168.3 KiB/s | 27.3 KiB | 00m00s [ 69/189] filesystem-0:3.18-59.fc45.s39 100% | 6.7 MiB/s | 1.8 MiB | 00m00s [ 70/189] gmp-1:6.3.0-6.fc45.s390x 100% | 1.6 MiB/s | 328.8 KiB | 00m00s [ 71/189] coreutils-common-0:9.12-1.fc4 100% | 6.1 MiB/s | 2.2 MiB | 00m00s [ 72/189] libcap-0:2.78-2.fc45.s390x 100% | 381.6 KiB/s | 90.1 KiB | 00m00s [ 73/189] systemd-libs-0:262-3.fc46.s39 100% | 3.6 MiB/s | 928.9 KiB | 00m00s [ 74/189] openssl-libs-1:4.0.3-1.fc46.s 100% | 4.7 MiB/s | 2.0 MiB | 00m00s [ 75/189] audit-libs-0:4.2.1-2.fc45.s39 100% | 735.3 KiB/s | 141.9 KiB | 00m00s [ 76/189] libsemanage-0:3.11-4.fc46.s39 100% | 775.3 KiB/s | 127.1 KiB | 00m00s [ 77/189] libxcrypt-0:4.5.2-4.fc45.s390 100% | 829.1 KiB/s | 132.7 KiB | 00m00s [ 78/189] setup-0:2.15.1-2.fc45.noarch 100% | 961.1 KiB/s | 157.6 KiB | 00m00s [ 79/189] libblkid-0:2.42.4-2.fc46.s390 100% | 811.9 KiB/s | 133.2 KiB | 00m00s [ 80/189] libfdisk-0:2.42.4-2.fc46.s390 100% | 1.0 MiB/s | 166.0 KiB | 00m00s [ 81/189] liblastlog2-0:2.42.4-2.fc46.s 100% | 151.7 KiB/s | 24.0 KiB | 00m00s [ 82/189] libuuid-0:2.42.4-2.fc46.s390x 100% | 171.9 KiB/s | 27.3 KiB | 00m00s [ 83/189] libmount-0:2.42.4-2.fc46.s390 100% | 844.9 KiB/s | 171.5 KiB | 00m00s [ 84/189] libsmartcols-0:2.42.4-2.fc46. 100% | 445.1 KiB/s | 87.7 KiB | 00m00s [ 85/189] util-linux-core-0:2.42.4-2.fc 100% | 3.1 MiB/s | 583.4 KiB | 00m00s [ 86/189] fedora-repos-rawhide-0:46-0.3 100% | 57.1 KiB/s | 9.0 KiB | 00m00s [ 87/189] fedora-gpg-keys-0:46-0.3.noar 100% | 877.0 KiB/s | 143.8 KiB | 00m00s [ 88/189] redhat-systemd-presets-common 100% | 83.7 KiB/s | 13.2 KiB | 00m00s [ 89/189] add-determinism-0:0.7.3-3.fc4 100% | 3.9 MiB/s | 864.1 KiB | 00m00s [ 90/189] glibc-gconv-extra-0:2.44.9000 100% | 7.9 MiB/s | 1.7 MiB | 00m00s [ 91/189] linkdupes-0:0.7.3-3.fc45.s390 100% | 2.1 MiB/s | 366.4 KiB | 00m00s [ 92/189] elfutils-debuginfod-client-0: 100% | 300.6 KiB/s | 47.5 KiB | 00m00s [ 93/189] file-libs-0:5.48-3.fc46.s390x 100% | 4.3 MiB/s | 884.9 KiB | 00m00s [ 94/189] elfutils-libs-0:0.196-1.fc46. 100% | 1.7 MiB/s | 292.6 KiB | 00m00s [ 95/189] libgomp-0:16.2.1-2.fc46.1.s39 100% | 2.1 MiB/s | 393.4 KiB | 00m00s [ 96/189] lua-libs-0:5.5.1-2.fc46.s390x 100% | 890.9 KiB/s | 151.5 KiB | 00m00s [ 97/189] rpm-sign-libs-0:6.1.0-1.fc46. 100% | 166.5 KiB/s | 26.3 KiB | 00m00s [ 98/189] ca-certificates-0:2026.2.90_v 100% | 4.9 MiB/s | 964.7 KiB | 00m00s [ 99/189] crypto-policies-0:20260713-2. 100% | 557.2 KiB/s | 97.5 KiB | 00m00s [100/189] bzip2-libs-0:1.0.8-24.fc46.s3 100% | 16.9 MiB/s | 51.9 KiB | 00m00s [101/189] ncurses-libs-0:6.6-3.fc46.s39 100% | 82.1 MiB/s | 336.5 KiB | 00m00s [102/189] fips-provider-0:1.5.3-1.fc46. 100% | 6.3 MiB/s | 1.4 MiB | 00m00s [103/189] pam-libs-0:1.7.2-4.fc46.s390x 100% | 27.5 MiB/s | 56.3 KiB | 00m00s [104/189] readline-0:8.3-6.fc46.s390x 100% | 77.0 MiB/s | 236.5 KiB | 00m00s [105/189] zlib-ng-compat-0:2.3.3-6.fc46 100% | 37.0 MiB/s | 75.7 KiB | 00m00s [106/189] gnupg2-0:2.4.9-18.fc46.s390x 100% | 151.0 MiB/s | 1.7 MiB | 00m00s [107/189] libselinux-0:3.11-5.fc46.s390 100% | 620.5 KiB/s | 104.2 KiB | 00m00s [108/189] libcap-ng-0:0.9.6-1.fc46.s390 100% | 209.8 KiB/s | 35.2 KiB | 00m00s [109/189] ima-evm-utils-libs-0:1.6.2-12 100% | 14.1 MiB/s | 28.9 KiB | 00m00s [110/189] gpgverify-0:2.2-5.fc45.noarch 100% | 71.6 KiB/s | 11.3 KiB | 00m00s [111/189] popt-0:1.19-11.fc46.s390x 100% | 29.0 MiB/s | 59.4 KiB | 00m00s [112/189] libzstd-0:1.5.7-6.fc46.s390x 100% | 94.5 MiB/s | 387.0 KiB | 00m00s [113/189] rpm-sequoia-0:1.10.3-1.fc46.s 100% | 185.0 MiB/s | 947.0 KiB | 00m00s [114/189] libgcrypt-0:1.12.4-1.fc46.s39 100% | 3.2 MiB/s | 592.4 KiB | 00m00s [115/189] xz-libs-1:5.8.4-1.fc46.s390x 100% | 62.3 MiB/s | 127.5 KiB | 00m00s [116/189] debugedit-0:5.3-3.fc46.s390x 100% | 28.9 MiB/s | 88.7 KiB | 00m00s [117/189] libfsverity-0:1.7-4.fc45.s390 100% | 111.2 KiB/s | 18.3 KiB | 00m00s [118/189] libarchive-0:3.8.9-2.fc46.s39 100% | 110.3 MiB/s | 452.0 KiB | 00m00s [119/189] pkgconf-pkg-config-0:2.5.1-2. 100% | 4.5 MiB/s | 9.3 KiB | 00m00s [120/189] zstd-0:1.5.7-6.fc46.s390x 100% | 58.5 MiB/s | 179.6 KiB | 00m00s [121/189] sqlite-libs-0:3.53.4-1.fc45.s 100% | 4.1 MiB/s | 828.5 KiB | 00m00s [122/189] libsepol-0:3.11-2.fc46.s390x 100% | 81.4 MiB/s | 333.3 KiB | 00m00s [123/189] pcre2-0:10.47-1.fc46.2.s390x 100% | 66.6 MiB/s | 272.7 KiB | 00m00s [124/189] pcre2-syntax-0:10.47-1.fc46.2 100% | 53.7 MiB/s | 164.9 KiB | 00m00s [125/189] curl-0:8.23.0~rc2-1.fc46.s390 100% | 1.5 MiB/s | 246.6 KiB | 00m00s [126/189] libgpg-error-0:1.61-2.fc46.s3 100% | 60.2 MiB/s | 246.4 KiB | 00m00s [127/189] gnupg2-verify-0:2.4.9-18.fc46 100% | 62.3 MiB/s | 191.4 KiB | 00m00s [128/189] json-c-0:0.18-9.fc46.s390x 100% | 14.6 MiB/s | 44.8 KiB | 00m00s [129/189] libattr-0:2.6.0-2.fc46.s390x 100% | 8.3 MiB/s | 17.1 KiB | 00m00s [130/189] gnulib-l10n-0:20241231-4.fc46 100% | 46.5 MiB/s | 142.8 KiB | 00m00s [131/189] p11-kit-0:0.26.5-1.fc46.s390x 100% | 111.8 MiB/s | 572.4 KiB | 00m00s [132/189] p11-kit-trust-0:0.26.5-1.fc46 100% | 52.1 MiB/s | 160.2 KiB | 00m00s [133/189] libxml2-0:2.15.4-1.fc46.s390x 100% | 3.3 MiB/s | 654.0 KiB | 00m00s [134/189] alternatives-0:1.33-6.fc46.s3 100% | 18.4 MiB/s | 37.7 KiB | 00m00s [135/189] jansson-0:2.14-5.fc46.s390x 100% | 24.5 MiB/s | 50.2 KiB | 00m00s [136/189] libeconf-0:0.7.9-4.fc46.s390x 100% | 17.2 MiB/s | 35.2 KiB | 00m00s [137/189] pkgconf-0:2.5.1-2.fc46.s390x 100% | 24.2 MiB/s | 49.5 KiB | 00m00s [138/189] pkgconf-m4-0:2.5.1-2.fc46.noa 100% | 4.4 MiB/s | 13.6 KiB | 00m00s [139/189] libpkgconf-0:2.5.1-2.fc46.s39 100% | 13.1 MiB/s | 40.2 KiB | 00m00s [140/189] ed-0:1.22.6-1.fc46.s390x 100% | 42.6 MiB/s | 87.2 KiB | 00m00s [141/189] libtasn1-0:4.21.0-2.fc46.s390 100% | 40.5 MiB/s | 83.0 KiB | 00m00s [142/189] ncurses-base-0:6.6-3.fc46.noa 100% | 30.9 MiB/s | 63.3 KiB | 00m00s [143/189] lz4-libs-0:1.10.0-5.fc46.s390 100% | 50.4 MiB/s | 103.3 KiB | 00m00s [144/189] libassuan-0:2.5.7-6.fc46.s390 100% | 21.8 MiB/s | 67.1 KiB | 00m00s [145/189] tpm2-tss-0:4.2.0-1.fc46.s390x 100% | 77.6 MiB/s | 397.3 KiB | 00m00s [146/189] npth-0:1.8-5.fc46.s390x 100% | 12.1 MiB/s | 24.9 KiB | 00m00s [147/189] gnupg2-dirmngr-0:2.4.9-18.fc4 100% | 96.1 MiB/s | 295.1 KiB | 00m00s [148/189] libffi-0:3.8.0-1.fc46.s390x 100% | 260.5 KiB/s | 41.2 KiB | 00m00s [149/189] openldap-0:2.6.14-1.fc46.s390 100% | 1.5 MiB/s | 263.6 KiB | 00m00s [150/189] gnutls-0:3.8.13-5.fc46.s390x 100% | 5.9 MiB/s | 1.3 MiB | 00m00s [151/189] nettle-0:4.0-5.fc45.s390x 100% | 2.6 MiB/s | 458.6 KiB | 00m00s [152/189] gnupg2-gpg-agent-0:2.4.9-18.f 100% | 68.9 MiB/s | 282.4 KiB | 00m00s [153/189] gnupg2-gpgconf-0:2.4.9-18.fc4 100% | 40.2 MiB/s | 123.4 KiB | 00m00s [154/189] gnupg2-keyboxd-0:2.4.9-18.fc4 100% | 51.2 MiB/s | 104.9 KiB | 00m00s [155/189] cyrus-sasl-lib-0:2.1.28-37.fc 100% | 4.0 MiB/s | 813.3 KiB | 00m00s [156/189] libevent-0:2.1.13-1.fc46.s390 100% | 68.4 MiB/s | 280.2 KiB | 00m00s [157/189] libidn2-0:2.3.8-4.fc46.s390x 100% | 55.6 MiB/s | 170.9 KiB | 00m00s [158/189] libtool-ltdl-0:2.6.2-1.fc46.s 100% | 231.0 KiB/s | 36.7 KiB | 00m00s [159/189] libunistring-0:1.1-12.fc46.s3 100% | 91.4 MiB/s | 561.5 KiB | 00m00s [160/189] gdbm-libs-1:1.23-12.fc46.s390 100% | 21.1 MiB/s | 64.8 KiB | 00m00s [161/189] libksba-0:1.8.1-1.fc46.s390x 100% | 53.8 MiB/s | 165.2 KiB | 00m00s [162/189] mpfr-0:4.2.2-4.fc45.s390x 100% | 1.8 MiB/s | 299.3 KiB | 00m00s [163/189] fedora-release-0:46-0.1.noarc 100% | 75.3 KiB/s | 11.9 KiB | 00m00s [164/189] libusb1-0:1.0.30-2.fc45.s390x 100% | 490.5 KiB/s | 79.5 KiB | 00m00s [165/189] xxhash-libs-0:0.8.4-1.fc46.s3 100% | 19.9 MiB/s | 40.7 KiB | 00m00s [166/189] systemd-standalone-sysusers-0 100% | 2.3 MiB/s | 424.2 KiB | 00m00s [167/189] fedora-release-identity-basic 100% | 68.4 KiB/s | 12.7 KiB | 00m00s [168/189] libcurl-0:8.23.0~rc2-1.fc46.s 100% | 2.1 MiB/s | 489.8 KiB | 00m00s [169/189] gdb-minimal-0:17.2-6.fc46.s39 100% | 12.5 MiB/s | 4.8 MiB | 00m00s [170/189] krb5-libs-0:1.22.2-9.fc45.s39 100% | 2.9 MiB/s | 792.9 KiB | 00m00s [171/189] ngtcp2-0:1.22.1-3.fc45.s390x 100% | 952.1 KiB/s | 152.3 KiB | 00m00s [172/189] libssh-0:0.12.2-1.fc45.s390x 100% | 1.1 MiB/s | 279.1 KiB | 00m00s [173/189] ngtcp2-crypto-ossl-0:1.22.1-3 100% | 124.7 KiB/s | 25.8 KiB | 00m00s [174/189] libverto-0:0.3.2-13.fc45.s390 100% | 129.3 KiB/s | 20.4 KiB | 00m00s [175/189] libssh-config-0:0.12.2-1.fc45 100% | 53.5 KiB/s | 8.9 KiB | 00m00s [176/189] selinux-policy-0:45.20-1.fc46 100% | 263.5 KiB/s | 41.6 KiB | 00m00s [177/189] policycoreutils-0:3.11-2.fc46 100% | 57.3 MiB/s | 234.5 KiB | 00m00s [178/189] rpm-plugin-selinux-0:6.1.0-1. 100% | 85.0 KiB/s | 17.5 KiB | 00m00s [179/189] libfido2-0:1.17.0-5.fc46.s390 100% | 47.7 MiB/s | 97.8 KiB | 00m00s [180/189] libselinux-utils-0:3.11-5.fc4 100% | 766.8 KiB/s | 123.5 KiB | 00m00s [181/189] libbrotli-0:1.2.0-6.fc46.s390 100% | 75.8 MiB/s | 388.3 KiB | 00m00s [182/189] libcbor-0:0.14.0-3.fc45.s390x 100% | 167.2 KiB/s | 35.8 KiB | 00m00s [183/189] libnghttp3-0:1.18.0-1.fc46.s3 100% | 26.7 MiB/s | 82.1 KiB | 00m00s [184/189] libpsl-0:0.23.3-1.fc46.s390x 100% | 21.7 MiB/s | 66.7 KiB | 00m00s [185/189] libnghttp2-0:1.69.0-6.fc46.s3 100% | 464.1 KiB/s | 77.0 KiB | 00m00s [186/189] keyutils-libs-0:1.6.3-8.fc46. 100% | 15.0 MiB/s | 30.7 KiB | 00m00s [187/189] libcom_err-0:1.47.4-2.fc46.s3 100% | 12.7 MiB/s | 26.1 KiB | 00m00s [188/189] selinux-policy-targeted-0:45. 100% | 11.2 MiB/s | 6.8 MiB | 00m01s [189/189] publicsuffix-list-dafsa-0:202 100% | 292.2 KiB/s | 61.1 KiB | 00m00s -------------------------------------------------------------------------------- [189/189] Total 100% | 7.2 MiB/s | 70.1 MiB | 00m10s 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/191] Verify package files 100% | 832.0 B/s | 189.0 B | 00m00s >>> Running %pretrans scriptlet: filesystem-0:3.18-59.fc45.s390x >>> Finished %pretrans scriptlet: filesystem-0:3.18-59.fc45.s390x >>> [RPM] /var/lib/mock/fedora-rawhide-s390x-1790998635.037619/root/var/cache/dnf/copr_base-c7ab5152eeb4dc47/packages/bash-5.3.15-2.fc46.s390x.rpm: Header OpenPGP V4 RSA/SHA256 signature, key ID 5291f7fa5c4b3009: NOKEY >>> [RPM] failed to open /var/lib/mock/fedora-rawhide-s390x-1790998635.037619/root/etc/group for id/name lookup: No such file or directory [ 2/191] Prepare transaction 100% | 1.8 KiB/s | 189.0 B | 00m00s [ 3/191] Installing libgcc-0:16.2.1-2. 100% | 105.1 MiB/s | 215.3 KiB | 00m00s [ 4/191] Installing redhat-systemd-pre 100% | 0.0 B/s | 1.5 KiB | 00m00s [ 5/191] Installing redhat-systemd-pre 100% | 0.0 B/s | 18.1 KiB | 00m00s [ 6/191] Installing publicsuffix-list- 100% | 0.0 B/s | 72.0 KiB | 00m00s [ 7/191] Installing libssh-config-0:0. 100% | 0.0 B/s | 816.0 B | 00m00s [ 8/191] Installing fedora-release-ide 100% | 898.4 KiB/s | 920.0 B | 00m00s [ 9/191] Installing fedora-gpg-keys-0: 100% | 29.6 MiB/s | 181.7 KiB | 00m00s [ 10/191] Installing fedora-repos-rawhi 100% | 0.0 B/s | 2.5 KiB | 00m00s [ 11/191] Installing fedora-repos-0:46- 100% | 0.0 B/s | 5.9 KiB | 00m00s [ 12/191] Installing fedora-release-com 100% | 7.8 MiB/s | 8.0 KiB | 00m00s [ 13/191] Installing fedora-release-0:4 100% | 12.1 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/191] Installing setup-0:2.15.1-2.f 100% | 23.8 MiB/s | 731.3 KiB | 00m00s >>> [RPM] /etc/hosts created as /etc/hosts.rpmnew [ 15/191] Installing filesystem-0:3.18- 100% | 1.5 MiB/s | 253.6 KiB | 00m00s [ 16/191] Installing ncurses-base-0:6.6 100% | 49.6 MiB/s | 355.3 KiB | 00m00s [ 17/191] Installing glibc-common-0:2.4 100% | 34.1 MiB/s | 1.1 MiB | 00m00s [ 18/191] Installing glibc-gconv-extra- 100% | 146.1 MiB/s | 6.9 MiB | 00m00s [ 19/191] Installing glibc-0:2.44.9000- 100% | 98.9 MiB/s | 5.5 MiB | 00m00s [ 20/191] Installing ncurses-libs-0:6.6 100% | 204.6 MiB/s | 1.0 MiB | 00m00s [ 21/191] Installing bash-0:5.3.15-2.fc 100% | 184.5 MiB/s | 8.7 MiB | 00m00s [ 22/191] Installing glibc-minimal-lang 100% | 0.0 B/s | 124.0 B | 00m00s [ 23/191] Installing zlib-ng-compat-0:2 100% | 142.4 MiB/s | 145.8 KiB | 00m00s [ 24/191] Installing bzip2-libs-0:1.0.8 100% | 118.4 MiB/s | 121.2 KiB | 00m00s [ 25/191] Installing libgpg-error-0:1.6 100% | 43.8 MiB/s | 987.7 KiB | 00m00s [ 26/191] Installing readline-0:8.3-6.f 100% | 189.2 MiB/s | 581.2 KiB | 00m00s [ 27/191] Installing libstdc++-0:16.2.1 100% | 259.3 MiB/s | 3.4 MiB | 00m00s [ 28/191] Installing libzstd-0:1.5.7-6. 100% | 246.1 MiB/s | 1.2 MiB | 00m00s [ 29/191] Installing elfutils-libelf-0: 100% | 290.1 MiB/s | 1.5 MiB | 00m00s [ 30/191] Installing libgcrypt-0:1.12.4 100% | 217.4 MiB/s | 1.3 MiB | 00m00s [ 31/191] Installing libassuan-0:2.5.7- 100% | 165.7 MiB/s | 169.6 KiB | 00m00s [ 32/191] Installing libacl-0:2.4.0-2.f 100% | 0.0 B/s | 44.5 KiB | 00m00s [ 33/191] Installing gmp-1:6.3.0-6.fc45 100% | 188.5 MiB/s | 772.0 KiB | 00m00s [ 34/191] Installing systemd-libs-0:262 100% | 249.8 MiB/s | 2.7 MiB | 00m00s [ 35/191] Installing libuuid-0:2.42.4-2 100% | 33.3 MiB/s | 34.1 KiB | 00m00s [ 36/191] Installing popt-0:1.19-11.fc4 100% | 69.8 MiB/s | 142.9 KiB | 00m00s [ 37/191] Installing sqlite-libs-0:3.53 100% | 245.8 MiB/s | 1.7 MiB | 00m00s [ 38/191] Installing xz-libs-1:5.8.4-1. 100% | 252.6 MiB/s | 258.6 KiB | 00m00s [ 39/191] Installing npth-0:1.8-5.fc46. 100% | 0.0 B/s | 50.2 KiB | 00m00s [ 40/191] Installing elfutils-libs-0:0. 100% | 192.4 MiB/s | 788.1 KiB | 00m00s [ 41/191] Installing libblkid-0:2.42.4- 100% | 284.3 MiB/s | 291.1 KiB | 00m00s [ 42/191] Installing libsepol-0:3.11-2. 100% | 194.8 MiB/s | 997.4 KiB | 00m00s [ 43/191] Installing gnupg2-gpgconf-0:2 100% | 11.3 MiB/s | 312.4 KiB | 00m00s [ 44/191] Installing crypto-policies-0: 100% | 31.2 MiB/s | 159.5 KiB | 00m00s [ 45/191] Installing libxcrypt-0:4.5.2- 100% | 142.4 MiB/s | 291.7 KiB | 00m00s [ 46/191] Installing libtasn1-0:4.21.0- 100% | 201.4 MiB/s | 206.3 KiB | 00m00s [ 47/191] Installing libunistring-0:1.1 100% | 258.3 MiB/s | 1.8 MiB | 00m00s [ 48/191] Installing libidn2-0:2.3.8-4. 100% | 186.9 MiB/s | 574.3 KiB | 00m00s [ 49/191] Installing gnupg2-verify-0:2. 100% | 18.4 MiB/s | 452.5 KiB | 00m00s [ 50/191] Installing mpfr-0:4.2.2-4.fc4 100% | 170.2 MiB/s | 697.0 KiB | 00m00s [ 51/191] Installing gawk-0:5.4.1-1.fc4 100% | 84.3 MiB/s | 2.3 MiB | 00m00s [ 52/191] Installing dwz-0:0.17-3.fc45. 100% | 16.0 MiB/s | 311.8 KiB | 00m00s [ 53/191] Installing libksba-0:1.8.1-1. 100% | 230.1 MiB/s | 471.3 KiB | 00m00s [ 54/191] Installing unzip-0:6.0-71.fc4 100% | 21.7 MiB/s | 444.5 KiB | 00m00s [ 55/191] Installing file-libs-0:5.48-3 100% | 425.6 MiB/s | 12.3 MiB | 00m00s [ 56/191] Installing file-0:5.48-3.fc46 100% | 5.3 MiB/s | 103.1 KiB | 00m00s [ 57/191] Installing diffutils-0:3.12-6 100% | 63.5 MiB/s | 1.6 MiB | 00m00s [ 58/191] Installing libsmartcols-0:2.4 100% | 192.7 MiB/s | 197.3 KiB | 00m00s [ 59/191] Installing lua-libs-0:5.5.1-2 100% | 167.6 MiB/s | 343.3 KiB | 00m00s [ 60/191] Installing libcap-ng-0:0.9.6- 100% | 64.6 MiB/s | 66.2 KiB | 00m00s [ 61/191] Installing audit-libs-0:4.2.1 100% | 195.5 MiB/s | 400.4 KiB | 00m00s [ 62/191] Installing json-c-0:0.18-9.fc 100% | 89.3 MiB/s | 91.4 KiB | 00m00s [ 63/191] Installing libattr-0:2.6.0-2. 100% | 0.0 B/s | 24.8 KiB | 00m00s [ 64/191] Installing libffi-0:3.8.0-1.f 100% | 82.5 MiB/s | 84.5 KiB | 00m00s [ 65/191] Installing p11-kit-0:0.26.5-1 100% | 95.9 MiB/s | 3.0 MiB | 00m00s [ 66/191] Installing alternatives-0:1.3 100% | 3.6 MiB/s | 67.2 KiB | 00m00s [ 67/191] Installing p11-kit-trust-0:0. 100% | 21.9 MiB/s | 649.3 KiB | 00m00s [ 68/191] Installing libeconf-0:0.7.9-4 100% | 68.8 MiB/s | 70.4 KiB | 00m00s [ 69/191] Installing pam-libs-0:1.7.2-4 100% | 125.2 MiB/s | 128.2 KiB | 00m00s [ 70/191] Installing libcap-0:2.78-2.fc 100% | 10.5 MiB/s | 215.2 KiB | 00m00s [ 71/191] Installing ngtcp2-0:1.22.1-3. 100% | 155.5 MiB/s | 318.4 KiB | 00m00s [ 72/191] Installing liblastlog2-0:2.42 100% | 6.9 MiB/s | 35.3 KiB | 00m00s [ 73/191] Installing zip-0:3.0-46.fc45. 100% | 29.8 MiB/s | 733.0 KiB | 00m00s [ 74/191] Installing gnupg2-keyboxd-0:2 100% | 40.3 MiB/s | 247.3 KiB | 00m00s [ 75/191] Installing libpsl-0:0.23.3-1. 100% | 75.3 MiB/s | 77.1 KiB | 00m00s [ 76/191] Installing libfdisk-0:2.42.4- 100% | 193.2 MiB/s | 395.7 KiB | 00m00s [ 77/191] Installing fips-provider-0:1. 100% | 238.7 MiB/s | 4.1 MiB | 00m00s [ 78/191] Installing libusb1-0:1.0.30-2 100% | 172.9 MiB/s | 177.1 KiB | 00m00s [ 79/191] Installing nettle-0:4.0-5.fc4 100% | 208.1 MiB/s | 852.2 KiB | 00m00s [ 80/191] Installing gnutls-0:3.8.13-5. 100% | 263.3 MiB/s | 3.7 MiB | 00m00s [ 81/191] Installing zstd-0:1.5.7-6.fc4 100% | 21.7 MiB/s | 510.8 KiB | 00m00s [ 82/191] Installing libxml2-0:2.15.4-1 100% | 68.5 MiB/s | 1.7 MiB | 00m00s [ 83/191] Installing bzip2-0:1.0.8-24.f 100% | 4.7 MiB/s | 90.7 KiB | 00m00s [ 84/191] Installing add-determinism-0: 100% | 86.8 MiB/s | 2.3 MiB | 00m00s [ 85/191] Installing filesystem-srpm-ma 100% | 38.0 MiB/s | 38.9 KiB | 00m00s [ 86/191] Installing ed-0:1.22.6-1.fc46 100% | 8.7 MiB/s | 169.0 KiB | 00m00s [ 87/191] Installing patch-0:2.8-6.fc46 100% | 13.3 MiB/s | 272.3 KiB | 00m00s [ 88/191] Installing cpio-0:2.15-10.fc4 100% | 50.5 MiB/s | 1.2 MiB | 00m00s [ 89/191] Installing libgomp-0:16.2.1-2 100% | 282.4 MiB/s | 578.3 KiB | 00m00s [ 90/191] Installing jansson-0:2.14-5.f 100% | 107.7 MiB/s | 110.3 KiB | 00m00s [ 91/191] Installing libpkgconf-0:2.5.1 100% | 92.5 MiB/s | 94.7 KiB | 00m00s [ 92/191] Installing pkgconf-0:2.5.1-2. 100% | 5.0 MiB/s | 97.1 KiB | 00m00s [ 93/191] Installing lz4-libs-0:1.10.0- 100% | 116.2 MiB/s | 238.0 KiB | 00m00s [ 94/191] Installing libtool-ltdl-0:2.6 100% | 69.1 MiB/s | 70.7 KiB | 00m00s [ 95/191] Installing gdbm-libs-1:1.23-1 100% | 155.3 MiB/s | 159.0 KiB | 00m00s [ 96/191] Installing cyrus-sasl-lib-0:2 100% | 81.3 MiB/s | 2.4 MiB | 00m00s [ 97/191] Installing systemd-standalone 100% | 39.9 MiB/s | 979.7 KiB | 00m00s [ 98/191] Installing xxhash-libs-0:0.8. 100% | 76.8 MiB/s | 78.7 KiB | 00m00s [ 99/191] Installing libverto-0:0.3.2-1 100% | 26.2 MiB/s | 26.8 KiB | 00m00s [100/191] Installing libcbor-0:0.14.0-3 100% | 82.7 MiB/s | 84.7 KiB | 00m00s [101/191] Installing libbrotli-0:1.2.0- 100% | 192.6 MiB/s | 986.3 KiB | 00m00s [102/191] Installing libnghttp2-0:1.69. 100% | 170.7 MiB/s | 174.8 KiB | 00m00s [103/191] Installing libnghttp3-0:1.18. 100% | 200.1 MiB/s | 204.9 KiB | 00m00s [104/191] Installing keyutils-libs-0:1. 100% | 50.0 MiB/s | 51.2 KiB | 00m00s [105/191] Installing libcom_err-0:1.47. 100% | 0.0 B/s | 59.7 KiB | 00m00s [106/191] Installing pkgconf-m4-0:2.5.1 100% | 0.0 B/s | 14.7 KiB | 00m00s [107/191] Installing pkgconf-pkg-config 100% | 98.5 KiB/s | 1.8 KiB | 00m00s [108/191] Installing gnulib-l10n-0:2024 100% | 129.3 MiB/s | 661.9 KiB | 00m00s [109/191] Installing coreutils-common-0 100% | 275.3 MiB/s | 11.6 MiB | 00m00s [110/191] Installing pcre2-syntax-0:10. 100% | 277.7 MiB/s | 284.3 KiB | 00m00s [111/191] Installing pcre2-0:10.47-1.fc 100% | 221.3 MiB/s | 906.6 KiB | 00m00s [112/191] Installing libselinux-0:3.11- 100% | 106.6 MiB/s | 218.2 KiB | 00m00s [113/191] Installing grep-0:3.12-4.fc45 100% | 37.5 MiB/s | 1.0 MiB | 00m00s [114/191] Installing sed-0:4.10-2.fc45. 100% | 35.7 MiB/s | 878.6 KiB | 00m00s [115/191] Installing findutils-1:4.11.0 100% | 74.6 MiB/s | 2.0 MiB | 00m00s [116/191] Installing xz-1:5.8.4-1.fc46. 100% | 51.2 MiB/s | 1.4 MiB | 00m00s [117/191] Installing libsemanage-0:3.11 100% | 157.2 MiB/s | 321.9 KiB | 00m00s [118/191] Installing libmount-0:2.42.4- 100% | 133.2 MiB/s | 409.1 KiB | 00m00s [119/191] Installing util-linux-core-0: 100% | 51.0 MiB/s | 1.5 MiB | 00m00s [120/191] Installing openssl-libs-1:4.0 100% | 239.1 MiB/s | 6.0 MiB | 00m00s [121/191] Installing coreutils-0:9.12-1 100% | 131.2 MiB/s | 6.6 MiB | 00m00s [122/191] Installing ca-certificates-0: 100% | 1.5 MiB/s | 2.5 MiB | 00m02s [123/191] Installing libarchive-0:3.8.9 100% | 223.8 MiB/s | 1.1 MiB | 00m00s [124/191] Installing krb5-libs-0:1.22.2 100% | 130.6 MiB/s | 2.5 MiB | 00m00s >>> Running sysusers scriptlet: tpm2-tss-0:4.2.0-1.fc46.s390x >>> Finished sysusers scriptlet: tpm2-tss-0:4.2.0-1.fc46.s390x >>> Scriptlet output: >>> Creating group 'tss' with GID 59. >>> Creating user 'tss' (Account used for TPM access) with UID 59 and GID 59. >>> [125/191] Installing tpm2-tss-0:4.2.0-1 100% | 212.4 MiB/s | 1.7 MiB | 00m00s [126/191] Installing ima-evm-utils-libs 100% | 56.2 MiB/s | 57.5 KiB | 00m00s [127/191] Installing gnupg2-gpg-agent-0 100% | 23.4 MiB/s | 885.0 KiB | 00m00s [128/191] Installing gzip-0:1.14-4.fc46 100% | 14.6 MiB/s | 418.9 KiB | 00m00s [129/191] Installing util-linux-0:2.42. 100% | 70.1 MiB/s | 3.6 MiB | 00m00s [130/191] Installing libfsverity-0:1.7- 100% | 0.0 B/s | 25.1 KiB | 00m00s [131/191] Installing rpm-sequoia-0:1.10 100% | 260.5 MiB/s | 2.6 MiB | 00m00s [132/191] Installing rpm-libs-0:6.1.0-1 100% | 226.3 MiB/s | 1.1 MiB | 00m00s [133/191] Installing libevent-0:2.1.13- 100% | 241.6 MiB/s | 989.7 KiB | 00m00s [134/191] Installing openldap-0:2.6.14- 100% | 166.0 MiB/s | 680.1 KiB | 00m00s [135/191] Installing gnupg2-dirmngr-0:2 100% | 26.0 MiB/s | 798.2 KiB | 00m00s [136/191] Installing gnupg2-0:2.4.9-18. 100% | 142.9 MiB/s | 6.9 MiB | 00m00s [137/191] Installing rpm-sign-libs-0:6. 100% | 35.4 MiB/s | 36.2 KiB | 00m00s [138/191] Installing rpm-build-libs-0:6 100% | 138.9 MiB/s | 284.6 KiB | 00m00s [139/191] Installing gpgverify-0:2.2-5. 100% | 0.0 B/s | 9.4 KiB | 00m00s [140/191] Installing ngtcp2-crypto-ossl 100% | 46.9 MiB/s | 48.1 KiB | 00m00s [141/191] Installing libfido2-0:1.17.0- 100% | 128.3 MiB/s | 262.7 KiB | 00m00s [142/191] Installing libssh-0:0.12.2-1. 100% | 138.9 MiB/s | 711.2 KiB | 00m00s [143/191] Installing libcurl-0:8.23.0~r 100% | 157.8 MiB/s | 1.1 MiB | 00m00s [144/191] Installing elfutils-debuginfo 100% | 3.4 MiB/s | 77.7 KiB | 00m00s [145/191] Installing binutils-0:2.47.50 100% | 227.3 MiB/s | 25.0 MiB | 00m00s [146/191] Installing elfutils-0:0.196-1 100% | 97.4 MiB/s | 3.0 MiB | 00m00s [147/191] Installing gdb-minimal-0:17.2 100% | 196.7 MiB/s | 15.9 MiB | 00m00s [148/191] Installing debugedit-0:5.3-3. 100% | 11.3 MiB/s | 230.9 KiB | 00m00s [149/191] Installing curl-0:8.23.0~rc2- 100% | 17.2 MiB/s | 511.9 KiB | 00m00s [150/191] Installing rpm-0:6.1.0-1.fc46 100% | 54.4 MiB/s | 2.5 MiB | 00m00s [151/191] Installing cmake-srpm-macros- 100% | 0.0 B/s | 804.0 B | 00m00s [152/191] Installing efi-srpm-macros-0: 100% | 0.0 B/s | 41.3 KiB | 00m00s [153/191] Installing java-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [154/191] Installing lua-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [155/191] Installing tree-sitter-srpm-m 100% | 0.0 B/s | 9.6 KiB | 00m00s [156/191] Installing zig-srpm-macros-0: 100% | 0.0 B/s | 1.9 KiB | 00m00s [157/191] Installing tar-2:1.35-9.fc45. 100% | 94.4 MiB/s | 3.0 MiB | 00m00s [158/191] Installing linkdupes-0:0.7.3- 100% | 38.5 MiB/s | 906.5 KiB | 00m00s [159/191] Installing libselinux-utils-0 100% | 10.7 MiB/s | 283.7 KiB | 00m00s [160/191] Installing policycoreutils-0: 100% | 21.2 MiB/s | 891.6 KiB | 00m00s [161/191] Installing selinux-policy-0:4 100% | 1.6 MiB/s | 34.5 KiB | 00m00s [162/191] Installing selinux-policy-tar 100% | 150.0 MiB/s | 15.2 MiB | 00m00s [163/191] Installing build-reproducibil 100% | 1.5 MiB/s | 1.5 KiB | 00m00s [164/191] Installing rust-srpm-macros-0 100% | 0.0 B/s | 6.4 KiB | 00m00s [165/191] Installing qt6-srpm-macros-0: 100% | 0.0 B/s | 748.0 B | 00m00s [166/191] Installing qt5-srpm-macros-0: 100% | 0.0 B/s | 776.0 B | 00m00s [167/191] Installing perl-srpm-macros-0 100% | 0.0 B/s | 1.1 KiB | 00m00s [168/191] Installing package-notes-srpm 100% | 187.5 KiB/s | 2.1 KiB | 00m00s [169/191] Installing openblas-srpm-macr 100% | 0.0 B/s | 392.0 B | 00m00s [170/191] Installing ocaml-srpm-macros- 100% | 0.0 B/s | 2.1 KiB | 00m00s [171/191] Installing meson-srpm-macros- 100% | 0.0 B/s | 1.9 KiB | 00m00s [172/191] Installing kernel-srpm-macros 100% | 0.0 B/s | 2.3 KiB | 00m00s [173/191] Installing gnome-srpm-macros- 100% | 0.0 B/s | 4.1 KiB | 00m00s [174/191] Installing gnat-srpm-macros-0 100% | 0.0 B/s | 1.3 KiB | 00m00s [175/191] Installing ghc-srpm-macros-0: 100% | 0.0 B/s | 1.0 KiB | 00m00s [176/191] Installing gap-srpm-macros-0: 100% | 0.0 B/s | 2.7 KiB | 00m00s [177/191] Installing fpc-srpm-macros-0: 100% | 0.0 B/s | 420.0 B | 00m00s [178/191] Installing ansible-srpm-macro 100% | 0.0 B/s | 36.2 KiB | 00m00s [179/191] Installing redhat-rpm-config- 100% | 93.0 MiB/s | 190.4 KiB | 00m00s [180/191] Installing forge-srpm-macros- 100% | 39.3 MiB/s | 40.3 KiB | 00m00s [181/191] Installing rpm-build-0:6.1.0- 100% | 13.2 MiB/s | 312.1 KiB | 00m00s [182/191] Installing erlang-srpm-macros 100% | 0.0 B/s | 2.5 KiB | 00m00s [183/191] Installing pyproject-srpm-mac 100% | 0.0 B/s | 4.0 KiB | 00m00s [184/191] Installing fonts-srpm-macros- 100% | 0.0 B/s | 57.0 KiB | 00m00s [185/191] Installing go-srpm-macros-0:3 100% | 0.0 B/s | 63.0 KiB | 00m00s [186/191] Installing R-srpm-macros-0:1. 100% | 0.0 B/s | 4.4 KiB | 00m00s [187/191] Installing python-srpm-macros 100% | 0.0 B/s | 52.9 KiB | 00m00s [188/191] Installing rpm-plugin-selinux 100% | 0.0 B/s | 12.6 KiB | 00m00s [189/191] Installing which-0:2.25-2.fc4 100% | 4.1 MiB/s | 85.0 KiB | 00m00s [190/191] Installing shadow-utils-2:4.2 100% | 99.9 MiB/s | 4.1 MiB | 00m00s [191/191] Installing info-0:7.3-3.fc46. 100% | 47.1 KiB/s | 439.6 KiB | 00m09s Warning: skipped OpenPGP checks for 66 packages from repository: copr_base Complete! Updating and loading repositories: fedora 100% | 5.0 KiB/s | 4.2 KiB | 00m01s Additional repo copr_tstellar_fedora_c 100% | 2.2 KiB/s | 1.5 KiB | 00m01s Additional repo copr_fedora_llvm_team_ 100% | 2.2 KiB/s | 1.5 KiB | 00m01s Copr repository 100% | 2.2 KiB/s | 1.5 KiB | 00m01s 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 s390x 0:13.32-1.fc46 fedora 724.2 KiB clang s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 385.3 KiB clang-libs s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 123.4 MiB clang-resource-filesystem s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 15.3 KiB compiler-rt s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 30.3 MiB cpp s390x 0:16.2.1-2.fc46.1 fedora 30.6 MiB expat s390x 0:2.8.3-1.fc46 copr_base 377.6 KiB gcc s390x 0:16.2.1-2.fc46.1 fedora 88.6 MiB gcc-c++ s390x 0:16.2.1-2.fc46.1 fedora 34.8 MiB gcc-plugin-annobin s390x 0:16.2.1-2.fc46.1 fedora 56.7 KiB glibc-devel s390x 0:2.44.9000-4.fc46 fedora 3.7 MiB kernel-headers s390x 0:7.3.0-0.rc5.45.fc46 fedora 7.0 MiB libasan s390x 0:16.2.1-2.fc46.1 fedora 1.9 MiB libatomic s390x 0:16.2.1-2.fc46.1 fedora 37.2 KiB libedit s390x 0:3.1-60.20260512cvs.fc46 copr_base 284.8 KiB libmpc s390x 0:1.4.1-2.fc46 copr_base 164.5 KiB libomp s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 2.8 MiB libstdc++-devel s390x 0:16.2.1-2.fc46.1 fedora 40.7 MiB libubsan s390x 0:16.2.1-2.fc46.1 fedora 499.8 KiB libxcrypt-devel s390x 0:4.5.2-4.fc45 fedora 31.0 KiB lld s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 42.3 KiB lld-libs s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 7.2 MiB llvm s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 142.1 MiB llvm-filesystem s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 0.0 B llvm-libs s390x 0:24.0.0~pre20260928.g6909c17f146832-6.fc46 copr_fedora_llvm_team_llvm_snapshots_big_merge_20260928 157.6 MiB make s390x 1:4.4.1-13.fc46 copr_base 1.9 MiB mpdecimal s390x 0:4.0.1-4.fc46 copr_base 364.8 KiB python-pip-wheel noarch 0:26.2.1-1.fc46 fedora 1.3 MiB python3 s390x 0:3.15.0~rc2-1.fc46 fedora 24.5 KiB python3-libs s390x 0:3.15.0~rc2-1.fc46 fedora 48.0 MiB tzdata noarch 0:2026c-2.fc46 fedora 1.2 MiB Transaction Summary: Installing: 33 packages Total size of inbound packages is 184 MiB. Need to download 184 MiB. After this operation, 726 MiB extra will be used (install 726 MiB, remove 0 B). [ 1/33] fedora-clang-default-cc-0:1-1.f 100% | 1.8 MiB/s | 7.4 KiB | 00m00s [ 2/33] clang-0:24.0.0~pre20260928.g690 100% | 149.1 KiB/s | 146.3 KiB | 00m01s [ 3/33] libstdc++-devel-0:16.2.1-2.fc46 100% | 3.6 MiB/s | 5.8 MiB | 00m02s [ 4/33] gcc-c++-0:16.2.1-2.fc46.1.s390x 100% | 6.2 MiB/s | 14.1 MiB | 00m02s [ 5/33] clang-libs-0:24.0.0~pre20260928 100% | 16.8 MiB/s | 26.8 MiB | 00m02s [ 6/33] clang-resource-filesystem-0:24. 100% | 49.6 KiB/s | 19.3 KiB | 00m00s [ 7/33] llvm-filesystem-0:24.0.0~pre202 100% | 33.3 KiB/s | 13.5 KiB | 00m00s [ 8/33] gcc-0:16.2.1-2.fc46.1.s390x 100% | 30.7 MiB/s | 35.2 MiB | 00m01s [ 9/33] glibc-devel-0:2.44.9000-4.fc46. 100% | 4.1 MiB/s | 717.7 KiB | 00m00s [10/33] libasan-0:16.2.1-2.fc46.1.s390x 100% | 2.6 MiB/s | 563.2 KiB | 00m00s [11/33] llvm-libs-0:24.0.0~pre20260928. 100% | 14.9 MiB/s | 34.5 MiB | 00m02s [12/33] libatomic-0:16.2.1-2.fc46.1.s39 100% | 249.6 KiB/s | 53.7 KiB | 00m00s [13/33] kernel-headers-0:7.3.0-0.rc5.45 100% | 8.5 MiB/s | 1.8 MiB | 00m00s [14/33] libxcrypt-devel-0:4.5.2-4.fc45. 100% | 195.7 KiB/s | 30.3 KiB | 00m00s [15/33] libubsan-0:16.2.1-2.fc46.1.s390 100% | 270.8 KiB/s | 241.9 KiB | 00m01s [16/33] cpp-0:16.2.1-2.fc46.1.s390x 100% | 4.8 MiB/s | 11.5 MiB | 00m02s [17/33] lld-0:24.0.0~pre20260928.g6909c 100% | 54.8 KiB/s | 38.6 KiB | 00m01s [18/33] llvm-0:24.0.0~pre20260928.g6909 100% | 19.6 MiB/s | 33.4 MiB | 00m02s [19/33] libomp-0:24.0.0~pre20260928.g69 100% | 896.8 KiB/s | 778.4 KiB | 00m01s [20/33] libmpc-0:1.4.1-2.fc46.s390x 100% | 16.9 MiB/s | 69.4 KiB | 00m00s [21/33] make-1:4.4.1-13.fc46.s390x 100% | 81.4 MiB/s | 583.3 KiB | 00m00s [22/33] libedit-0:3.1-60.20260512cvs.fc 100% | 35.8 MiB/s | 109.8 KiB | 00m00s [23/33] lld-libs-0:24.0.0~pre20260928.g 100% | 4.1 MiB/s | 1.7 MiB | 00m00s [24/33] python3-0:3.15.0~rc2-1.fc46.s39 100% | 170.4 KiB/s | 27.3 KiB | 00m00s [25/33] python-pip-wheel-0:26.2.1-1.fc4 100% | 6.6 MiB/s | 1.2 MiB | 00m00s [26/33] expat-0:2.8.3-1.fc46.s390x 100% | 43.9 MiB/s | 134.9 KiB | 00m00s [27/33] mpdecimal-0:4.0.1-4.fc46.s390x 100% | 44.7 MiB/s | 137.4 KiB | 00m00s [28/33] compiler-rt-0:24.0.0~pre2026092 100% | 1.8 MiB/s | 2.3 MiB | 00m01s [29/33] tzdata-0:2026c-2.fc46.noarch 100% | 4.1 MiB/s | 712.1 KiB | 00m00s [30/33] gcc-plugin-annobin-0:16.2.1-2.f 100% | 366.7 KiB/s | 58.7 KiB | 00m00s [31/33] annobin-docs-0:13.32-1.fc46.noa 100% | 544.2 KiB/s | 87.1 KiB | 00m00s [32/33] python3-libs-0:3.15.0~rc2-1.fc4 100% | 6.6 MiB/s | 10.9 MiB | 00m02s [33/33] annobin-plugin-gcc-0:13.32-1.fc 100% | 542.2 KiB/s | 709.2 KiB | 00m01s -------------------------------------------------------------------------------- [33/33] Total 100% | 21.4 MiB/s | 184.2 MiB | 00m09s Running transaction [ 1/35] Verify package files 100% | 70.0 B/s | 33.0 B | 00m00s [ 2/35] Prepare transaction 100% | 464.0 B/s | 33.0 B | 00m00s [ 3/35] Installing libmpc-0:1.4.1-2.fc4 100% | 162.3 MiB/s | 166.2 KiB | 00m00s [ 4/35] Installing clang-resource-files 100% | 5.4 MiB/s | 16.7 KiB | 00m00s [ 5/35] Installing libstdc++-devel-0:16 100% | 381.5 MiB/s | 40.8 MiB | 00m00s [ 6/35] Installing compiler-rt-0:24.0.0 100% | 504.6 MiB/s | 30.3 MiB | 00m00s [ 7/35] Installing cpp-0:16.2.1-2.fc46. 100% | 231.8 MiB/s | 30.6 MiB | 00m00s [ 8/35] Installing annobin-docs-0:13.32 100% | 16.4 MiB/s | 100.8 KiB | 00m00s [ 9/35] Installing tzdata-0:2026c-2.fc4 100% | 43.0 MiB/s | 1.5 MiB | 00m00s [10/35] Installing mpdecimal-0:4.0.1-4. 100% | 178.9 MiB/s | 366.3 KiB | 00m00s [11/35] Installing expat-0:2.8.3-1.fc46 100% | 18.5 MiB/s | 379.7 KiB | 00m00s [12/35] Installing python-pip-wheel-0:2 100% | 140.9 MiB/s | 1.3 MiB | 00m00s [13/35] Installing python3-libs-0:3.15. 100% | 264.8 MiB/s | 48.5 MiB | 00m00s [14/35] Installing python3-0:3.15.0~rc2 100% | 1.4 MiB/s | 26.3 KiB | 00m00s [15/35] Installing libedit-0:3.1-60.202 100% | 139.9 MiB/s | 286.4 KiB | 00m00s [16/35] Installing make-1:4.4.1-13.fc46 100% | 69.3 MiB/s | 1.9 MiB | 00m00s [17/35] Installing kernel-headers-0:7.3 100% | 170.6 MiB/s | 7.2 MiB | 00m00s [18/35] Installing glibc-devel-0:2.44.9 100% | 196.4 MiB/s | 3.7 MiB | 00m00s [19/35] Installing libxcrypt-devel-0:4. 100% | 32.5 MiB/s | 33.3 KiB | 00m00s [20/35] Installing libubsan-0:16.2.1-2. 100% | 163.0 MiB/s | 500.6 KiB | 00m00s [21/35] Installing libatomic-0:16.2.1-2 100% | 37.4 MiB/s | 38.3 KiB | 00m00s [22/35] Installing libasan-0:16.2.1-2.f 100% | 233.8 MiB/s | 1.9 MiB | 00m00s [23/35] Installing gcc-0:16.2.1-2.fc46. 100% | 254.8 MiB/s | 88.7 MiB | 00m00s [24/35] Installing gcc-c++-0:16.2.1-2.f 100% | 177.6 MiB/s | 34.8 MiB | 00m00s [25/35] Installing llvm-filesystem-0:24 100% | 1.0 MiB/s | 1.1 KiB | 00m00s [26/35] Installing llvm-libs-0:24.0.0~p 100% | 301.9 MiB/s | 157.6 MiB | 00m01s [27/35] Installing clang-libs-0:24.0.0~ 100% | 314.1 MiB/s | 123.5 MiB | 00m00s [28/35] Installing clang-0:24.0.0~pre20 100% | 18.1 MiB/s | 389.6 KiB | 00m00s [29/35] Installing llvm-0:24.0.0~pre202 100% | 286.6 MiB/s | 142.2 MiB | 00m00s [30/35] Installing libomp-0:24.0.0~pre2 100% | 215.3 MiB/s | 2.8 MiB | 00m00s [31/35] Installing lld-libs-0:24.0.0~pr 100% | 255.6 MiB/s | 7.2 MiB | 00m00s [32/35] Installing lld-0:24.0.0~pre2026 100% | 1.4 MiB/s | 45.3 KiB | 00m00s [33/35] Installing fedora-clang-default 100% | 281.2 KiB/s | 288.0 B | 00m00s [34/35] Installing annobin-plugin-gcc-0 100% | 54.5 MiB/s | 725.9 KiB | 00m00s [35/35] Installing gcc-plugin-annobin-0 100% | 442.1 KiB/s | 58.4 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.s390x alternatives-1.33-6.fc46.s390x annobin-docs-13.32-1.fc46.noarch annobin-plugin-gcc-13.32-1.fc46.s390x ansible-srpm-macros-1-22.fc45.noarch audit-libs-4.2.1-2.fc45.s390x bash-5.3.15-2.fc46.s390x binutils-2.47.50-12.fc46.s390x build-reproducibility-srpm-macros-0.7.3-3.fc45.noarch bzip2-1.0.8-24.fc46.s390x bzip2-libs-1.0.8-24.fc46.s390x ca-certificates-2026.2.90_v9.0.317-1.fc46.noarch clang-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x clang-libs-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x clang-resource-filesystem-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x cmake-srpm-macros-4.3.0-5.fc45.noarch compiler-rt-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x coreutils-9.12-1.fc46.s390x coreutils-common-9.12-1.fc46.s390x cpio-2.15-10.fc46.s390x cpp-16.2.1-2.fc46.1.s390x crypto-policies-20260713-2.gitc42da77.fc45.noarch curl-8.23.0~rc2-1.fc46.s390x cyrus-sasl-lib-2.1.28-37.fc45.s390x debugedit-5.3-3.fc46.s390x diffutils-3.12-6.fc45.s390x dwz-0.17-3.fc45.s390x ed-1.22.6-1.fc46.s390x efi-srpm-macros-6-9.fc45.noarch elfutils-0.196-1.fc46.s390x elfutils-debuginfod-client-0.196-1.fc46.s390x elfutils-libelf-0.196-1.fc46.s390x elfutils-libs-0.196-1.fc46.s390x erlang-srpm-macros-0.3.11-2.fc45.noarch expat-2.8.3-1.fc46.s390x 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.s390x file-libs-5.48-3.fc46.s390x filesystem-3.18-59.fc45.s390x filesystem-srpm-macros-3.18-59.fc45.noarch findutils-4.11.0-2.fc46.s390x fips-provider-1.5.3-1.fc46.s390x 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.s390x gcc-16.2.1-2.fc46.1.s390x gcc-c++-16.2.1-2.fc46.1.s390x gcc-plugin-annobin-16.2.1-2.fc46.1.s390x gdb-minimal-17.2-6.fc46.s390x gdbm-libs-1.23-12.fc46.s390x ghc-srpm-macros-1.10-2.fc45.noarch glibc-2.44.9000-4.fc46.s390x glibc-common-2.44.9000-4.fc46.s390x glibc-devel-2.44.9000-4.fc46.s390x glibc-gconv-extra-2.44.9000-4.fc46.s390x glibc-minimal-langpack-2.44.9000-4.fc46.s390x gmp-6.3.0-6.fc45.s390x 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.s390x gnupg2-dirmngr-2.4.9-18.fc46.s390x gnupg2-gpg-agent-2.4.9-18.fc46.s390x gnupg2-gpgconf-2.4.9-18.fc46.s390x gnupg2-keyboxd-2.4.9-18.fc46.s390x gnupg2-verify-2.4.9-18.fc46.s390x gnutls-3.8.13-5.fc46.s390x 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.s390x gzip-1.14-4.fc46.s390x ima-evm-utils-libs-1.6.2-12.fc46.s390x info-7.3-3.fc46.s390x jansson-2.14-5.fc46.s390x java-srpm-macros-1-9.fc45.noarch json-c-0.18-9.fc46.s390x kernel-headers-7.3.0-0.rc5.45.fc46.s390x kernel-srpm-macros-1.0-30.fc45.noarch keyutils-libs-1.6.3-8.fc46.s390x krb5-libs-1.22.2-9.fc45.s390x libacl-2.4.0-2.fc45.s390x libarchive-3.8.9-2.fc46.s390x libasan-16.2.1-2.fc46.1.s390x libassuan-2.5.7-6.fc46.s390x libatomic-16.2.1-2.fc46.1.s390x libattr-2.6.0-2.fc46.s390x libblkid-2.42.4-2.fc46.s390x libbrotli-1.2.0-6.fc46.s390x libcap-2.78-2.fc45.s390x libcap-ng-0.9.6-1.fc46.s390x libcbor-0.14.0-3.fc45.s390x libcom_err-1.47.4-2.fc46.s390x libcurl-8.23.0~rc2-1.fc46.s390x libeconf-0.7.9-4.fc46.s390x libedit-3.1-60.20260512cvs.fc46.s390x libevent-2.1.13-1.fc46.s390x libfdisk-2.42.4-2.fc46.s390x libffi-3.8.0-1.fc46.s390x libfido2-1.17.0-5.fc46.s390x libfsverity-1.7-4.fc45.s390x libgcc-16.2.1-2.fc46.1.s390x libgcrypt-1.12.4-1.fc46.s390x libgomp-16.2.1-2.fc46.1.s390x libgpg-error-1.61-2.fc46.s390x libidn2-2.3.8-4.fc46.s390x libksba-1.8.1-1.fc46.s390x liblastlog2-2.42.4-2.fc46.s390x libmount-2.42.4-2.fc46.s390x libmpc-1.4.1-2.fc46.s390x libnghttp2-1.69.0-6.fc46.s390x libnghttp3-1.18.0-1.fc46.s390x libomp-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x libpkgconf-2.5.1-2.fc46.s390x libpsl-0.23.3-1.fc46.s390x libselinux-3.11-5.fc46.s390x libselinux-utils-3.11-5.fc46.s390x libsemanage-3.11-4.fc46.s390x libsepol-3.11-2.fc46.s390x libsmartcols-2.42.4-2.fc46.s390x libssh-0.12.2-1.fc45.s390x libssh-config-0.12.2-1.fc45.noarch libstdc++-16.2.1-2.fc46.1.s390x libstdc++-devel-16.2.1-2.fc46.1.s390x libtasn1-4.21.0-2.fc46.s390x libtool-ltdl-2.6.2-1.fc46.s390x libubsan-16.2.1-2.fc46.1.s390x libunistring-1.1-12.fc46.s390x libusb1-1.0.30-2.fc45.s390x libuuid-2.42.4-2.fc46.s390x libverto-0.3.2-13.fc45.s390x libxcrypt-4.5.2-4.fc45.s390x libxcrypt-devel-4.5.2-4.fc45.s390x libxml2-2.15.4-1.fc46.s390x libzstd-1.5.7-6.fc46.s390x linkdupes-0.7.3-3.fc45.s390x lld-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x lld-libs-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x llvm-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x llvm-filesystem-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x llvm-libs-24.0.0~pre20260928.g6909c17f146832-6.fc46.s390x lua-libs-5.5.1-2.fc46.s390x lua-srpm-macros-1-18.fc45.noarch lz4-libs-1.10.0-5.fc46.s390x make-4.4.1-13.fc46.s390x meson-srpm-macros-1.12.1-2.fc46.noarch mpdecimal-4.0.1-4.fc46.s390x mpfr-4.2.2-4.fc45.s390x ncurses-base-6.6-3.fc46.noarch ncurses-libs-6.6-3.fc46.s390x nettle-4.0-5.fc45.s390x ngtcp2-1.22.1-3.fc45.s390x ngtcp2-crypto-ossl-1.22.1-3.fc45.s390x npth-1.8-5.fc46.s390x ocaml-srpm-macros-11-4.fc45.noarch openblas-srpm-macros-2-22.fc45.noarch openldap-2.6.14-1.fc46.s390x openssl-libs-4.0.3-1.fc46.s390x p11-kit-0.26.5-1.fc46.s390x p11-kit-trust-0.26.5-1.fc46.s390x package-notes-srpm-macros-0.20-2.fc45.noarch pam-libs-1.7.2-4.fc46.s390x patch-2.8-6.fc46.s390x pcre2-10.47-1.fc46.2.s390x pcre2-syntax-10.47-1.fc46.2.noarch perl-srpm-macros-1-65.fc45.noarch pkgconf-2.5.1-2.fc46.s390x pkgconf-m4-2.5.1-2.fc46.noarch pkgconf-pkg-config-2.5.1-2.fc46.s390x policycoreutils-3.11-2.fc46.s390x popt-1.19-11.fc46.s390x 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.s390x python3-libs-3.15.0~rc2-1.fc46.s390x qt5-srpm-macros-5.15.18-3.fc45.noarch qt6-srpm-macros-6.11.2-1.fc46.noarch readline-8.3-6.fc46.s390x 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.s390x rpm-build-6.1.0-1.fc46.s390x rpm-build-libs-6.1.0-1.fc46.s390x rpm-libs-6.1.0-1.fc46.s390x rpm-plugin-selinux-6.1.0-1.fc46.s390x rpm-sequoia-1.10.3-1.fc46.s390x rpm-sign-libs-6.1.0-1.fc46.s390x rust-srpm-macros-28.5-2.fc45.noarch sed-4.10-2.fc45.s390x 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.s390x sqlite-libs-3.53.4-1.fc45.s390x systemd-libs-262-3.fc46.s390x systemd-standalone-sysusers-262-3.fc46.s390x tar-1.35-9.fc45.s390x tpm2-tss-4.2.0-1.fc46.s390x tree-sitter-srpm-macros-0.4.6-2.fc45.noarch tzdata-2026c-2.fc46.noarch unzip-6.0-71.fc45.s390x util-linux-2.42.4-2.fc46.s390x util-linux-core-2.42.4-2.fc46.s390x which-2.25-2.fc46.s390x xxhash-libs-0.8.4-1.fc46.s390x xz-5.8.4-1.fc46.s390x xz-libs-5.8.4-1.fc46.s390x zig-srpm-macros-1-9.fc45.noarch zip-3.0-46.fc45.s390x zlib-ng-compat-2.3.3-6.fc46.s390x zstd-1.5.7-6.fc46.s390x Start: buildsrpm Start: rpmbuild -bs Building target platforms: s390x Building for target s390x 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-s390x-1790998635.037619/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-bjaf4g4b/cppcheck/cppcheck.spec) Config(child) 1 minutes 16 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-s390x) Start(bootstrap): chroot init INFO: mounting tmpfs at /var/lib/mock/fedora-rawhide-s390x-bootstrap-1790998635.037619/root. INFO: reusing tmpfs at /var/lib/mock/fedora-rawhide-s390x-bootstrap-1790998635.037619/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-s390x-1790998635.037619/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.s390x rpm-sequoia-1.10.3-1.fc46.s390x dnf5-5.4.6.0-1.fc46.s390x dnf5-plugins-5.4.6.0-1.fc46.s390x 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: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1789776000 Wrote: /builddir/build/SRPMS/cppcheck-2.22.0-1.fc46.src.rpm Updating and loading repositories: fedora 100% | 3.3 KiB/s | 4.2 KiB | 00m01s Additional repo copr_tstellar_fedora_c 100% | 1.6 KiB/s | 1.5 KiB | 00m01s Additional repo copr_fedora_llvm_team_ 100% | 1.7 KiB/s | 1.5 KiB | 00m01s Copr repository 100% | 1.7 KiB/s | 1.5 KiB | 00m01s Repositories loaded. Package "gcc-c++-16.2.1-2.fc46.1.s390x" is already installed. Package "make-1:4.4.1-13.fc46.s390x" is already installed. Package Arch Version Repository Size Installing: boost-devel s390x 0:1.90.0-13.fc45 fedora 142.7 MiB cmake s390x 0:4.3.0-5.fc45 fedora 37.2 MiB desktop-file-utils s390x 0:0.28-8.fc46 copr_base 240.9 KiB docbook-style-xsl noarch 0:1.79.2-29.fc46 fedora 14.6 MiB libxslt s390x 0:1.1.43-10.fc46 copr_base 475.1 KiB pandoc-cli s390x 0:3.7.0.2-41.fc45 fedora 379.3 MiB python3-devel s390x 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 s390x 0:6.11.2-1.fc46 fedora 5.9 MiB qt6-qtbase-devel s390x 0:6.11.2-3.fc46 fedora 23.1 MiB qt6-qttools-devel s390x 0:6.11.2-1.fc46 fedora 2.4 MiB tinyxml2-devel s390x 0:11.0.0-8.fc46 fedora 82.9 KiB zlib-ng-compat-devel s390x 0:2.3.3-6.fc46 copr_base 107.0 KiB Installing dependencies: SDL3 s390x 0:3.4.16-1.fc46 copr_base 3.8 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 s390x 0:2.62.0.1-1.fc46 fedora 299.2 KiB at-spi2-core s390x 0:2.62.0.1-1.fc46 fedora 1.6 MiB atk s390x 0:2.62.0.1-1.fc46 fedora 272.5 KiB avahi-glib s390x 0:0.9~rc2-9.fc46 copr_base 14.9 KiB avahi-libs s390x 0:0.9~rc2-9.fc46 copr_base 171.9 KiB boost s390x 0:1.90.0-13.fc45 fedora 1.3 KiB boost-atomic s390x 0:1.90.0-13.fc45 fedora 16.4 KiB boost-charconv s390x 0:1.90.0-13.fc45 fedora 177.2 KiB boost-chrono s390x 0:1.90.0-13.fc45 fedora 37.0 KiB boost-cobalt s390x 0:1.90.0-13.fc45 fedora 630.6 KiB boost-container s390x 0:1.90.0-13.fc45 fedora 68.9 KiB boost-context s390x 0:1.90.0-13.fc45 fedora 12.1 KiB boost-contract s390x 0:1.90.0-13.fc45 fedora 110.2 KiB boost-coroutine s390x 0:1.90.0-13.fc45 fedora 20.7 KiB boost-date-time s390x 0:1.90.0-13.fc45 fedora 7.8 KiB boost-fiber s390x 0:1.90.0-13.fc45 fedora 90.1 KiB boost-filesystem s390x 0:1.90.0-13.fc45 fedora 150.5 KiB boost-graph s390x 0:1.90.0-13.fc45 fedora 377.1 KiB boost-iostreams s390x 0:1.90.0-13.fc45 fedora 93.7 KiB boost-json s390x 0:1.90.0-13.fc45 fedora 395.7 KiB boost-locale s390x 0:1.90.0-13.fc45 fedora 707.5 KiB boost-log s390x 0:1.90.0-13.fc45 fedora 1.5 MiB boost-math s390x 0:1.90.0-13.fc45 fedora 618.3 KiB boost-nowide s390x 0:1.90.0-13.fc45 fedora 20.4 KiB boost-numpy3 s390x 0:1.90.0-13.fc45 fedora 57.0 KiB boost-process s390x 0:1.90.0-13.fc45 fedora 73.3 KiB boost-program-options s390x 0:1.90.0-13.fc45 fedora 286.9 KiB boost-python3 s390x 0:1.90.0-13.fc45 fedora 271.8 KiB boost-random s390x 0:1.90.0-13.fc45 fedora 29.1 KiB boost-regex s390x 0:1.90.0-13.fc45 fedora 301.6 KiB boost-serialization s390x 0:1.90.0-13.fc45 fedora 470.3 KiB boost-stacktrace s390x 0:1.90.0-13.fc45 fedora 74.7 KiB boost-test s390x 0:1.90.0-13.fc45 fedora 660.4 KiB boost-thread s390x 0:1.90.0-13.fc45 fedora 123.1 KiB boost-timer s390x 0:1.90.0-13.fc45 fedora 20.5 KiB boost-type_erasure s390x 0:1.90.0-13.fc45 fedora 57.6 KiB boost-url s390x 0:1.90.0-13.fc45 fedora 350.2 KiB boost-wave s390x 0:1.90.0-13.fc45 fedora 989.6 KiB bubblewrap s390x 0:0.12.0-1.fc46 copr_base 139.5 KiB cairo s390x 0:1.18.6-1.fc46 fedora 1.8 MiB cairo-gobject s390x 0:1.18.6-1.fc46 fedora 34.8 KiB clang22-libs s390x 0:22.1.8-3.fc46 fedora 124.6 MiB clang22-resource-filesystem s390x 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 s390x 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 s390x 0:1.4.8-5.fc45 fedora 844.9 KiB cups-filesystem noarch 1:2.4.19-4.fc46 copr_base 0.0 B cups-libs s390x 1:2.4.19-4.fc46 copr_base 954.3 KiB dbus s390x 1:1.16.2-6.fc46 copr_base 0.0 B dbus-libs s390x 1:1.16.2-6.fc46 copr_base 504.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 s390x 0:3.4.0-4.fc46 copr_base 116.3 KiB duktape s390x 0:2.7.0-12.fc46 copr_base 732.6 KiB emacs-filesystem s390x 1:31.1-1.fc46 fedora 0.0 B flexiblas s390x 0:3.5.0-4.fc46 fedora 38.0 KiB flexiblas-netlib s390x 0:3.5.0-4.fc46 fedora 17.6 MiB flexiblas-openblas-openmp s390x 0:3.5.0-4.fc46 fedora 38.8 KiB fontconfig s390x 0:2.18.3-2.fc46 fedora 1.0 MiB fonts-filesystem noarch 1:5.0.0-4.fc45 fedora 0.0 B freetype s390x 0:2.14.3-2.fc46 copr_base 1.1 MiB fribidi s390x 0:1.0.17-2.fc46 fedora 402.0 KiB gdk-pixbuf2 s390x 0:2.44.8-3.fc46 fedora 2.6 MiB glib-networking s390x 0:2.90.0-1.fc46 fedora 798.1 KiB glib2 s390x 0:2.90.0-1.fc46 fedora 15.5 MiB glx-utils s390x 0:9.0.0-12.fc46 copr_base 437.9 KiB glycin-libs s390x 0:2.2.1-1.fc46 fedora 5.3 MiB glycin-loaders s390x 0:2.2.1-1.fc46 fedora 17.3 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 s390x 0:1.3.14-22.fc46 copr_base 227.7 KiB gsettings-desktop-schemas s390x 0:51.0-1.fc46 fedora 6.7 MiB gtk-update-icon-cache s390x 0:3.24.52-6.fc45 fedora 61.7 KiB gtk3 s390x 0:3.24.52-6.fc45 fedora 23.2 MiB harfbuzz s390x 0:14.5.0-1.fc46 fedora 3.0 MiB hicolor-icon-theme noarch 0:0.18-6.fc45 fedora 72.4 KiB hwdata noarch 0:0.411-1.fc46 fedora 10.1 MiB json-glib s390x 0:1.10.8-11.fc45 fedora 600.1 KiB jsoncpp s390x 0:1.9.6-3.fc46 copr_base 291.1 KiB lcms2 s390x 0:2.16-8.fc45 copr_base 620.8 KiB libICE s390x 0:1.1.2-5.fc45 fedora 202.0 KiB libSM s390x 0:1.2.5-5.fc45 fedora 104.7 KiB libX11 s390x 0:1.8.13-3.fc46 fedora 1.4 MiB libX11-common noarch 0:1.8.13-3.fc46 fedora 1.1 MiB libX11-devel s390x 0:1.8.13-3.fc46 fedora 1.0 MiB libX11-xcb s390x 0:1.8.13-3.fc46 fedora 6.6 KiB libXau s390x 0:1.0.12-5.fc45 fedora 68.6 KiB libXau-devel s390x 0:1.0.12-5.fc45 fedora 7.3 KiB libXcomposite s390x 0:0.4.6-8.fc45 fedora 40.1 KiB libXcursor s390x 0:1.2.3-5.fc45 fedora 53.1 KiB libXdamage s390x 0:1.1.6-8.fc45 fedora 39.3 KiB libXext s390x 0:1.3.6-6.fc45 fedora 93.5 KiB libXfixes s390x 0:6.0.1-8.fc45 fedora 29.8 KiB libXft s390x 0:2.3.8-11.fc45 fedora 168.0 KiB libXi s390x 0:1.8.3-2.fc45 fedora 80.1 KiB libXinerama s390x 0:1.1.5-11.fc45 fedora 14.6 KiB libXrandr s390x 0:1.5.4-8.fc45 fedora 51.3 KiB libXrender s390x 0:0.9.12-5.fc45 fedora 45.6 KiB libXtst s390x 0:1.2.5-5.fc45 fedora 33.1 KiB libXxf86vm s390x 0:1.1.6-5.fc45 fedora 24.8 KiB libaom s390x 0:3.13.3-3.fc46 copr_base 5.2 MiB libb2 s390x 0:0.98.1-16.fc46 copr_base 45.3 KiB libcloudproviders s390x 0:0.4.1-1.fc46 fedora 127.8 KiB libdatrie s390x 0:0.2.14-3.fc45 fedora 57.5 KiB libdav1d s390x 0:1.5.4-1.fc46 copr_base 848.2 KiB libdecor s390x 0:0.2.5-3.fc46 copr_base 163.6 KiB libdrm s390x 0:2.4.134-2.fc46 copr_base 430.1 KiB libepoxy s390x 0:1.5.10-13.fc45 fedora 1.3 MiB libevdev s390x 0:1.13.7-1.fc46 copr_base 117.6 KiB libfbclient2 s390x 0:5.0.4.1812-2.fc45 fedora 3.9 MiB libffi-devel s390x 0:3.8.0-1.fc46 fedora 34.1 KiB libgfortran s390x 0:16.2.1-2.fc46.1 fedora 2.5 MiB libglvnd s390x 1:1.7.0-10.fc46 copr_base 893.6 KiB libglvnd-core-devel s390x 1:1.7.0-10.fc46 copr_base 40.3 KiB libglvnd-devel s390x 1:1.7.0-10.fc46 copr_base 2.1 MiB libglvnd-egl s390x 1:1.7.0-10.fc46 copr_base 84.7 KiB libglvnd-gles s390x 1:1.7.0-10.fc46 copr_base 84.9 KiB libglvnd-glx s390x 1:1.7.0-10.fc46 copr_base 569.0 KiB libglvnd-opengl s390x 1:1.7.0-10.fc46 copr_base 152.7 KiB libgudev s390x 0:238-10.fc45 fedora 83.4 KiB libgusb s390x 0:0.4.9-6.fc45 fedora 157.6 KiB libheif s390x 0:1.23.5-4.fc46 fedora 2.4 MiB libicu s390x 0:78.3-8.fc45 fedora 38.1 MiB libicu-devel s390x 0:78.3-8.fc45 fedora 5.2 MiB libinput s390x 0:1.32.0-1.fc46 fedora 689.4 KiB libjpeg-turbo s390x 0:3.1.4.1-2.fc46 copr_base 923.8 KiB libjxl s390x 1:0.11.2-2.fc45 fedora 2.8 MiB libopenjph s390x 0:0.31.0-1.fc46 copr_base 405.0 KiB libpciaccess s390x 0:0.16-18.fc45 fedora 44.2 KiB libpng s390x 2:1.6.58-2.fc46 copr_base 317.8 KiB libpq s390x 0:18.4-4.fc46 copr_base 1.2 MiB libproxy s390x 0:0.5.12-3.fc45 fedora 101.5 KiB librsvg2 s390x 0:2.63.2-1.fc46 fedora 6.1 MiB libseccomp s390x 0:2.6.1-3.fc45 fedora 238.0 KiB libsoup3 s390x 0:3.7.3-1.fc46 fedora 1.3 MiB libstemmer s390x 0:3.1.1-2.fc45 fedora 957.3 KiB libthai s390x 0:0.1.30-3.fc46 copr_base 808.6 KiB libtinysparql s390x 0:3.12.0-1.fc46 fedora 1.0 MiB libtommath s390x 0:1.3.1~rc1-8.fc45 fedora 138.1 KiB libuv s390x 1:1.52.1-2.fc46 copr_base 596.8 KiB libwacom s390x 0:2.20.0-1.fc46 copr_base 101.1 KiB libwacom-data noarch 0:2.20.0-1.fc46 copr_base 1.4 MiB libwayland-client s390x 0:1.26.0-3.fc46 fedora 73.7 KiB libwayland-cursor s390x 0:1.26.0-3.fc46 fedora 36.9 KiB libwayland-egl s390x 0:1.26.0-3.fc46 fedora 8.0 KiB libwayland-server s390x 0:1.26.0-3.fc46 fedora 98.3 KiB libwebp s390x 0:1.6.0-4.fc45 fedora 711.1 KiB libxcb s390x 0:1.17.0-8.fc45 fedora 1.1 MiB libxcb-devel s390x 0:1.17.0-8.fc45 fedora 2.6 MiB libxkbcommon s390x 0:1.13.1-4.fc46 copr_base 511.5 KiB libxkbcommon-devel s390x 0:1.13.1-4.fc46 copr_base 393.4 KiB libxkbcommon-x11 s390x 0:1.13.1-4.fc46 copr_base 35.1 KiB libxml2-devel s390x 0:2.15.4-1.fc46 fedora 6.7 MiB libxshmfence s390x 0:1.3.2-9.fc45 fedora 12.1 KiB libyaml s390x 0:0.2.5-19.fc46 copr_base 137.6 KiB llvm22-filesystem s390x 0:22.1.8-3.fc46 fedora 0.0 B llvm22-libs s390x 0:22.1.8-3.fc46 fedora 153.2 MiB lm_sensors-libs s390x 0:3.6.0-25.fc45 fedora 85.4 KiB lzo s390x 0:2.10-17.fc45 fedora 198.6 KiB mariadb-connector-c s390x 0:3.4.9-3.fc46 copr_base 611.2 KiB mariadb-connector-c-config noarch 0:3.4.9-3.fc46 copr_base 26.4 KiB mesa-dri-drivers s390x 0:26.2.3-1.fc46 copr_base 20.1 MiB mesa-filesystem s390x 0:26.2.3-1.fc46 copr_base 3.6 KiB mesa-libEGL s390x 0:26.2.3-1.fc46 copr_base 361.8 KiB mesa-libGL s390x 0:26.2.3-1.fc46 copr_base 345.7 KiB mesa-libgbm s390x 0:26.2.3-1.fc46 copr_base 19.1 KiB mtdev s390x 0:1.1.6-13.fc46 copr_base 32.6 KiB ninja-build s390x 0:1.13.2-6.fc46 copr_base 533.1 KiB noopenh264 s390x 0:2.6.0-5.fc46 copr_base 34.6 KiB numactl-libs s390x 0:2.0.19-5.fc45 fedora 56.6 KiB odbcinst-generate noarch 0:2.3.14-36.fc45 fedora 22.5 KiB openblas s390x 0:0.3.34-1.fc45 fedora 138.1 KiB openblas-openmp s390x 0:0.3.34-1.fc45 fedora 15.3 MiB openjpeg s390x 0:2.5.4-4.fc46 copr_base 567.7 KiB pandoc-common noarch 0:3.7.0.2-40.fc45 fedora 2.0 MiB pango s390x 0:1.58.2-1.fc46 copr_base 1.1 MiB pcre2-utf16 s390x 0:10.47-1.fc46.2 copr_base 834.3 KiB pixman s390x 0:0.46.2-4.fc46 copr_base 664.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 s390x 1:2.5.3-1.fc46 fedora 39.6 MiB python3-numpy-f2py s390x 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 s390x 0:6.11.2-1.fc46 fedora 701.4 KiB qt6-doctools s390x 0:6.11.2-1.fc46 fedora 2.6 MiB qt6-filesystem s390x 0:6.11.2-1.fc46 fedora 0.0 B qt6-qtbase s390x 0:6.11.2-3.fc46 fedora 14.7 MiB qt6-qtbase-common noarch 0:6.11.2-3.fc46 fedora 76.0 B qt6-qtbase-gui s390x 0:6.11.2-3.fc46 fedora 29.1 MiB qt6-qtbase-ibase s390x 0:6.11.2-3.fc46 fedora 162.4 KiB qt6-qtbase-mysql s390x 0:6.11.2-3.fc46 fedora 118.1 KiB qt6-qtbase-odbc s390x 0:6.11.2-3.fc46 fedora 157.9 KiB qt6-qtbase-postgresql s390x 0:6.11.2-3.fc46 fedora 137.9 KiB qt6-qtdeclarative s390x 0:6.11.2-2.fc46 fedora 63.2 MiB qt6-qtsvg s390x 0:6.11.2-1.fc46 fedora 978.2 KiB qt6-qttools s390x 0:6.11.2-1.fc46 fedora 956.7 KiB qt6-qttools-common noarch 0:6.11.2-1.fc46 fedora 7.5 KiB qt6-qttools-libs-designer s390x 0:6.11.2-1.fc46 fedora 6.3 MiB qt6-qttools-libs-designercomponents s390x 0:6.11.2-1.fc46 fedora 3.7 MiB qt6-qttools-libs-help s390x 0:6.11.2-1.fc46 fedora 666.9 KiB qt6-rpm-macros noarch 0:6.11.2-1.fc46 fedora 3.0 KiB rav1e-libs s390x 0:0.8.1-5.fc46 fedora 2.2 MiB rhash s390x 0:1.4.5-5.fc45 fedora 354.0 KiB sdl2-compat s390x 0:2.32.72-1.fc46 fedora 464.4 KiB sgml-common noarch 0:0.6.3-70.fc46 fedora 168.1 KiB shared-mime-info s390x 0:2.5.1-3.fc46 fedora 6.6 MiB svt-av1-libs s390x 0:3.1.2-3.fc46 copr_base 3.4 MiB tinyxml2 s390x 0:11.0.0-8.fc46 fedora 112.2 KiB tslib s390x 0:1.24-3.fc45 fedora 381.9 KiB unixODBC s390x 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 s390x 0:1.4.357.0-1.fc46 fedora 570.5 KiB vulkan-loader-devel s390x 0:1.4.357.0-1.fc46 fedora 8.0 KiB wayland-devel s390x 0:1.26.0-3.fc46 fedora 720.4 KiB xcb-util s390x 0:0.4.1-10.fc46 copr_base 21.7 KiB xcb-util-cursor s390x 0:0.1.6-3.fc46 copr_base 26.7 KiB xcb-util-image s390x 0:0.4.1-10.fc46 copr_base 25.6 KiB xcb-util-keysyms s390x 0:0.4.1-10.fc46 copr_base 12.1 KiB xcb-util-renderutil s390x 0:0.3.10-10.fc46 copr_base 19.8 KiB xcb-util-wm s390x 0:0.4.2-10.fc46 copr_base 88.2 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 s390x 0:1.2.8-6.fc46 copr_base 58.2 KiB xz-devel s390x 1:5.8.4-1.fc46 copr_base 258.8 KiB Transaction Summary: Installing: 247 packages Total size of inbound packages is 287 MiB. Need to download 287 MiB. After this operation, 1 GiB extra will be used (install 1 GiB, remove 0 B). [ 1/247] docbook-style-xsl-0:1.79.2-29 100% | 1.2 MiB/s | 1.5 MiB | 00m01s [ 2/247] cmake-0:4.3.0-5.fc45.s390x 100% | 7.7 MiB/s | 13.6 MiB | 00m02s [ 3/247] boost-devel-0:1.90.0-13.fc45. 100% | 7.6 MiB/s | 15.0 MiB | 00m02s [ 4/247] qt6-linguist-0:6.11.2-1.fc46. 100% | 5.9 MiB/s | 1.4 MiB | 00m00s [ 5/247] desktop-file-utils-0:0.28-8.f 100% | 950.2 KiB/s | 69.4 KiB | 00m00s [ 6/247] qt6-qttools-devel-0:6.11.2-1. 100% | 2.2 MiB/s | 457.5 KiB | 00m00s [ 7/247] libxslt-0:1.1.43-10.fc46.s390 100% | 2.1 MiB/s | 177.7 KiB | 00m00s [ 8/247] qt6-qtbase-devel-0:6.11.2-3.f 100% | 6.2 MiB/s | 4.4 MiB | 00m01s [ 9/247] python3-devel-0:3.15.0~rc2-1. 100% | 583.5 KiB/s | 482.6 KiB | 00m01s [ 10/247] zlib-ng-compat-devel-0:2.3.3- 100% | 1.0 MiB/s | 37.6 KiB | 00m00s [ 11/247] pandoc-cli-0:3.7.0.2-41.fc45. 100% | 28.4 MiB/s | 55.2 MiB | 00m02s [ 12/247] tinyxml2-devel-0:11.0.0-8.fc4 100% | 113.3 KiB/s | 29.1 KiB | 00m00s [ 13/247] boost-0:1.90.0-13.fc45.s390x 100% | 55.3 KiB/s | 12.2 KiB | 00m00s [ 14/247] libicu-devel-0:78.3-8.fc45.s3 100% | 4.7 MiB/s | 809.8 KiB | 00m00s [ 15/247] boost-numpy3-0:1.90.0-13.fc45 100% | 159.3 KiB/s | 27.7 KiB | 00m00s [ 16/247] cmake-filesystem-0:4.3.0-5.fc 100% | 97.4 KiB/s | 14.8 KiB | 00m00s [ 17/247] rhash-0:1.4.5-5.fc45.s390x 100% | 1.3 MiB/s | 202.0 KiB | 00m00s [ 18/247] cmake-data-0:4.3.0-5.fc45.noa 100% | 10.5 MiB/s | 2.7 MiB | 00m00s [ 19/247] docbook-dtds-0:1.0-93.fc46.no 100% | 2.1 MiB/s | 333.3 KiB | 00m00s [ 20/247] xml-common-0:0.6.3-70.fc46.no 100% | 208.4 KiB/s | 31.0 KiB | 00m00s [ 21/247] numactl-libs-0:2.0.19-5.fc45. 100% | 179.7 KiB/s | 32.2 KiB | 00m00s [ 22/247] pandoc-common-0:3.7.0.2-40.fc 100% | 2.5 MiB/s | 593.7 KiB | 00m00s [ 23/247] qt6-qttools-0:6.11.2-1.fc46.s 100% | 1.2 MiB/s | 248.7 KiB | 00m00s [ 24/247] qt6-qttools-common-0:6.11.2-1 100% | 54.8 KiB/s | 11.4 KiB | 00m00s [ 25/247] qt6-designer-0:6.11.2-1.fc46. 100% | 1.0 MiB/s | 222.0 KiB | 00m00s [ 26/247] qt6-doctools-0:6.11.2-1.fc46. 100% | 4.8 MiB/s | 977.3 KiB | 00m00s [ 27/247] qt6-qttools-libs-designer-0:6 100% | 9.3 MiB/s | 3.1 MiB | 00m00s [ 28/247] qt6-qtdeclarative-0:6.11.2-2. 100% | 18.6 MiB/s | 15.3 MiB | 00m01s [ 29/247] qt6-qttools-libs-designercomp 100% | 4.9 MiB/s | 1.0 MiB | 00m00s [ 30/247] qt6-qttools-libs-help-0:6.11. 100% | 1.3 MiB/s | 228.0 KiB | 00m00s [ 31/247] emacs-filesystem-1:31.1-1.fc4 100% | 54.5 KiB/s | 8.1 KiB | 00m00s [ 32/247] glib2-0:2.90.0-1.fc46.s390x 100% | 14.9 MiB/s | 3.1 MiB | 00m00s [ 33/247] qt6-qtbase-ibase-0:6.11.2-3.f 100% | 472.9 KiB/s | 71.9 KiB | 00m00s [ 34/247] qt6-qtbase-mysql-0:6.11.2-3.f 100% | 360.1 KiB/s | 54.7 KiB | 00m00s [ 35/247] qt6-qtbase-0:6.11.2-3.fc46.s3 100% | 14.8 MiB/s | 4.6 MiB | 00m00s [ 36/247] qt6-qtbase-odbc-0:6.11.2-3.fc 100% | 463.4 KiB/s | 69.0 KiB | 00m00s [ 37/247] qt6-qtbase-postgresql-0:6.11. 100% | 410.2 KiB/s | 62.4 KiB | 00m00s [ 38/247] qt6-rpm-macros-0:6.11.2-1.fc4 100% | 73.5 KiB/s | 11.8 KiB | 00m00s [ 39/247] tinyxml2-0:11.0.0-8.fc46.s390 100% | 281.8 KiB/s | 45.9 KiB | 00m00s [ 40/247] boost-atomic-0:1.90.0-13.fc45 100% | 106.3 KiB/s | 18.0 KiB | 00m00s [ 41/247] boost-charconv-0:1.90.0-13.fc 100% | 585.9 KiB/s | 99.6 KiB | 00m00s [ 42/247] boost-chrono-0:1.90.0-13.fc45 100% | 134.9 KiB/s | 24.3 KiB | 00m00s [ 43/247] boost-cobalt-0:1.90.0-13.fc45 100% | 1.1 MiB/s | 199.3 KiB | 00m00s [ 44/247] boost-container-0:1.90.0-13.f 100% | 242.9 KiB/s | 39.1 KiB | 00m00s [ 45/247] boost-context-0:1.90.0-13.fc4 100% | 86.1 KiB/s | 14.6 KiB | 00m00s [ 46/247] boost-contract-0:1.90.0-13.fc 100% | 293.8 KiB/s | 47.9 KiB | 00m00s [ 47/247] boost-date-time-0:1.90.0-13.f 100% | 89.2 KiB/s | 13.3 KiB | 00m00s [ 48/247] boost-coroutine-0:1.90.0-13.f 100% | 90.3 KiB/s | 18.0 KiB | 00m00s [ 49/247] boost-fiber-0:1.90.0-13.fc45. 100% | 257.5 KiB/s | 43.0 KiB | 00m00s [ 50/247] boost-filesystem-0:1.90.0-13. 100% | 390.5 KiB/s | 68.7 KiB | 00m00s [ 51/247] boost-graph-0:1.90.0-13.fc45. 100% | 868.1 KiB/s | 159.7 KiB | 00m00s [ 52/247] boost-iostreams-0:1.90.0-13.f 100% | 237.2 KiB/s | 39.8 KiB | 00m00s [ 53/247] boost-json-0:1.90.0-13.fc45.s 100% | 907.2 KiB/s | 161.5 KiB | 00m00s [ 54/247] boost-locale-0:1.90.0-13.fc45 100% | 1.4 MiB/s | 237.4 KiB | 00m00s [ 55/247] boost-log-0:1.90.0-13.fc45.s3 100% | 2.7 MiB/s | 498.7 KiB | 00m00s [ 56/247] boost-math-0:1.90.0-13.fc45.s 100% | 1.3 MiB/s | 224.3 KiB | 00m00s [ 57/247] boost-nowide-0:1.90.0-13.fc45 100% | 90.6 KiB/s | 18.3 KiB | 00m00s [ 58/247] boost-process-0:1.90.0-13.fc4 100% | 257.8 KiB/s | 39.7 KiB | 00m00s [ 59/247] boost-program-options-0:1.90. 100% | 727.9 KiB/s | 109.9 KiB | 00m00s [ 60/247] boost-python3-0:1.90.0-13.fc4 100% | 504.6 KiB/s | 98.4 KiB | 00m00s [ 61/247] boost-random-0:1.90.0-13.fc45 100% | 124.6 KiB/s | 22.3 KiB | 00m00s [ 62/247] boost-regex-0:1.90.0-13.fc45. 100% | 812.2 KiB/s | 121.8 KiB | 00m00s [ 63/247] boost-stacktrace-0:1.90.0-13. 100% | 124.2 KiB/s | 37.2 KiB | 00m00s [ 64/247] boost-test-0:1.90.0-13.fc45.s 100% | 870.1 KiB/s | 240.1 KiB | 00m00s [ 65/247] boost-serialization-0:1.90.0- 100% | 397.6 KiB/s | 136.0 KiB | 00m00s [ 66/247] boost-thread-0:1.90.0-13.fc45 100% | 359.9 KiB/s | 55.1 KiB | 00m00s [ 67/247] boost-timer-0:1.90.0-13.fc45. 100% | 117.4 KiB/s | 19.0 KiB | 00m00s [ 68/247] boost-type_erasure-0:1.90.0-1 100% | 201.7 KiB/s | 34.1 KiB | 00m00s [ 69/247] boost-url-0:1.90.0-13.fc45.s3 100% | 681.5 KiB/s | 128.8 KiB | 00m00s [ 70/247] boost-wave-0:1.90.0-13.fc45.s 100% | 1.3 MiB/s | 268.8 KiB | 00m00s [ 71/247] vim-filesystem-2:9.2.1129-1.f 100% | 62.5 KiB/s | 15.6 KiB | 00m00s [ 72/247] sgml-common-0:0.6.3-70.fc46.n 100% | 382.1 KiB/s | 60.8 KiB | 00m00s [ 73/247] python3-numpy-1:2.5.3-1.fc46. 100% | 11.0 MiB/s | 7.7 MiB | 00m01s [ 74/247] qt6-qtsvg-0:6.11.2-1.fc46.s39 100% | 2.1 MiB/s | 333.1 KiB | 00m00s [ 75/247] libicu-0:78.3-8.fc45.s390x 100% | 17.6 MiB/s | 11.1 MiB | 00m01s [ 76/247] qt6-filesystem-0:6.11.2-1.fc4 100% | 59.9 KiB/s | 10.4 KiB | 00m00s [ 77/247] qt6-qtbase-common-0:6.11.2-3. 100% | 45.6 KiB/s | 11.3 KiB | 00m00s [ 78/247] unixODBC-0:2.3.14-36.fc45.s39 100% | 1.6 MiB/s | 421.5 KiB | 00m00s [ 79/247] llvm22-libs-0:22.1.8-3.fc46.s 100% | 36.0 MiB/s | 34.2 MiB | 00m01s [ 80/247] flexiblas-netlib-0:3.5.0-4.fc 100% | 11.7 MiB/s | 5.0 MiB | 00m00s [ 81/247] python3-numpy-f2py-1:2.5.3-1. 100% | 2.7 MiB/s | 515.9 KiB | 00m00s [ 82/247] clang22-resource-filesystem-0 100% | 117.8 KiB/s | 17.9 KiB | 00m00s [ 83/247] llvm22-filesystem-0:22.1.8-3. 100% | 82.0 KiB/s | 12.4 KiB | 00m00s [ 84/247] clang22-libs-0:22.1.8-3.fc46. 100% | 19.6 MiB/s | 28.7 MiB | 00m01s [ 85/247] odbcinst-generate-0:2.3.14-36 100% | 144.1 KiB/s | 22.0 KiB | 00m00s [ 86/247] flexiblas-0:3.5.0-4.fc46.s390 100% | 147.0 KiB/s | 22.5 KiB | 00m00s [ 87/247] flexiblas-openblas-openmp-0:3 100% | 95.6 KiB/s | 16.6 KiB | 00m00s [ 88/247] libgfortran-0:16.2.1-2.fc46.1 100% | 3.1 MiB/s | 636.0 KiB | 00m00s [ 89/247] libICE-0:1.1.2-5.fc45.s390x 100% | 346.8 KiB/s | 80.1 KiB | 00m00s [ 90/247] openblas-openmp-0:0.3.34-1.fc 100% | 9.9 MiB/s | 4.3 MiB | 00m00s [ 91/247] libSM-0:1.2.5-5.fc45.s390x 100% | 260.8 KiB/s | 45.6 KiB | 00m00s [ 92/247] qt6-qtbase-gui-0:6.11.2-3.fc4 100% | 12.2 MiB/s | 9.1 MiB | 00m01s [ 93/247] libX11-xcb-0:1.8.13-3.fc46.s3 100% | 67.6 KiB/s | 10.7 KiB | 00m00s [ 94/247] libX11-0:1.8.13-3.fc46.s390x 100% | 3.5 MiB/s | 682.4 KiB | 00m00s [ 95/247] libxcb-0:1.17.0-8.fc45.s390x 100% | 1.4 MiB/s | 249.1 KiB | 00m00s [ 96/247] tslib-0:1.24-3.fc45.s390x 100% | 899.2 KiB/s | 160.1 KiB | 00m00s [ 97/247] openblas-0:0.3.34-1.fc45.s390 100% | 268.5 KiB/s | 48.1 KiB | 00m00s [ 98/247] libX11-common-0:1.8.13-3.fc46 100% | 1.1 MiB/s | 175.2 KiB | 00m00s [ 99/247] libXau-0:1.0.12-5.fc45.s390x 100% | 217.3 KiB/s | 33.2 KiB | 00m00s [100/247] python3-setuptools-0:84.0.0-1 100% | 7.6 MiB/s | 1.7 MiB | 00m00s [101/247] SDL3-0:3.4.16-1.fc46.s390x 100% | 10.2 MiB/s | 1.2 MiB | 00m00s [102/247] libpq-0:18.4-4.fc46.s390x 100% | 6.6 MiB/s | 288.6 KiB | 00m00s [103/247] sdl2-compat-0:2.32.72-1.fc46. 100% | 960.0 KiB/s | 148.8 KiB | 00m00s [104/247] mariadb-connector-c-0:3.4.9-3 100% | 5.9 MiB/s | 230.6 KiB | 00m00s [105/247] cups-libs-1:2.4.19-4.fc46.s39 100% | 8.3 MiB/s | 321.6 KiB | 00m00s [106/247] libtommath-0:1.3.1~rc1-8.fc45 100% | 415.6 KiB/s | 62.8 KiB | 00m00s [107/247] libfbclient2-0:5.0.4.1812-2.f 100% | 6.0 MiB/s | 1.3 MiB | 00m00s [108/247] fontconfig-0:2.18.3-2.fc46.s3 100% | 2.0 MiB/s | 382.5 KiB | 00m00s [109/247] default-fonts-core-sans-0:4.3 100% | 195.4 KiB/s | 29.1 KiB | 00m00s [110/247] fonts-filesystem-1:5.0.0-4.fc 100% | 54.2 KiB/s | 8.7 KiB | 00m00s [111/247] abattis-cantarell-vf-fonts-0: 100% | 770.9 KiB/s | 120.3 KiB | 00m00s [112/247] freetype-0:2.14.3-2.fc46.s390 100% | 11.6 MiB/s | 465.2 KiB | 00m00s [113/247] google-noto-sans-vf-fonts-0:2 100% | 3.8 MiB/s | 613.9 KiB | 00m00s [114/247] glx-utils-0:9.0.0-12.fc46.s39 100% | 1.8 MiB/s | 64.3 KiB | 00m00s [115/247] libdrm-0:2.4.134-2.fc46.s390x 100% | 4.2 MiB/s | 155.2 KiB | 00m00s [116/247] google-noto-fonts-common-0:20 100% | 104.4 KiB/s | 16.7 KiB | 00m00s [117/247] harfbuzz-0:14.5.0-1.fc46.s390 100% | 7.0 MiB/s | 1.2 MiB | 00m00s [118/247] libpciaccess-0:0.16-18.fc45.s 100% | 170.9 KiB/s | 26.5 KiB | 00m00s [119/247] libglvnd-egl-1:1.7.0-10.fc46. 100% | 1.1 MiB/s | 38.7 KiB | 00m00s [120/247] libglvnd-glx-1:1.7.0-10.fc46. 100% | 3.2 MiB/s | 139.9 KiB | 00m00s [121/247] hwdata-0:0.411-1.fc46.noarch 100% | 7.6 MiB/s | 1.7 MiB | 00m00s [122/247] libglvnd-opengl-1:1.7.0-10.fc 100% | 1.0 MiB/s | 44.2 KiB | 00m00s [123/247] libjpeg-turbo-0:3.1.4.1-2.fc4 100% | 6.9 MiB/s | 256.1 KiB | 00m00s [124/247] libpng-2:1.6.58-2.fc46.s390x 100% | 4.2 MiB/s | 146.5 KiB | 00m00s [125/247] libXext-0:1.3.6-6.fc45.s390x 100% | 255.2 KiB/s | 39.3 KiB | 00m00s [126/247] libinput-0:1.32.0-1.fc46.s390 100% | 1.6 MiB/s | 272.7 KiB | 00m00s [127/247] libwayland-client-0:1.26.0-3. 100% | 239.7 KiB/s | 36.4 KiB | 00m00s [128/247] wayland-devel-0:1.26.0-3.fc46 100% | 1.0 MiB/s | 160.4 KiB | 00m00s [129/247] libwayland-cursor-0:1.26.0-3. 100% | 122.1 KiB/s | 19.5 KiB | 00m00s [130/247] libxkbcommon-0:1.13.1-4.fc46. 100% | 5.4 MiB/s | 194.7 KiB | 00m00s [131/247] libwayland-egl-0:1.26.0-3.fc4 100% | 80.9 KiB/s | 12.2 KiB | 00m00s [132/247] libwayland-server-0:1.26.0-3. 100% | 300.3 KiB/s | 44.8 KiB | 00m00s [133/247] libxkbcommon-x11-0:1.13.1-4.f 100% | 674.8 KiB/s | 22.3 KiB | 00m00s [134/247] mesa-libgbm-0:26.2.3-1.fc46.s 100% | 613.1 KiB/s | 20.2 KiB | 00m00s [135/247] mtdev-0:1.1.6-13.fc46.s390x 100% | 725.6 KiB/s | 23.9 KiB | 00m00s [136/247] xcb-util-cursor-0:0.1.6-3.fc4 100% | 581.1 KiB/s | 19.2 KiB | 00m00s [137/247] xcb-util-image-0:0.4.1-10.fc4 100% | 571.7 KiB/s | 18.9 KiB | 00m00s [138/247] xcb-util-keysyms-0:0.4.1-10.f 100% | 421.0 KiB/s | 13.5 KiB | 00m00s [139/247] xcb-util-renderutil-0:0.3.10- 100% | 486.3 KiB/s | 16.0 KiB | 00m00s [140/247] xcb-util-wm-0:0.4.2-10.fc46.s 100% | 922.6 KiB/s | 30.4 KiB | 00m00s [141/247] libglvnd-devel-1:1.7.0-10.fc4 100% | 4.0 MiB/s | 156.8 KiB | 00m00s [142/247] xkeyboard-config-0:2.48-4.fc4 100% | 4.9 MiB/s | 1.0 MiB | 00m00s [143/247] libX11-devel-0:1.8.13-3.fc46. 100% | 6.3 MiB/s | 1.1 MiB | 00m00s [144/247] libxkbcommon-devel-0:1.13.1-4 100% | 2.2 MiB/s | 74.1 KiB | 00m00s [145/247] libXau-devel-0:1.0.12-5.fc45. 100% | 86.2 KiB/s | 13.8 KiB | 00m00s [146/247] pcre2-utf16-0:10.47-1.fc46.2. 100% | 6.7 MiB/s | 254.8 KiB | 00m00s [147/247] libxcb-devel-0:1.17.0-8.fc45. 100% | 6.4 MiB/s | 1.5 MiB | 00m00s [148/247] dbus-libs-1:1.16.2-6.fc46.s39 100% | 5.3 MiB/s | 185.3 KiB | 00m00s [149/247] double-conversion-0:3.4.0-4.f 100% | 1.6 MiB/s | 55.9 KiB | 00m00s [150/247] vulkan-loader-devel-0:1.4.357 100% | 76.2 KiB/s | 12.2 KiB | 00m00s [151/247] libb2-0:0.98.1-16.fc46.s390x 100% | 794.8 KiB/s | 26.2 KiB | 00m00s [152/247] vulkan-loader-0:1.4.357.0-1.f 100% | 1.0 MiB/s | 160.5 KiB | 00m00s [153/247] libyaml-0:0.2.5-19.fc46.s390x 100% | 1.6 MiB/s | 54.7 KiB | 00m00s [154/247] duktape-0:2.7.0-12.fc46.s390x 100% | 3.9 MiB/s | 174.3 KiB | 00m00s [155/247] libevdev-0:1.13.7-1.fc46.s390 100% | 1.2 MiB/s | 40.6 KiB | 00m00s [156/247] libwacom-0:2.20.0-1.fc46.s390 100% | 1.4 MiB/s | 48.6 KiB | 00m00s [157/247] xorg-x11-proto-devel-0:2025.1 100% | 7.3 MiB/s | 267.5 KiB | 00m00s [158/247] libproxy-0:0.5.12-3.fc45.s390 100% | 268.8 KiB/s | 43.5 KiB | 00m00s [159/247] graphite2-0:1.3.14-22.fc46.s3 100% | 3.0 MiB/s | 102.8 KiB | 00m00s [160/247] jsoncpp-0:1.9.6-3.fc46.s390x 100% | 2.5 MiB/s | 98.0 KiB | 00m00s [161/247] libgudev-0:238-10.fc45.s390x 100% | 228.1 KiB/s | 34.0 KiB | 00m00s [162/247] libuv-1:1.52.1-2.fc46.s390x 100% | 4.4 MiB/s | 267.4 KiB | 00m00s [163/247] xcb-util-0:0.4.1-10.fc46.s390 100% | 534.1 KiB/s | 17.1 KiB | 00m00s [164/247] mariadb-connector-c-config-0: 100% | 652.1 KiB/s | 21.5 KiB | 00m00s [165/247] libwacom-data-0:2.20.0-1.fc46 100% | 5.7 MiB/s | 217.0 KiB | 00m00s [166/247] libglvnd-1:1.7.0-10.fc46.s390 100% | 2.9 MiB/s | 140.9 KiB | 00m00s [167/247] mesa-libGL-0:26.2.3-1.fc46.s3 100% | 2.8 MiB/s | 127.1 KiB | 00m00s [168/247] mesa-libEGL-0:26.2.3-1.fc46.s 100% | 3.5 MiB/s | 125.1 KiB | 00m00s [169/247] libglvnd-gles-1:1.7.0-10.fc46 100% | 953.7 KiB/s | 31.5 KiB | 00m00s [170/247] libglvnd-core-devel-1:1.7.0-1 100% | 511.6 KiB/s | 16.9 KiB | 00m00s [171/247] avahi-libs-0:0.9~rc2-9.fc46.s 100% | 1.2 MiB/s | 66.4 KiB | 00m00s [172/247] cups-filesystem-1:2.4.19-4.fc 100% | 363.4 KiB/s | 12.0 KiB | 00m00s [173/247] libdecor-0:0.2.5-3.fc46.s390x 100% | 1.5 MiB/s | 53.3 KiB | 00m00s [174/247] libXxf86vm-0:1.1.6-5.fc45.s39 100% | 109.0 KiB/s | 17.4 KiB | 00m00s [175/247] adwaita-icon-theme-0:51.0-1.f 100% | 2.2 MiB/s | 399.9 KiB | 00m00s [176/247] at-spi2-atk-0:2.62.0.1-1.fc46 100% | 527.9 KiB/s | 89.7 KiB | 00m00s [177/247] gtk3-0:3.24.52-6.fc45.s390x 100% | 22.1 MiB/s | 6.0 MiB | 00m00s [178/247] colord-libs-0:1.4.8-5.fc45.s3 100% | 1.4 MiB/s | 226.6 KiB | 00m00s [179/247] atk-0:2.62.0.1-1.fc46.s390x 100% | 510.8 KiB/s | 82.7 KiB | 00m00s [180/247] gdk-pixbuf2-0:2.44.8-3.fc46.s 100% | 3.2 MiB/s | 507.4 KiB | 00m00s [181/247] gtk-update-icon-cache-0:3.24. 100% | 226.8 KiB/s | 34.5 KiB | 00m00s [182/247] hicolor-icon-theme-0:0.18-6.f 100% | 401.5 KiB/s | 65.8 KiB | 00m00s [183/247] libXcomposite-0:0.4.6-8.fc45. 100% | 159.8 KiB/s | 23.8 KiB | 00m00s [184/247] libXcursor-0:1.2.3-5.fc45.s39 100% | 213.4 KiB/s | 32.4 KiB | 00m00s [185/247] libXdamage-0:1.1.6-8.fc45.s39 100% | 142.7 KiB/s | 22.8 KiB | 00m00s [186/247] libXfixes-0:6.0.1-8.fc45.s390 100% | 124.8 KiB/s | 18.6 KiB | 00m00s [187/247] libXi-0:1.8.3-2.fc45.s390x 100% | 280.8 KiB/s | 42.7 KiB | 00m00s [188/247] libXinerama-0:1.1.5-11.fc45.s 100% | 86.4 KiB/s | 13.8 KiB | 00m00s [189/247] libXrandr-0:1.5.4-8.fc45.s390 100% | 187.4 KiB/s | 27.9 KiB | 00m00s [190/247] libcloudproviders-0:0.4.1-1.f 100% | 299.1 KiB/s | 45.5 KiB | 00m00s [191/247] libepoxy-0:1.5.10-13.fc45.s39 100% | 1.4 MiB/s | 233.9 KiB | 00m00s [192/247] adwaita-cursor-theme-0:51.0-1 100% | 2.4 MiB/s | 380.2 KiB | 00m00s [193/247] libgusb-0:0.4.9-6.fc45.s390x 100% | 408.1 KiB/s | 61.6 KiB | 00m00s [194/247] at-spi2-core-0:2.62.0.1-1.fc4 100% | 2.2 MiB/s | 397.8 KiB | 00m00s [195/247] adwaita-icon-theme-legacy-0:4 100% | 8.8 MiB/s | 2.5 MiB | 00m00s [196/247] glycin-libs-0:2.2.1-1.fc46.s3 100% | 9.6 MiB/s | 1.8 MiB | 00m00s [197/247] shared-mime-info-0:2.5.1-3.fc 100% | 2.5 MiB/s | 475.5 KiB | 00m00s [198/247] libXrender-0:0.9.12-5.fc45.s3 100% | 181.2 KiB/s | 27.7 KiB | 00m00s [199/247] libXtst-0:1.2.5-5.fc45.s390x 100% | 136.9 KiB/s | 20.5 KiB | 00m00s [200/247] json-glib-0:1.10.8-11.fc45.s3 100% | 988.7 KiB/s | 172.0 KiB | 00m00s [201/247] libseccomp-0:2.6.1-3.fc45.s39 100% | 442.5 KiB/s | 76.1 KiB | 00m00s [202/247] glycin-loaders-0:2.2.1-1.fc46 100% | 10.9 MiB/s | 3.7 MiB | 00m00s [203/247] libheif-0:1.23.5-4.fc46.s390x 100% | 4.3 MiB/s | 855.7 KiB | 00m00s [204/247] libwebp-0:1.6.0-4.fc45.s390x 100% | 1.7 MiB/s | 279.2 KiB | 00m00s [205/247] vulkan-headers-0:1.4.357.0-1. 100% | 28.9 MiB/s | 1.7 MiB | 00m00s [206/247] libffi-devel-0:3.8.0-1.fc46.s 100% | 181.2 KiB/s | 31.0 KiB | 00m00s [207/247] libaom-0:3.13.3-3.fc46.s390x 100% | 30.8 MiB/s | 1.6 MiB | 00m00s [208/247] rav1e-libs-0:0.8.1-5.fc46.s39 100% | 3.7 MiB/s | 807.3 KiB | 00m00s [209/247] libdav1d-0:1.5.4-1.fc46.s390x 100% | 8.9 MiB/s | 364.5 KiB | 00m00s [210/247] libopenjph-0:0.31.0-1.fc46.s3 100% | 3.9 MiB/s | 136.4 KiB | 00m00s [211/247] noopenh264-0:2.6.0-5.fc46.s39 100% | 641.0 KiB/s | 21.2 KiB | 00m00s [212/247] openjpeg-0:2.5.4-4.fc46.s390x 100% | 3.5 MiB/s | 219.5 KiB | 00m00s [213/247] svt-av1-libs-0:3.1.2-3.fc46.s 100% | 24.0 MiB/s | 1.1 MiB | 00m00s [214/247] lzo-0:2.10-17.fc45.s390x 100% | 405.3 KiB/s | 76.6 KiB | 00m00s [215/247] cairo-0:1.18.6-1.fc46.s390x 100% | 3.2 MiB/s | 731.1 KiB | 00m00s [216/247] cairo-gobject-0:1.18.6-1.fc46 100% | 89.6 KiB/s | 17.6 KiB | 00m00s [217/247] fribidi-0:1.0.17-2.fc46.s390x 100% | 508.5 KiB/s | 104.2 KiB | 00m00s [218/247] libstemmer-0:3.1.1-2.fc45.s39 100% | 854.5 KiB/s | 180.3 KiB | 00m00s [219/247] pango-0:1.58.2-1.fc46.s390x 100% | 10.0 MiB/s | 368.8 KiB | 00m00s [220/247] bubblewrap-0:0.12.0-1.fc46.s3 100% | 1.9 MiB/s | 65.3 KiB | 00m00s [221/247] libXft-0:2.3.8-11.fc45.s390x 100% | 489.5 KiB/s | 75.9 KiB | 00m00s [222/247] libtinysparql-0:3.12.0-1.fc46 100% | 927.7 KiB/s | 357.2 KiB | 00m00s [223/247] lcms2-0:2.16-8.fc45.s390x 100% | 6.1 MiB/s | 220.4 KiB | 00m00s [224/247] pixman-0:0.46.2-4.fc46.s390x 100% | 6.0 MiB/s | 216.6 KiB | 00m00s [225/247] libjxl-1:0.11.2-2.fc45.s390x 100% | 4.8 MiB/s | 975.3 KiB | 00m00s [226/247] dbus-1:1.16.2-6.fc46.s390x 100% | 238.6 KiB/s | 7.6 KiB | 00m00s [227/247] xprop-0:1.2.8-6.fc46.s390x 100% | 1.0 MiB/s | 35.2 KiB | 00m00s [228/247] libthai-0:0.1.30-3.fc46.s390x 100% | 4.8 MiB/s | 217.5 KiB | 00m00s [229/247] librsvg2-0:2.63.2-1.fc46.s390 100% | 10.2 MiB/s | 2.0 MiB | 00m00s [230/247] mesa-dri-drivers-0:26.2.3-1.f 100% | 50.7 MiB/s | 3.6 MiB | 00m00s [231/247] libdatrie-0:0.2.14-3.fc45.s39 100% | 180.3 KiB/s | 32.8 KiB | 00m00s [232/247] mesa-filesystem-0:26.2.3-1.fc 100% | 428.2 KiB/s | 14.1 KiB | 00m00s [233/247] libxshmfence-0:1.3.2-9.fc45.s 100% | 86.7 KiB/s | 12.9 KiB | 00m00s [234/247] avahi-glib-0:0.9~rc2-9.fc46.s 100% | 440.9 KiB/s | 14.1 KiB | 00m00s [235/247] lm_sensors-libs-0:3.6.0-25.fc 100% | 256.4 KiB/s | 40.8 KiB | 00m00s [236/247] glib-networking-0:2.90.0-1.fc 100% | 1.2 MiB/s | 211.6 KiB | 00m00s [237/247] gsettings-desktop-schemas-0:5 100% | 4.6 MiB/s | 938.1 KiB | 00m00s [238/247] xz-devel-1:5.8.4-1.fc46.s390x 100% | 1.8 MiB/s | 61.8 KiB | 00m00s [239/247] libxml2-devel-0:2.15.4-1.fc46 100% | 3.3 MiB/s | 536.3 KiB | 00m00s [240/247] pyproject-rpm-macros-0:1.23.2 100% | 358.5 KiB/s | 54.8 KiB | 00m00s [241/247] libsoup3-0:3.7.3-1.fc46.s390x 100% | 939.1 KiB/s | 412.3 KiB | 00m00s [242/247] python-rpm-macros-0:3.15-2.fc 100% | 132.7 KiB/s | 19.8 KiB | 00m00s [243/247] python3-rpm-generators-0:14-3 100% | 190.9 KiB/s | 28.8 KiB | 00m00s [244/247] python3-rpm-macros-0:3.15-2.f 100% | 73.7 KiB/s | 12.2 KiB | 00m00s [245/247] ninja-build-0:1.13.2-6.fc46.s 100% | 5.6 MiB/s | 193.6 KiB | 00m00s [246/247] cmake-rpm-macros-0:4.3.0-5.fc 100% | 92.1 KiB/s | 13.7 KiB | 00m00s [247/247] python3-packaging-0:26.3-1.fc 100% | 1.7 MiB/s | 293.6 KiB | 00m00s -------------------------------------------------------------------------------- [247/247] Total 100% | 17.7 MiB/s | 287.0 MiB | 00m16s Running transaction [ 1/249] Verify package files 100% | 369.0 B/s | 247.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-s390x-1790998635.037619/root/var/cache/dnf/copr_base-c7ab5152eeb4dc47/packages/desktop-file-utils-0.28-8.fc46.s390x.rpm: Header OpenPGP V4 RSA/SHA256 signature, key ID 5291f7fa5c4b3009: NOKEY [ 2/249] Prepare transaction 100% | 755.0 B/s | 247.0 B | 00m00s [ 3/249] Installing glib2-0:2.90.0-1.f 100% | 189.8 MiB/s | 15.6 MiB | 00m00s [ 4/249] Installing boost-container-0: 100% | 68.3 MiB/s | 69.9 KiB | 00m00s [ 5/249] Installing cmake-filesystem-0 100% | 4.6 MiB/s | 9.4 KiB | 00m00s [ 6/249] Installing boost-date-time-0: 100% | 0.0 B/s | 8.8 KiB | 00m00s [ 7/249] Installing libicu-0:78.3-8.fc 100% | 262.6 MiB/s | 38.1 MiB | 00m00s [ 8/249] Installing boost-chrono-0:1.9 100% | 37.1 MiB/s | 38.0 KiB | 00m00s [ 9/249] Installing boost-atomic-0:1.9 100% | 17.0 MiB/s | 17.4 KiB | 00m00s [ 10/249] Installing boost-thread-0:1.9 100% | 121.2 MiB/s | 124.1 KiB | 00m00s [ 11/249] Installing libwayland-client- 100% | 73.1 MiB/s | 74.9 KiB | 00m00s [ 12/249] Installing boost-filesystem-0 100% | 148.0 MiB/s | 151.5 KiB | 00m00s [ 13/249] Installing boost-regex-0:1.90 100% | 147.8 MiB/s | 302.6 KiB | 00m00s [ 14/249] Installing libglvnd-1:1.7.0-1 100% | 218.5 MiB/s | 894.9 KiB | 00m00s [ 15/249] Installing dbus-libs-1:1.16.2 100% | 164.4 MiB/s | 505.2 KiB | 00m00s [ 16/249] Installing boost-context-0:1. 100% | 0.0 B/s | 13.1 KiB | 00m00s [ 17/249] Installing qt6-qttools-common 100% | 0.0 B/s | 7.9 KiB | 00m00s [ 18/249] Installing libwayland-cursor- 100% | 37.2 MiB/s | 38.1 KiB | 00m00s [ 19/249] Installing libX11-xcb-0:1.8.1 100% | 0.0 B/s | 7.4 KiB | 00m00s [ 20/249] Installing avahi-libs-0:0.9~r 100% | 170.2 MiB/s | 174.3 KiB | 00m00s [ 21/249] Installing boost-graph-0:1.90 100% | 184.6 MiB/s | 378.1 KiB | 00m00s [ 22/249] Installing python-rpm-macros- 100% | 0.0 B/s | 28.9 KiB | 00m00s [ 23/249] Installing libwayland-egl-0:1 100% | 0.0 B/s | 9.2 KiB | 00m00s [ 24/249] Installing libpng-2:1.6.58-2. 100% | 155.8 MiB/s | 319.0 KiB | 00m00s [ 25/249] Installing fonts-filesystem-1 100% | 0.0 B/s | 788.0 B | 00m00s [ 26/249] Installing boost-serializatio 100% | 230.3 MiB/s | 471.6 KiB | 00m00s [ 27/249] Installing boost-random-0:1.9 100% | 4.9 MiB/s | 30.1 KiB | 00m00s [ 28/249] Installing xml-common-0:0.6.3 100% | 39.6 MiB/s | 81.1 KiB | 00m00s [ 29/249] Installing python3-rpm-macros 100% | 6.6 MiB/s | 6.8 KiB | 00m00s [ 30/249] Installing boost-python3-0:1. 100% | 133.2 MiB/s | 272.8 KiB | 00m00s [ 31/249] Installing libglvnd-opengl-1: 100% | 75.0 MiB/s | 153.5 KiB | 00m00s [ 32/249] Installing shared-mime-info-0 100% | 76.8 MiB/s | 3.2 MiB | 00m00s [ 33/249] Installing json-glib-0:1.10.8 100% | 99.6 MiB/s | 612.1 KiB | 00m00s [ 34/249] Installing lcms2-0:2.16-8.fc4 100% | 202.6 MiB/s | 622.5 KiB | 00m00s [ 35/249] Installing fribidi-0:1.0.17-2 100% | 18.0 MiB/s | 404.7 KiB | 00m00s [ 36/249] Installing libdav1d-0:1.5.4-1 100% | 207.4 MiB/s | 849.5 KiB | 00m00s [ 37/249] Installing libseccomp-0:2.6.1 100% | 117.1 MiB/s | 239.8 KiB | 00m00s [ 38/249] Installing xorg-x11-proto-dev 100% | 179.6 MiB/s | 1.8 MiB | 00m00s [ 39/249] Installing libevdev-0:1.13.7- 100% | 115.9 MiB/s | 118.7 KiB | 00m00s [ 40/249] Installing pcre2-utf16-0:10.4 100% | 271.9 MiB/s | 835.2 KiB | 00m00s [ 41/249] Installing mtdev-0:1.1.6-13.f 100% | 33.0 MiB/s | 33.8 KiB | 00m00s [ 42/249] Installing libjpeg-turbo-0:3. 100% | 226.0 MiB/s | 925.5 KiB | 00m00s [ 43/249] Installing libXau-0:1.0.12-5. 100% | 68.4 MiB/s | 70.1 KiB | 00m00s [ 44/249] Installing libxcb-0:1.17.0-8. 100% | 187.7 MiB/s | 1.1 MiB | 00m00s [ 45/249] Installing xcb-util-renderuti 100% | 20.7 MiB/s | 21.2 KiB | 00m00s [ 46/249] Installing libICE-0:1.1.2-5.f 100% | 198.6 MiB/s | 203.4 KiB | 00m00s [ 47/249] Installing libgfortran-0:16.2 100% | 274.9 MiB/s | 2.5 MiB | 00m00s [ 48/249] Installing vim-filesystem-2:9 100% | 4.7 MiB/s | 4.8 KiB | 00m00s [ 49/249] Installing boost-charconv-0:1 100% | 174.0 MiB/s | 178.2 KiB | 00m00s [ 50/249] Installing emacs-filesystem-1 100% | 0.0 B/s | 1.1 KiB | 00m00s [ 51/249] Installing boost-locale-0:1.9 100% | 230.6 MiB/s | 708.5 KiB | 00m00s [ 52/249] Installing ninja-build-0:1.13 100% | 21.8 MiB/s | 536.2 KiB | 00m00s [ 53/249] Installing cmake-rpm-macros-0 100% | 0.0 B/s | 9.0 KiB | 00m00s [ 54/249] Installing libSM-0:1.2.5-5.fc 100% | 103.6 MiB/s | 106.1 KiB | 00m00s [ 55/249] Installing xcb-util-keysyms-0 100% | 0.0 B/s | 13.3 KiB | 00m00s [ 56/249] Installing xcb-util-wm-0:0.4. 100% | 88.1 MiB/s | 90.2 KiB | 00m00s [ 57/249] Installing xcb-util-0:0.4.1-1 100% | 22.6 MiB/s | 23.1 KiB | 00m00s [ 58/249] Installing xcb-util-image-0:0 100% | 26.4 MiB/s | 27.0 KiB | 00m00s [ 59/249] Installing xcb-util-cursor-0: 100% | 27.5 MiB/s | 28.1 KiB | 00m00s [ 60/249] Installing libXau-devel-0:1.0 100% | 1.0 MiB/s | 9.1 KiB | 00m00s [ 61/249] Installing libxcb-devel-0:1.1 100% | 62.8 MiB/s | 3.0 MiB | 00m00s [ 62/249] Installing libjxl-1:0.11.2-2. 100% | 230.8 MiB/s | 2.8 MiB | 00m00s [ 63/249] Installing libgusb-0:0.4.9-6. 100% | 155.6 MiB/s | 159.3 KiB | 00m00s [ 64/249] Installing colord-libs-0:1.4. 100% | 165.6 MiB/s | 847.9 KiB | 00m00s [ 65/249] Installing pyproject-rpm-macr 100% | 77.4 MiB/s | 158.6 KiB | 00m00s [ 66/249] Installing boost-iostreams-0: 100% | 46.2 MiB/s | 94.7 KiB | 00m00s [ 67/249] Installing boost-math-0:1.90. 100% | 202.3 MiB/s | 621.6 KiB | 00m00s [ 68/249] Installing boost-log-0:1.90.0 100% | 218.3 MiB/s | 1.5 MiB | 00m00s [ 69/249] Installing boost-wave-0:1.90. 100% | 241.8 MiB/s | 990.6 KiB | 00m00s [ 70/249] Installing abattis-cantarell- 100% | 189.9 MiB/s | 194.4 KiB | 00m00s [ 71/249] Installing avahi-glib-0:0.9~r 100% | 0.0 B/s | 15.8 KiB | 00m00s [ 72/249] Installing boost-cobalt-0:1.9 100% | 205.7 MiB/s | 632.0 KiB | 00m00s [ 73/249] Installing boost-coroutine-0: 100% | 21.2 MiB/s | 21.7 KiB | 00m00s [ 74/249] Installing boost-fiber-0:1.90 100% | 88.8 MiB/s | 91.0 KiB | 00m00s [ 75/249] Installing boost-process-0:1. 100% | 72.5 MiB/s | 74.2 KiB | 00m00s [ 76/249] Installing boost-contract-0:1 100% | 108.6 MiB/s | 111.2 KiB | 00m00s [ 77/249] Installing boost-type_erasure 100% | 57.3 MiB/s | 58.6 KiB | 00m00s [ 78/249] Installing boost-timer-0:1.90 100% | 21.0 MiB/s | 21.5 KiB | 00m00s [ 79/249] Installing libicu-devel-0:78. 100% | 124.4 MiB/s | 5.2 MiB | 00m00s [ 80/249] Installing zlib-ng-compat-dev 100% | 106.0 MiB/s | 108.6 KiB | 00m00s [ 81/249] Installing vulkan-headers-0:1 100% | 515.6 MiB/s | 39.7 MiB | 00m00s [ 82/249] Installing boost-json-0:1.90. 100% | 193.7 MiB/s | 396.7 KiB | 00m00s [ 83/249] Installing boost-program-opti 100% | 140.6 MiB/s | 288.0 KiB | 00m00s [ 84/249] Installing libgudev-0:238-10. 100% | 82.9 MiB/s | 84.9 KiB | 00m00s [ 85/249] Installing libcloudproviders- 100% | 63.3 MiB/s | 129.7 KiB | 00m00s [ 86/249] Installing gsettings-desktop- 100% | 304.5 MiB/s | 6.7 MiB | 00m00s [ 87/249] Installing python3-packaging- 100% | 217.6 MiB/s | 1.3 MiB | 00m00s [ 88/249] Installing python3-rpm-genera 100% | 81.1 MiB/s | 83.1 KiB | 00m00s [ 89/249] Installing xz-devel-1:5.8.4-1 100% | 85.5 MiB/s | 262.6 KiB | 00m00s [ 90/249] Installing libxml2-devel-0:2. 100% | 164.0 MiB/s | 6.7 MiB | 00m00s [ 91/249] Installing mesa-filesystem-0: 100% | 0.0 B/s | 4.3 KiB | 00m00s [ 92/249] Installing lm_sensors-libs-0: 100% | 84.5 MiB/s | 86.5 KiB | 00m00s [ 93/249] Installing libxshmfence-0:1.3 100% | 0.0 B/s | 13.2 KiB | 00m00s [ 94/249] Installing libdatrie-0:0.2.14 100% | 57.2 MiB/s | 58.6 KiB | 00m00s [ 95/249] Installing libthai-0:0.1.30-3 100% | 197.9 MiB/s | 810.4 KiB | 00m00s [ 96/249] Installing dbus-1:1.16.2-6.fc 100% | 0.0 B/s | 124.0 B | 00m00s [ 97/249] Installing pixman-0:0.46.2-4. 100% | 216.7 MiB/s | 665.8 KiB | 00m00s [ 98/249] Installing bubblewrap-0:0.12. 100% | 6.9 MiB/s | 141.8 KiB | 00m00s [ 99/249] Installing libstemmer-0:3.1.1 100% | 234.1 MiB/s | 958.7 KiB | 00m00s [100/249] Installing lzo-0:2.10-17.fc45 100% | 195.5 MiB/s | 200.2 KiB | 00m00s [101/249] Installing svt-av1-libs-0:3.1 100% | 261.4 MiB/s | 3.4 MiB | 00m00s [102/249] Installing openjpeg-0:2.5.4-4 100% | 185.4 MiB/s | 569.7 KiB | 00m00s [103/249] Installing noopenh264-0:2.6.0 100% | 35.3 MiB/s | 36.2 KiB | 00m00s [104/249] Installing libopenjph-0:0.31. 100% | 198.3 MiB/s | 406.1 KiB | 00m00s [105/249] Installing libaom-0:3.13.3-3. 100% | 271.7 MiB/s | 5.2 MiB | 00m00s [106/249] Installing libffi-devel-0:3.8 100% | 34.6 MiB/s | 35.5 KiB | 00m00s [107/249] Installing rav1e-libs-0:0.8.1 100% | 247.7 MiB/s | 2.2 MiB | 00m00s [108/249] Installing libwebp-0:1.6.0-4. 100% | 174.6 MiB/s | 715.2 KiB | 00m00s [109/249] Installing libheif-0:1.23.5-4 100% | 157.6 MiB/s | 2.4 MiB | 00m00s [110/249] Installing adwaita-icon-theme 100% | 54.7 MiB/s | 2.4 MiB | 00m00s [111/249] Installing adwaita-cursor-the 100% | 439.6 MiB/s | 11.4 MiB | 00m00s [112/249] Installing adwaita-icon-theme 100% | 50.4 MiB/s | 1.0 MiB | 00m00s [113/249] Installing libepoxy-0:1.5.10- 100% | 262.4 MiB/s | 1.3 MiB | 00m00s [114/249] Installing hicolor-icon-theme 100% | 19.5 MiB/s | 179.7 KiB | 00m00s [115/249] Installing cups-filesystem-1: 100% | 0.0 B/s | 1.8 KiB | 00m00s [116/249] Installing cups-libs-1:2.4.19 100% | 186.7 MiB/s | 955.8 KiB | 00m00s [117/249] Installing libglvnd-core-deve 100% | 20.1 MiB/s | 41.1 KiB | 00m00s [118/249] Installing libwacom-data-0:2. 100% | 78.7 MiB/s | 1.6 MiB | 00m00s [119/249] Installing libwacom-0:2.20.0- 100% | 4.8 MiB/s | 103.3 KiB | 00m00s [120/249] Installing libinput-0:1.32.0- 100% | 22.1 MiB/s | 703.0 KiB | 00m00s [121/249] Installing mariadb-connector- 100% | 26.6 MiB/s | 27.2 KiB | 00m00s [122/249] Installing mariadb-connector- 100% | 150.6 MiB/s | 616.9 KiB | 00m00s [123/249] Installing libuv-1:1.52.1-2.f 100% | 195.2 MiB/s | 599.6 KiB | 00m00s [124/249] Installing jsoncpp-0:1.9.6-3. 100% | 142.9 MiB/s | 292.6 KiB | 00m00s [125/249] Installing graphite2-0:1.3.14 100% | 10.2 MiB/s | 229.8 KiB | 00m00s [126/249] Installing harfbuzz-0:14.5.0- 100% | 214.7 MiB/s | 3.0 MiB | 00m00s [127/249] Installing freetype-0:2.14.3- 100% | 154.0 MiB/s | 1.1 MiB | 00m00s [128/249] Installing duktape-0:2.7.0-12 100% | 239.1 MiB/s | 734.6 KiB | 00m00s [129/249] Installing libproxy-0:0.5.12- 100% | 101.3 MiB/s | 103.8 KiB | 00m00s [130/249] Installing glib-networking-0: 100% | 113.5 MiB/s | 813.5 KiB | 00m00s [131/249] Installing libsoup3-0:3.7.3-1 100% | 158.1 MiB/s | 1.3 MiB | 00m00s [132/249] Installing libtinysparql-0:3. 100% | 209.9 MiB/s | 1.0 MiB | 00m00s [133/249] Installing libyaml-0:0.2.5-19 100% | 135.7 MiB/s | 139.0 KiB | 00m00s [134/249] Installing libb2-0:0.98.1-16. 100% | 45.3 MiB/s | 46.4 KiB | 00m00s [135/249] Installing double-conversion- 100% | 115.3 MiB/s | 118.0 KiB | 00m00s [136/249] Installing vulkan-loader-0:1. 100% | 186.6 MiB/s | 573.2 KiB | 00m00s [137/249] Installing vulkan-loader-deve 100% | 4.4 MiB/s | 9.1 KiB | 00m00s [138/249] Installing xkeyboard-config-0 100% | 208.8 MiB/s | 6.5 MiB | 00m00s [139/249] Installing libxkbcommon-0:1.1 100% | 167.1 MiB/s | 513.2 KiB | 00m00s [140/249] Installing libxkbcommon-x11-0 100% | 35.1 MiB/s | 35.9 KiB | 00m00s [141/249] Installing libxkbcommon-devel 100% | 192.9 MiB/s | 395.1 KiB | 00m00s [142/249] Installing libwayland-server- 100% | 48.6 MiB/s | 99.4 KiB | 00m00s [143/249] Installing wayland-devel-0:1. 100% | 26.4 MiB/s | 729.1 KiB | 00m00s [144/249] Installing hwdata-0:0.411-1.f 100% | 336.2 MiB/s | 10.1 MiB | 00m00s [145/249] Installing libpciaccess-0:0.1 100% | 44.5 MiB/s | 45.6 KiB | 00m00s [146/249] Installing libdrm-0:2.4.134-2 100% | 141.2 MiB/s | 433.9 KiB | 00m00s [147/249] Installing mesa-dri-drivers-0 100% | 314.6 MiB/s | 20.1 MiB | 00m00s [148/249] Installing mesa-libgbm-0:26.2 100% | 19.5 MiB/s | 20.0 KiB | 00m00s [149/249] Installing google-noto-fonts- 100% | 0.0 B/s | 18.5 KiB | 00m00s [150/249] Installing google-noto-sans-v 100% | 231.9 MiB/s | 1.4 MiB | 00m00s [151/249] Installing default-fonts-core 100% | 8.9 MiB/s | 18.2 KiB | 00m00s [152/249] Installing fontconfig-0:2.18. 100% | 1.0 MiB/s | 1.1 MiB | 00m01s [153/249] Installing libtommath-0:1.3.1 100% | 68.0 MiB/s | 139.2 KiB | 00m00s [154/249] Installing libfbclient2-0:5.0 100% | 227.3 MiB/s | 3.9 MiB | 00m00s [155/249] Installing libpq-0:18.4-4.fc4 100% | 169.2 MiB/s | 1.2 MiB | 00m00s [156/249] Installing libX11-common-0:1. 100% | 118.5 MiB/s | 1.2 MiB | 00m00s [157/249] Installing libX11-0:1.8.13-3. 100% | 233.5 MiB/s | 1.4 MiB | 00m00s [158/249] Installing libXext-0:1.3.6-6. 100% | 92.5 MiB/s | 94.7 KiB | 00m00s [159/249] Installing libXrender-0:0.9.1 100% | 45.8 MiB/s | 46.9 KiB | 00m00s [160/249] Installing cairo-0:1.18.6-1.f 100% | 223.0 MiB/s | 1.8 MiB | 00m00s [161/249] Installing cairo-gobject-0:1. 100% | 0.0 B/s | 35.6 KiB | 00m00s [162/249] Installing libXi-0:1.8.3-2.fc 100% | 79.3 MiB/s | 81.2 KiB | 00m00s [163/249] Installing libXfixes-0:6.0.1- 100% | 0.0 B/s | 31.2 KiB | 00m00s [164/249] Installing mesa-libEGL-0:26.2 100% | 177.2 MiB/s | 362.8 KiB | 00m00s [165/249] Installing libglvnd-egl-1:1.7 100% | 84.3 MiB/s | 86.3 KiB | 00m00s [166/249] Installing libglvnd-gles-1:1. 100% | 84.3 MiB/s | 86.3 KiB | 00m00s [167/249] Installing libXcursor-0:1.2.3 100% | 53.5 MiB/s | 54.8 KiB | 00m00s [168/249] Installing libXdamage-0:1.1.6 100% | 0.0 B/s | 40.8 KiB | 00m00s [169/249] Installing libXtst-0:1.2.5-5. 100% | 0.0 B/s | 34.2 KiB | 00m00s [170/249] Installing libXrandr-0:1.5.4- 100% | 0.0 B/s | 52.5 KiB | 00m00s [171/249] Installing libXft-0:2.3.8-11. 100% | 165.6 MiB/s | 169.5 KiB | 00m00s [172/249] Installing pango-0:1.58.2-1.f 100% | 41.9 MiB/s | 1.1 MiB | 00m00s [173/249] Installing librsvg2-0:2.63.2- 100% | 242.3 MiB/s | 6.1 MiB | 00m00s [174/249] Installing glycin-loaders-0:2 100% | 314.2 MiB/s | 17.3 MiB | 00m00s [175/249] Installing glycin-libs-0:2.2. 100% | 252.6 MiB/s | 5.3 MiB | 00m00s [176/249] Installing gdk-pixbuf2-0:2.44 100% | 79.2 MiB/s | 2.6 MiB | 00m00s [177/249] Installing gtk-update-icon-ca 100% | 3.1 MiB/s | 62.9 KiB | 00m00s [178/249] Installing libXxf86vm-0:1.1.6 100% | 25.5 MiB/s | 26.1 KiB | 00m00s [179/249] Installing mesa-libGL-0:26.2. 100% | 169.3 MiB/s | 346.6 KiB | 00m00s [180/249] Installing libglvnd-glx-1:1.7 100% | 278.5 MiB/s | 570.4 KiB | 00m00s [181/249] Installing glx-utils-0:9.0.0- 100% | 21.4 MiB/s | 439.1 KiB | 00m00s [182/249] Installing libXinerama-0:1.1. 100% | 5.1 MiB/s | 15.7 KiB | 00m00s [183/249] Installing libX11-devel-0:1.8 100% | 65.0 MiB/s | 1.1 MiB | 00m00s [184/249] Installing libglvnd-devel-1:1 100% | 424.1 MiB/s | 2.1 MiB | 00m00s [185/249] Installing libXcomposite-0:0. 100% | 0.0 B/s | 41.7 KiB | 00m00s [186/249] Installing xprop-0:1.2.8-6.fc 100% | 2.8 MiB/s | 59.6 KiB | 00m00s [187/249] Installing at-spi2-core-0:2.6 100% | 146.5 MiB/s | 1.6 MiB | 00m00s [188/249] Installing atk-0:2.62.0.1-1.f 100% | 267.5 MiB/s | 273.9 KiB | 00m00s [189/249] Installing at-spi2-atk-0:2.62 100% | 147.1 MiB/s | 301.2 KiB | 00m00s [190/249] Installing gtk3-0:3.24.52-6.f 100% | 198.4 MiB/s | 23.2 MiB | 00m00s [191/249] Installing libdecor-0:0.2.5-3 100% | 81.2 MiB/s | 166.2 KiB | 00m00s [192/249] Installing SDL3-0:3.4.16-1.fc 100% | 253.5 MiB/s | 3.8 MiB | 00m00s [193/249] Installing sdl2-compat-0:2.32 100% | 151.7 MiB/s | 466.1 KiB | 00m00s [194/249] Installing tslib-0:1.24-3.fc4 100% | 16.9 MiB/s | 398.2 KiB | 00m00s [195/249] Installing openblas-0:0.3.34- 100% | 136.6 MiB/s | 139.9 KiB | 00m00s [196/249] Installing openblas-openmp-0: 100% | 267.9 MiB/s | 15.3 MiB | 00m00s [197/249] Installing flexiblas-netlib-0 100% | 204.4 MiB/s | 17.6 MiB | 00m00s [198/249] Installing flexiblas-0:3.5.0- 100% | 0.0 B/s | 39.2 KiB | 00m00s [199/249] Installing flexiblas-openblas 100% | 7.8 MiB/s | 39.7 KiB | 00m00s [200/249] Installing python3-numpy-1:2. 100% | 230.8 MiB/s | 39.9 MiB | 00m00s [201/249] Installing python3-numpy-f2py 100% | 66.5 MiB/s | 2.2 MiB | 00m00s [202/249] Installing boost-numpy3-0:1.9 100% | 56.6 MiB/s | 58.0 KiB | 00m00s [203/249] Installing odbcinst-generate- 100% | 676.7 KiB/s | 23.7 KiB | 00m00s [204/249] Installing unixODBC-0:2.3.14- 100% | 30.2 MiB/s | 1.0 MiB | 00m00s [205/249] Installing llvm22-filesystem- 100% | 1.0 MiB/s | 1.1 KiB | 00m00s [206/249] Installing llvm22-libs-0:22.1 100% | 290.8 MiB/s | 153.2 MiB | 00m01s [207/249] Installing clang22-resource-f 100% | 7.9 MiB/s | 16.2 KiB | 00m00s [208/249] Installing clang22-libs-0:22. 100% | 293.9 MiB/s | 124.6 MiB | 00m00s [209/249] Installing qt6-filesystem-0:6 100% | 1.7 MiB/s | 3.5 KiB | 00m00s [210/249] Installing qt6-qtbase-0:6.11. 100% | 177.4 MiB/s | 14.7 MiB | 00m00s [211/249] Installing qt6-qtbase-common- 100% | 171.9 KiB/s | 352.0 B | 00m00s [212/249] Installing qt6-qtbase-gui-0:6 100% | 251.4 MiB/s | 29.2 MiB | 00m00s [213/249] Installing qt6-qttools-0:6.11 100% | 40.7 MiB/s | 958.6 KiB | 00m00s [214/249] Installing qt6-qttools-libs-h 100% | 217.4 MiB/s | 667.7 KiB | 00m00s [215/249] Installing qt6-qtsvg-0:6.11.2 100% | 87.1 MiB/s | 981.3 KiB | 00m00s [216/249] Installing qt6-qtdeclarative- 100% | 261.3 MiB/s | 63.5 MiB | 00m00s [217/249] Installing qt6-qttools-libs-d 100% | 314.8 MiB/s | 6.3 MiB | 00m00s [218/249] Installing qt6-qttools-libs-d 100% | 287.3 MiB/s | 3.7 MiB | 00m00s [219/249] Installing qt6-designer-0:6.1 100% | 31.2 MiB/s | 703.0 KiB | 00m00s [220/249] Installing qt6-linguist-0:6.1 100% | 151.6 MiB/s | 5.9 MiB | 00m00s [221/249] Installing qt6-doctools-0:6.1 100% | 88.9 MiB/s | 2.6 MiB | 00m00s [222/249] Installing qt6-qtbase-ibase-0 100% | 160.4 MiB/s | 164.2 KiB | 00m00s [223/249] Installing qt6-qtbase-mysql-0 100% | 117.1 MiB/s | 119.9 KiB | 00m00s [224/249] Installing qt6-qtbase-odbc-0: 100% | 155.9 MiB/s | 159.7 KiB | 00m00s [225/249] Installing qt6-qtbase-postgre 100% | 136.4 MiB/s | 139.7 KiB | 00m00s [226/249] Installing sgml-common-0:0.6. 100% | 8.1 MiB/s | 174.9 KiB | 00m00s [227/249] Installing docbook-dtds-0:1.0 100% | 28.7 MiB/s | 6.8 MiB | 00m00s [228/249] Installing boost-url-0:1.90.0 100% | 114.3 MiB/s | 351.2 KiB | 00m00s [229/249] Installing boost-test-0:1.90. 100% | 161.5 MiB/s | 661.7 KiB | 00m00s [230/249] Installing boost-stacktrace-0 100% | 74.8 MiB/s | 76.6 KiB | 00m00s [231/249] Installing boost-nowide-0:1.9 100% | 20.9 MiB/s | 21.4 KiB | 00m00s [232/249] Installing boost-0:1.90.0-13. 100% | 1.7 MiB/s | 1.7 KiB | 00m00s [233/249] Installing tinyxml2-0:11.0.0- 100% | 37.0 MiB/s | 113.6 KiB | 00m00s [234/249] Installing pandoc-common-0:3. 100% | 114.4 MiB/s | 2.1 MiB | 00m00s [235/249] Installing numactl-libs-0:2.0 100% | 56.1 MiB/s | 57.5 KiB | 00m00s [236/249] Installing rhash-0:1.4.5-5.fc 100% | 12.5 MiB/s | 359.3 KiB | 00m00s [237/249] Installing cmake-0:4.3.0-5.fc 100% | 180.6 MiB/s | 37.2 MiB | 00m00s [238/249] Installing cmake-data-0:4.3.0 100% | 84.0 MiB/s | 10.1 MiB | 00m00s [239/249] Installing qt6-rpm-macros-0:6 100% | 136.1 KiB/s | 4.1 KiB | 00m00s [240/249] Installing qt6-qtbase-devel-0 100% | 141.6 MiB/s | 23.6 MiB | 00m00s [241/249] Installing qt6-qttools-devel- 100% | 64.8 MiB/s | 2.5 MiB | 00m00s [242/249] Installing pandoc-cli-0:3.7.0 100% | 369.0 MiB/s | 379.3 MiB | 00m01s [243/249] Installing tinyxml2-devel-0:1 100% | 1.6 MiB/s | 84.3 KiB | 00m00s [244/249] Installing boost-devel-0:1.90 100% | 185.4 MiB/s | 145.5 MiB | 00m01s [245/249] Installing docbook-style-xsl- 100% | 183.8 MiB/s | 14.9 MiB | 00m00s [246/249] Installing python3-devel-0:3. 100% | 65.8 MiB/s | 2.5 MiB | 00m00s [247/249] Installing desktop-file-utils 100% | 7.5 MiB/s | 244.7 KiB | 00m00s [248/249] Installing python3-setuptools 100% | 154.4 MiB/s | 7.6 MiB | 00m00s [249/249] Installing libxslt-0:1.1.43-1 100% | 599.3 KiB/s | 478.2 KiB | 00m01s Warning: skipped OpenPGP checks for 68 packages from repository: copr_base Complete! Building target platforms: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1789776000 Wrote: /builddir/build/SRPMS/cppcheck-2.22.0-1.fc46.src.rpm Updating and loading repositories: fedora 100% | 3.6 KiB/s | 4.2 KiB | 00m01s Additional repo copr_tstellar_fedora_c 100% | 1.5 KiB/s | 1.5 KiB | 00m01s Additional repo copr_fedora_llvm_team_ 100% | 1.5 KiB/s | 1.5 KiB | 00m01s Copr repository 100% | 1.5 KiB/s | 1.5 KiB | 00m01s Repositories loaded. Package "boost-devel-1.90.0-13.fc45.s390x" is already installed. Package "cmake-4.3.0-5.fc45.s390x" is already installed. Package "desktop-file-utils-0.28-8.fc46.s390x" 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.s390x" is already installed. Package "libxslt-1.1.43-10.fc46.s390x" is already installed. Package "make-1:4.4.1-13.fc46.s390x" is already installed. Package "pandoc-cli-3.7.0.2-41.fc45.s390x" is already installed. Package "python3-devel-3.15.0~rc2-1.fc46.s390x" is already installed. Package "python3-setuptools-84.0.0-1.fc46.noarch" is already installed. Nothing to do. Package "qt6-linguist-6.11.2-1.fc46.s390x" is already installed. Package "qt6-qtbase-devel-6.11.2-3.fc46.s390x" is already installed. Package "qt6-qttools-devel-6.11.2-1.fc46.s390x" is already installed. Package "tinyxml2-devel-11.0.0-8.fc46.s390x" is already installed. Package "zlib-ng-compat-devel-2.3.3-6.fc46.s390x" is already installed. 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: s390x Building for target s390x setting SOURCE_DATE_EPOCH=1789776000 Executing(mkbuilddir): /bin/sh -e /var/tmp/rpm-tmp.ywnhcn 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection" RPM_LD_FLAGS="-Wl,-z,relro -Wl,--as-needed -Wl,-z,now --config=/usr/lib/rpm/redhat/redhat-hardened-clang-ld.cfg -flto=thin -ffat-lto-objects -Wl,--build-id=sha1 " RPM_ARCH="s390x" RPM_OS="linux" RPM_BUILD_NCPUS="2" 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.LTtzAA + 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.KeU5iC + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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 24.0.0 -- 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 = 24.0.0 -- 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -- 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,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-24' -- RUN_CLANG_TIDY=RUN_CLANG_TIDY-NOTFOUND -- Configuring done (4.5s) -- Generating done (0.2s) 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 -j2 --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 2 [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/cfg /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./cfg [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/addons /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/redhat-linux-build/bin/./addons [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_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) [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_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) [17/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) [18/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) [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_about.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/about.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_applicationdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/applicationdialog.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_fileview.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/fileview.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_helpdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/helpdialog.ui [23/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 [24/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 [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_mainwindow.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/mainwindow.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_newsuppressiondialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/newsuppressiondialog.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_statsdialog.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/statsdialog.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_threaddetails.h /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/gui/threaddetails.ui [34/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 [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_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) [37/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) [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 && /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) [49/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 [50/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 [51/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 [52/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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [74/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [75/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 && : [76/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 [77/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 [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 symboldatabase.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/symboldatabase.cpp => build/mc_symboldatabase.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 addoninfo.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/addoninfo.cpp => build/mc_addoninfo.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 analyzerinfo.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/analyzerinfo.cpp => build/mc_analyzerinfo.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 astutils.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/astutils.cpp => build/mc_astutils.cpp [82/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 [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 checkassert.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkassert.cpp => build/mc_checkassert.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 checkautovariables.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkautovariables.cpp => build/mc_checkautovariables.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 checkbool.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbool.cpp => build/mc_checkbool.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 checkbufferoverrun.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkbufferoverrun.cpp => build/mc_checkbufferoverrun.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 checkclass.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkclass.cpp => build/mc_checkclass.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 checkcondition.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkcondition.cpp => build/mc_checkcondition.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 checkers.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkers.cpp => build/mc_checkers.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 checkersidmapping.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersidmapping.cpp => build/mc_checkersidmapping.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 checkersreport.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkersreport.cpp => build/mc_checkersreport.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 checkexceptionsafety.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkexceptionsafety.cpp => build/mc_checkexceptionsafety.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 checkfunctions.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkfunctions.cpp => build/mc_checkfunctions.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 checkimpl.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkimpl.cpp => build/mc_checkimpl.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 checkinternal.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkinternal.cpp => build/mc_checkinternal.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 checkio.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkio.cpp => build/mc_checkio.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 checkleakautovar.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkleakautovar.cpp => build/mc_checkleakautovar.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 checkmemoryleak.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkmemoryleak.cpp => build/mc_checkmemoryleak.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 checknullpointer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checknullpointer.cpp => build/mc_checknullpointer.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 checkother.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkother.cpp => build/mc_checkother.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 checkpostfixoperator.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkpostfixoperator.cpp => build/mc_checkpostfixoperator.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 checks.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checks.cpp => build/mc_checks.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 checksizeof.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checksizeof.cpp => build/mc_checksizeof.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 checkstl.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstl.cpp => build/mc_checkstl.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 checkstring.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkstring.cpp => build/mc_checkstring.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 checktype.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checktype.cpp => build/mc_checktype.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 checkuninitvar.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkuninitvar.cpp => build/mc_checkuninitvar.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 checkunusedfunctions.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedfunctions.cpp => build/mc_checkunusedfunctions.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 checkunusedvar.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkunusedvar.cpp => build/mc_checkunusedvar.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 checkvaarg.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/checkvaarg.cpp => build/mc_checkvaarg.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 clangimport.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/clangimport.cpp => build/mc_clangimport.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 color.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/color.cpp => build/mc_color.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 cppcheck.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/cppcheck.cpp => build/mc_cppcheck.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 ctu.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/ctu.cpp => build/mc_ctu.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 errorlogger.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errorlogger.cpp => build/mc_errorlogger.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 errortypes.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/errortypes.cpp => build/mc_errortypes.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 findtoken.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/findtoken.cpp => build/mc_findtoken.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 forwardanalyzer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/forwardanalyzer.cpp => build/mc_forwardanalyzer.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 fwdanalysis.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/fwdanalysis.cpp => build/mc_fwdanalysis.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 importproject.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/importproject.cpp => build/mc_importproject.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 infer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/infer.cpp => build/mc_infer.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 keywords.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/keywords.cpp => build/mc_keywords.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 library.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/library.cpp => build/mc_library.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 mathlib.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/mathlib.cpp => build/mc_mathlib.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 path.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/path.cpp => build/mc_path.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 pathanalysis.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathanalysis.cpp => build/mc_pathanalysis.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 pathmatch.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/pathmatch.cpp => build/mc_pathmatch.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 platform.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/platform.cpp => build/mc_platform.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 preprocessor.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/preprocessor.cpp => build/mc_preprocessor.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 programmemory.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/programmemory.cpp => build/mc_programmemory.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 regex.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/regex.cpp => build/mc_regex.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 reverseanalyzer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/reverseanalyzer.cpp => build/mc_reverseanalyzer.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 sarifreport.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/sarifreport.cpp => build/mc_sarifreport.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 settings.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/settings.cpp => build/mc_settings.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 standards.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/standards.cpp => build/mc_standards.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 summaries.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/summaries.cpp => build/mc_summaries.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 suppressions.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/suppressions.cpp => build/mc_suppressions.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 templatesimplifier.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/templatesimplifier.cpp => build/mc_templatesimplifier.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 timer.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/timer.cpp => build/mc_timer.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 token.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/token.cpp => build/mc_token.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 tokenlist.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/tokenlist.cpp => build/mc_tokenlist.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 utils.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/utils.cpp => build/mc_utils.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 vf_analyzers.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_analyzers.cpp => build/mc_vf_analyzers.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 vf_common.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_common.cpp => build/mc_vf_common.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 vf_settokenvalue.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vf_settokenvalue.cpp => build/mc_vf_settokenvalue.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 vfvalue.cpp /builddir/build/BUILD/cppcheck-2.22.0-build/cppcheck-2.22.0/lib/vfvalue.cpp => build/mc_vfvalue.cpp [147/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [148/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [149/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [150/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/valueflow.cpp:100: /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/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: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: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: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. [151/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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: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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [154/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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/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. [155/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/check64bit.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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/checkassert.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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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: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: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: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: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: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: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: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: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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/checkbool.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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/checkbufferoverrun.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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/checkcondition.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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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/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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/checkexceptionsafety.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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/checkmemoryleak.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: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; | ^~~~~~~~~~~~~ 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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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; | ^~~~~~~~~~~~~ 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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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; | ^~~~~~~~~~~~~ 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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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: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: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: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; | ^~~~~~~~~~~ /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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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/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: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: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: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: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: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.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.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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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; | ^~~~~~~~~~~~~ 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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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:15: note: result of call to 'operator=' aliases the storage of local variable 'optArg' because the implicit object parameter is inferred as lifetimebound 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: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/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: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; | ^~~~~~~~~~~ 54 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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/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:1372:17: note: later used here 1372 | *unknownFunc = funcname->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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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; | ^~~~~~~~~~~~~ /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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [222/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 && : [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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: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: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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [227/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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: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; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ /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: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; | ~~~~~~~~~~~~~~^~~~~~~~~~~~~ 18 warnings generated. [233/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 && : [234/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: result of call to 'end' aliases the storage of parameter 'libfiles_prio' 354 | for (auto& l : libfiles_prio) | ^ /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: result of call to 'end' aliases the storage of parameter 'extfiles' 359 | for (auto& e : extfiles) | ^ /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. [235/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [236/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [237/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [238/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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [240/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 [241/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [242/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [243/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [244/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [245/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [246/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [247/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [248/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [249/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [250/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [251/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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. [252/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [253/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [254/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [256/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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; | ^~~~~~~~~~~~~ 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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [259/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [266/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [272/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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; | ^~~~~~~~~~~~~ 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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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; | ^~~~~~~~~~~~~ /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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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: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: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/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: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/./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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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/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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [321/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [322/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [323/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [324/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [325/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [326/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [327/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [328/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [329/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [330/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [331/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [333/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [334/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [335/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [336/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [340/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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: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.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.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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [357/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [366/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [367/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [368/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [369/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [370/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [371/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [372/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [373/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [374/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [375/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [376/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [377/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [378/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [379/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [380/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [381/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [382/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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_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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [392/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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 [398/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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. [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [401/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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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 && : [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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -DNDEBUG -Wl,-z,relro -Wl,--as-needed -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.j5ZF0T + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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 -j2 --strict-build-id -m -i --build-id-seed 2.22.0-1.fc46 --unique-debug-suffix -2.22.0-1.fc46.s390x --unique-debug-src-base cppcheck-2.22.0-1.fc46.s390x --run-dwz --dwz-low-mem-die-limit 10000000 --dwz-max-die-limit 50000000 --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.s390x 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 -j2 + /usr/lib/rpm/redhat/brp-python-hardlink + /usr/bin/add-det --brp -j2 /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.DgPZqq + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection ' + 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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -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=z15 -mtune=z17 -fasynchronous-unwind-tables -fstack-clash-protection -I/usr/lib64/gfortran/modules ' + export FCFLAGS + VALAFLAGS=-g + export VALAFLAGS + RUSTFLAGS='-Copt-level=3 -Cdebuginfo=2 -Ccodegen-units=1 -Cstrip=none --cap-lints=warn' + export RUSTFLAGS + LDFLAGS='-Wl,-z,relro -Wl,--as-needed -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 -j2 --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.30 sec Start 51: TestProcessExecutorFS 2/117 Test #51: TestProcessExecutorFS ................ Passed 0.30 sec Start 15: TestCondition 3/117 Test #15: TestCondition ........................ Passed 1.16 sec Start 64: TestStl 4/117 Test #64: TestStl .............................. Passed 0.53 sec Start 73: TestTokenizer 5/117 Test #73: TestTokenizer ........................ Passed 0.24 sec Start 5: TestAutoVariables 6/117 Test #5: TestAutoVariables .................... Passed 0.14 sec Start 77: TestUninitVar 7/117 Test #77: TestUninitVar ........................ Passed 0.24 sec Start 107: cfg-std_c 8/117 Test #107: cfg-std_c ............................ Passed 1.54 sec Start 108: cfg-std_cpp 9/117 Test #108: cfg-std_cpp .......................... Passed 1.97 sec Start 7: TestBufferOverrun 10/117 Test #7: TestBufferOverrun .................... Passed 0.21 sec Start 12: TestClass 11/117 Test #12: TestClass ............................ Passed 0.32 sec Start 29: TestIO 12/117 Test #29: TestIO ............................... Passed 0.86 sec Start 42: TestNullPointer 13/117 Test #42: TestNullPointer ...................... Passed 0.16 sec Start 56: TestSimplifyTemplate 14/117 Test #56: TestSimplifyTemplate ................. Passed 0.11 sec Start 67: TestSuppressions 15/117 Test #67: TestSuppressions ..................... Passed 0.21 sec Start 30: TestLeakAutoVar 16/117 Test #30: TestLeakAutoVar ...................... Passed 0.11 sec Start 61: TestSingleExecutorFS 17/117 Test #61: TestSingleExecutorFS ................. Passed 0.06 sec Start 31: TestLeakAutoVarRecursiveCountLimit 18/117 Test #31: TestLeakAutoVarRecursiveCountLimit ... Passed 0.25 sec Start 44: TestOther 19/117 Test #44: TestOther ............................ Passed 0.40 sec Start 60: TestSingleExecutorFiles 20/117 Test #60: TestSingleExecutorFiles .............. Passed 0.06 sec Start 68: TestSymbolDatabase 21/117 Test #68: TestSymbolDatabase ................... Passed 0.25 sec Start 69: TestThreadExecutorFiles 22/117 Test #69: TestThreadExecutorFiles .............. Passed 0.04 sec Start 70: TestThreadExecutorFS 23/117 Test #70: TestThreadExecutorFS ................. Passed 0.04 sec Start 83: TestValueFlow 24/117 Test #83: TestValueFlow ........................ Passed 1.14 sec Start 102: cfg-posix_c 25/117 Test #102: cfg-posix_c .......................... Passed 0.29 sec Start 112: cfg-wxwidgets_cpp 26/117 Test #112: cfg-wxwidgets_cpp .................... Passed 0.52 sec Start 80: TestUnusedVar 27/117 Test #80: TestUnusedVar ........................ Passed 0.20 sec Start 109: cfg-windows32A 28/117 Test #109: cfg-windows32A ....................... Passed 0.30 sec Start 110: cfg-windows32W 29/117 Test #110: cfg-windows32W ....................... Passed 0.32 sec Start 111: cfg-windows64 30/117 Test #111: cfg-windows64 ........................ Passed 0.31 sec Start 1: Test64BitPortability 31/117 Test #1: Test64BitPortability ................. Passed 0.02 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.04 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.07 sec Start 14: TestColor 41/117 Test #14: TestColor ............................ Passed 0.00 sec Start 16: TestConstructors 42/117 Test #16: TestConstructors ..................... Passed 0.08 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.09 sec Start 25: TestGarbage 51/117 Test #25: TestGarbage .......................... Passed 0.07 sec Start 26: TestImportProject 52/117 Test #26: TestImportProject .................... Passed 0.00 sec Start 27: TestIncompleteStatement 53/117 Test #27: TestIncompleteStatement .............. Passed 0.05 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.05 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.03 sec Start 39: TestMemleakInClass 62/117 Test #39: TestMemleakInClass ................... Passed 0.03 sec Start 40: TestMemleakStructMember 63/117 Test #40: TestMemleakStructMember .............. Passed 0.03 sec Start 41: TestMemleakNoVar 64/117 Test #41: TestMemleakNoVar ..................... Passed 0.03 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.03 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.06 sec Start 58: TestSimplifyTypedef 76/117 Test #58: TestSimplifyTypedef .................. Passed 0.05 sec Start 59: TestSimplifyUsing 77/117 Test #59: TestSimplifyUsing .................... Passed 0.02 sec Start 62: TestSizeof 78/117 Test #62: TestSizeof ........................... Passed 0.03 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.01 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.04 sec Start 78: TestUnusedFunctions 87/117 Test #78: TestUnusedFunctions .................. Passed 0.06 sec Start 79: TestUnusedPrivateFunction 88/117 Test #79: TestUnusedPrivateFunction ............ Passed 0.02 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.06 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.02 sec Start 87: cfg-bsd_c 94/117 Test #87: cfg-bsd_c ............................ Passed 0.02 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.02 sec Start 90: cfg-emscripten_cpp 97/117 Test #90: cfg-emscripten_cpp ................... Passed 0.02 sec Start 91: cfg-gnu_c 98/117 Test #91: cfg-gnu_c ............................ Passed 0.17 sec Start 92: cfg-googletest_cpp 99/117 Test #92: cfg-googletest_cpp ................... Passed 0.02 sec Start 93: cfg-gtk_c 100/117 Test #93: cfg-gtk_c ............................ Passed 0.07 sec Start 94: cfg-kde_cpp 101/117 Test #94: cfg-kde_cpp .......................... Passed 0.02 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.07 sec Start 105: cfg-selinux_c 111/117 Test #105: cfg-selinux_c ........................ Passed 0.02 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.19 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.01 sec Start 116: test-translationhandler 116/117 Test #116: test-translationhandler .............. Passed 0.03 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) = 14.64 sec + RPM_EC=0 ++ jobs -p + exit 0 Processing files: cppcheck-2.22.0-1.fc46.s390x Executing(%doc): /bin/sh -e /var/tmp/rpm-tmp.dyl9uI + 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.98VVyE + 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(s390-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.15)(64bit) libc.so.6(GLIBC_2.2)(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) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2)(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.4)(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.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.s390x Provides: application() application(cppcheck-gui.desktop) cppcheck-gui = 2.22.0-1.fc46 cppcheck-gui(s390-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.2)(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) libgcc_s.so.1()(64bit) libgcc_s.so.1(GCC_3.0)(64bit) libm.so.6()(64bit) libm.so.6(GLIBC_2.2)(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.4)(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.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.s390x Provides: cppcheck-htmlreport = 2.22.0-1.fc46 cppcheck-htmlreport(s390-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.s390x Provides: cppcheck-debugsource = 2.22.0-1.fc46 cppcheck-debugsource(s390-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.s390x Provides: cppcheck-debuginfo = 2.22.0-1.fc46 cppcheck-debuginfo(s390-64) = 2.22.0-1.fc46 debuginfo(build-id) = 5bcbe9c551186f8a2aa69bf358b533cd47f7e114 Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: cppcheck-debugsource(s390-64) = 2.22.0-1.fc46 Processing files: cppcheck-gui-debuginfo-2.22.0-1.fc46.s390x Provides: cppcheck-gui-debuginfo = 2.22.0-1.fc46 cppcheck-gui-debuginfo(s390-64) = 2.22.0-1.fc46 debuginfo(build-id) = 22a9b906f01d2dc425f9e64b0dffbd6f9a635ccb Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 Recommends: cppcheck-debugsource(s390-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-gui-debuginfo-2.22.0-1.fc46.s390x.rpm Wrote: /builddir/build/RPMS/cppcheck-debuginfo-2.22.0-1.fc46.s390x.rpm Wrote: /builddir/build/RPMS/cppcheck-2.22.0-1.fc46.s390x.rpm Wrote: /builddir/build/RPMS/cppcheck-debugsource-2.22.0-1.fc46.s390x.rpm Wrote: /builddir/build/RPMS/cppcheck-htmlreport-2.22.0-1.fc46.s390x.rpm Wrote: /builddir/build/RPMS/cppcheck-gui-2.22.0-1.fc46.s390x.rpm 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-s390x-1790998635.037619/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) 13 minutes 37 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-gui", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "s390x" }, { "name": "cppcheck-debugsource", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "s390x" }, { "name": "cppcheck-debuginfo", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "s390x" }, { "name": "cppcheck-gui-debuginfo", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "s390x" }, { "name": "cppcheck", "epoch": null, "version": "2.22.0", "release": "1.fc46", "arch": "s390x" }, { "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": "s390x" } ] } RPMResults finished