Package: qtcreator Version: 4.14.0-2 Severity: normal X-Debbugs-Cc: m.wegh...@posteo.de
Dear Maintainer, since version 4.14.0-2, Qt Creator's Clang Code Model is unable to find the 'stddef.h' header. It still works OK with version 4.14.0-1. Sample steps to reproduce: * create a simple C++ project with a source file that (directly or indirectly) includes 'stddef.h', e.g. via "File" -> "New File or Project" -> "Plain C++ Application" (or use files from sample project at the end) * open the source file 'main.cpp' * if not present yet, add an '#include <iostream>' or '#include stddef.h' Result: A warning shows up: > Warning: The code model could not parse an included file, which might lead to incorrect code completion and highlighting, for example. > > wchar.h:35:10: error: 'stddef.h' file not found > [...] and the Code Model does not work properly. It works again as expected when downgrading to qtcreator 4.14.0-1. Files for sample project to reproduce the issue: main.cpp: #include <iostream> using namespace std; int main() { cout << "Hello World!" << endl; return 0; } CMakeLists.txt: cmake_minimum_required(VERSION 3.5) project(testp-project LANGUAGES CXX) set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON) add_executable(testp-project main.cpp) -- System Information: Debian Release: bullseye/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 5.10.0-1-amd64 (SMP w/2 CPU threads) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB Shell: /bin/sh linked to /usr/bin/dash Init: systemd (via /run/systemd/system) LSM: AppArmor: enabled Versions of packages qtcreator depends on: ii clang-11 1:11.0.1-2 ii libc6 2.31-9 ii libclang1-11 1:11.0.1-2 ii libdw1 0.182-3 ii libelf1 0.182-3 ii libgcc-s1 10.2.1-3 ii libkf5syntaxhighlighting5 5.77.0-2 ii libqt5concurrent5 5.15.2+dfsg-2 ii libqt5core5a [qtbase-abi-5-15-2] 5.15.2+dfsg-2 ii libqt5designer5 5.15.2-3 ii libqt5designercomponents5 5.15.2-3 ii libqt5gui5 5.15.2+dfsg-2 ii libqt5help5 5.15.2-3 ii libqt5network5 5.15.2+dfsg-2 ii libqt5printsupport5 5.15.2+dfsg-2 ii libqt5qml5 [qtdeclarative-abi-5-15-2] 5.15.2+dfsg-2 ii libqt5quick5 5.15.2+dfsg-2 ii libqt5quickwidgets5 5.15.2+dfsg-2 ii libqt5serialport5 5.15.2-2 ii libqt5sql5 5.15.2+dfsg-2 ii libqt5sql5-sqlite 5.15.2+dfsg-2 ii libqt5svg5 5.15.2-2 ii libqt5widgets5 5.15.2+dfsg-2 ii libqt5xml5 5.15.2+dfsg-2 ii libstdc++6 10.2.1-3 ii libyaml-cpp0.6 0.6.3-9 ii libzstd1 1.4.8+dfsg-1 ii qml-module-qtqml-models2 5.15.2+dfsg-2 ii qml-module-qtquick-controls 5.15.2-2 ii qml-module-qtquick2 5.15.2+dfsg-2 ii qtchooser 66-2 ii qtcreator-data 4.14.0-2 Versions of packages qtcreator recommends: ii clang-tidy 1:11.0-51+nmu1 ii gdb-minimal [gdb] 10.1-1.7 ii gnome-terminal [x-terminal-emulator] 3.38.1-2 ii konsole [x-terminal-emulator] 4:20.12.1-1 ii make 4.3-4 ii qmlscene 5.15.2+dfsg-2 ii qt5-doc 5.15.2-2 ii qt5-qmltooling-plugins 5.15.2+dfsg-2 ii qtbase5-dev-tools 5.15.2+dfsg-2 ii qtcreator-doc 4.14.0-2 ii qtdeclarative5-dev-tools 5.15.2+dfsg-2 ii qttools5-dev-tools 5.15.2-3 ii qttranslations5-l10n 5.15.1-2 ii qtxmlpatterns5-dev-tools 5.15.2-2 Versions of packages qtcreator suggests: pn clazy <none> ii cmake 3.18.4-1+b1 ii g++ 4:10.2.0-1 ii git 1:2.30.0-1 ii meson 0.56.1-1 pn subversion <none> pn valgrind <none> -- no debconf information