Details
-
Bug
-
Resolution: Duplicate
-
P3: Somewhat important
-
None
-
Qt Creator 4.10.0, Qt Creator 4.10.1, Qt Creator 4.10.2
-
None
-
{noformat}
Qt 5.13.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb"
OS: Ubuntu 18.04.3 LTS [linux version 5.0.0-37-generic]
Architecture: x86_64; features: SSE2 SSE3
Environment:
QT_ACCESSIBILITY="1"
QT_QPA_PLATFORMTHEME="gtk2"
QT_STYLE_OVERRIDE="gtk2"
Features: QT_NO_EXCEPTIONS
Library info:
PrefixPath: /opt/Qt/Tools/QtCreator/lib/Qt
DocumentationPath: /opt/Qt/Tools/QtCreator/lib/Qt/doc
HeadersPath: /opt/Qt/Tools/QtCreator/lib/Qt/include
LibrariesPath: /opt/Qt/Tools/QtCreator/lib/Qt/lib
LibraryExecutablesPath: /opt/Qt/Tools/QtCreator/lib/Qt/libexec
BinariesPath: /opt/Qt/Tools/QtCreator/lib/Qt/bin
PluginsPath: /opt/Qt/Tools/QtCreator/lib/Qt/plugins
ImportsPath: /opt/Qt/Tools/QtCreator/lib/Qt/imports
Qml2ImportsPath: /opt/Qt/Tools/QtCreator/lib/Qt/qml
ArchDataPath: /opt/Qt/Tools/QtCreator/lib/Qt
DataPath: /opt/Qt/Tools/QtCreator/lib/Qt
TranslationsPath: /opt/Qt/Tools/QtCreator/lib/Qt/translations
ExamplesPath: /opt/Qt/Tools/QtCreator/lib/Qt/examples
TestsPath: /opt/Qt/Tools/QtCreator/lib/Qt/tests
SettingsPath: /opt/Qt/Tools/QtCreator/lib/Qt
Standard paths [*...* denote writable entry]:
DesktopLocation: "Desktop" */home/zarand/Рабочий стол*
DocumentsLocation: "Documents" */home/zarand/Документы*
FontsLocation: "Fonts" */home/zarand/.local/share/fonts* /home/zarand/.fonts /usr/share/enlightenment/fonts /usr/local/share/fonts /usr/share/fonts /var/lib/snapd/desktop/fonts
ApplicationsLocation: "Applications" */home/zarand/.local/share/applications* /usr/share/enlightenment/applications /usr/local/share/applications /usr/share/applications /var/lib/snapd/desktop/applications
MusicLocation: "Music" */home/zarand/Музыка*
MoviesLocation: "Movies" */home/zarand/Видео*
PicturesLocation: "Pictures" */home/zarand/Изображения*
TempLocation: "Temporary Directory" */tmp*
HomeLocation: "Home" */home/zarand*
AppLocalDataLocation: "Application Data" */home/zarand/.local/share/QtProject/qtdiag* /usr/share/enlightenment/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag
CacheLocation: "Cache" */home/zarand/.cache/QtProject/qtdiag*
GenericDataLocation: "Shared Data" */home/zarand/.local/share* /usr/share/enlightenment /usr/local/share /usr/share /var/lib/snapd/desktop
RuntimeLocation: "Runtime" */run/user/1000*
ConfigLocation: "Configuration" */home/zarand/.config* /usr/etc/xdg /etc/xdg/xdg-enlightenment /etc/xdg
DownloadLocation: "Download" */home/zarand/Загрузки*
GenericCacheLocation: "Shared Cache" */home/zarand/.cache*
GenericConfigLocation: "Shared Configuration" */home/zarand/.config* /usr/etc/xdg /etc/xdg/xdg-enlightenment /etc/xdg
AppDataLocation: "Application Data" */home/zarand/.local/share/QtProject/qtdiag* /usr/share/enlightenment/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag
AppConfigLocation: "Application Configuration" */home/zarand/.config/QtProject/qtdiag* /usr/etc/xdg/QtProject/qtdiag /etc/xdg/xdg-enlightenment/QtProject/qtdiag /etc/xdg/QtProject/qtdiag
File selectors (increasing order of precedence):
ru_RU unix linux ubuntu
Network:
Using "OpenSSL 1.1.1 11 Sep 2018", version: 0x1010100f
Platform capabilities: ThreadedPixmaps OpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition
Style hints:
mouseDoubleClickInterval: 400
mousePressAndHoldInterval: 800
startDragDistance: 10
startDragTime: 500
startDragVelocity: 0
keyboardInputInterval: 400
keyboardAutoRepeatRate: 30
cursorFlashTime: 1000
showIsFullScreen: 0
showIsMaximized: 0
passwordMaskDelay: 0
passwordMaskCharacter: U+25CF
fontSmoothingGamma: 1.7
useRtlExtensions: 0
setFocusOnTouchRelease: 0
tabFocusBehavior: Qt::TabFocusAllControls
singleClickActivation: 0
Additional style hints (QPlatformIntegration):
ReplayMousePressOutsidePopup: 0
Theme:
Platforms requested : enlightenment,generic
available : gtk3,snap,flatpak,xdgdesktopportal
Styles requested : Fusion,Windows
available : Windows,Fusion
System font : "Sans Serif" 9
Fonts:
General font : "Sans Serif" 9
Fixed font : "monospace" 9
Title font : "DejaVu Sans" 12
Smallest font: "DejaVu Sans" 12
Palette:
QPalette::WindowText: #ff000000
QPalette::Button: #ffefefef
QPalette::Light: #ffffffff
QPalette::Midlight: #ffcbcbcb
QPalette::Dark: #ff9f9f9f
QPalette::Mid: #ffb8b8b8
QPalette::Text: #ff000000
QPalette::BrightText: #ffffffff
QPalette::ButtonText: #ff000000
QPalette::Base: #ffffffff
QPalette::Window: #ffefefef
QPalette::Shadow: #ff767676
QPalette::Highlight: #ff308cc6
QPalette::HighlightedText: #ffffffff
QPalette::Link: #ff0000ff
QPalette::LinkVisited: #ffff00ff
QPalette::AlternateBase: #fff7f7f7
QPalette::NoRole: #ff000000
QPalette::ToolTipBase: #ffffffdc
QPalette::ToolTipText: #ff000000
QPalette::PlaceholderText: #80000000
Screens: 2, High DPI scaling: inactive
# 0 "DVI-I-1" Depth: 24 Primary: yes
Manufacturer: Samsung Electric Company
Model: S24D300-
Serial number: 809585224
Geometry: 1920x1080+0+0 Available: 1920x1080+0+0
Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
2 virtual siblings
Physical size: 531x299 mm Refresh: 60 Hz Power state: 0
Physical DPI: 91.8418,91.7458 Logical DPI: 96,96 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
# 1 "HDMI-1" Depth: 24 Primary: no
Manufacturer: Samsung Electric Company
Model: S24D300-
Serial number: 809585224
Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0
Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0
2 virtual siblings
Physical size: 531x299 mm Refresh: 60 Hz Power state: 0
Physical DPI: 91.8418,91.7458 Logical DPI: 96,96 Subpixel_None
DevicePixelRatio: 1 Pixel density: 1
Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0
LibGL Vendor: nouveau
Renderer: NVD9
Version: 4.3 (Compatibility Profile) Mesa 19.0.8
Shading language: 4.30
Format: Version: 4.3 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8
Profile: None (QOpenGLFunctions_4_3), Core (QOpenGLFunctions_4_3_Core), Compatibility (QOpenGLFunctions_4_3_Compatibility)
Unable to create a Vulkan instance, error code is0
Failed to load vulkan: Cannot load library vulkan: (vulkan: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога)
initInstance: No Vulkan library available
Failed to create platform Vulkan instance
Plugin information:
Android 4.10.2
AutoTest 4.10.2
+ AutotoolsProjectManager 4.10.2
BareMetal 4.10.2
Bazaar 4.10.2
Beautifier 4.10.2
+ BinEditor 4.10.2
+ Bookmarks 4.10.2
+ CMakeProjectManager 4.10.2
CVS 4.10.2
ClangCodeModel 4.10.2
ClangFormat 4.10.2
ClangPchManager 4.10.2
ClangRefactoring 4.10.2
+ ClangTools 4.10.2
+ ClassView 4.10.2
ClearCase 4.10.2
CodePaster 4.10.2
+ CompilationDatabaseProjectManager 4.10.2
+ Core 4.10.2
+ CppEditor 4.10.2
+ CppTools 4.10.2
+ Cppcheck 4.10.2
+ Debugger 4.10.2
Designer 4.10.2
+ DiffEditor 4.10.2
EmacsKeys 4.10.2
+ FakeVim 4.10.2
GLSLEditor 4.10.2
+ GenericProjectManager 4.10.2
+ Git 4.10.2
HelloWorld 4.10.2
+ Help 4.10.2
ImageViewer 4.10.2
Ios 4.10.2
LanguageClient 4.10.2
Macros 4.10.2
Mercurial 4.10.2
ModelEditor 4.10.2
Nim 4.10.2
+ PerfProfiler 4.10.2
Perforce 4.10.2
+ ProjectExplorer 4.10.2
+ PythonEditor 4.10.2
QbsProjectManager 4.10.2
+ QmakeProjectManager 4.10.2
QmlDesigner 4.10.2
QmlJSEditor 4.10.2
QmlJSTools 4.10.2
QmlPreview 4.10.2
QmlProfiler 4.10.2
QmlProjectManager 4.10.2
Qnx 4.10.2
+ QtSupport 4.10.2
RemoteLinux 4.10.2
+ ResourceEditor 4.10.2
ScxmlEditor 4.10.2
+ SerialTerminal 4.10.2
SilverSearcher 4.10.2
StudioWelcome 4.10.2
Subversion 4.10.2
TaskList 4.10.2
+ TextEditor 4.10.2
+ Todo 4.10.2
UpdateInfo 4.10.2
+ Valgrind 4.10.2
+ VcsBase 4.10.2
+ Welcome 4.10.2
WinRt 4.10.2
Qt Creator 4.10.2
Based on Qt 5.13.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit)
From revision 7c61e936ce
Built on Nov 4 2019 04:13:24
{noformat}{noformat} Qt 5.13.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by GCC 5.3.1 20160406 (Red Hat 5.3.1-6)) on "xcb" OS: Ubuntu 18.04.3 LTS [linux version 5.0.0-37-generic] Architecture: x86_64; features: SSE2 SSE3 Environment: QT_ACCESSIBILITY="1" QT_QPA_PLATFORMTHEME="gtk2" QT_STYLE_OVERRIDE="gtk2" Features: QT_NO_EXCEPTIONS Library info: PrefixPath: /opt/Qt/Tools/QtCreator/lib/Qt DocumentationPath: /opt/Qt/Tools/QtCreator/lib/Qt/doc HeadersPath: /opt/Qt/Tools/QtCreator/lib/Qt/include LibrariesPath: /opt/Qt/Tools/QtCreator/lib/Qt/lib LibraryExecutablesPath: /opt/Qt/Tools/QtCreator/lib/Qt/libexec BinariesPath: /opt/Qt/Tools/QtCreator/lib/Qt/bin PluginsPath: /opt/Qt/Tools/QtCreator/lib/Qt/plugins ImportsPath: /opt/Qt/Tools/QtCreator/lib/Qt/imports Qml2ImportsPath: /opt/Qt/Tools/QtCreator/lib/Qt/qml ArchDataPath: /opt/Qt/Tools/QtCreator/lib/Qt DataPath: /opt/Qt/Tools/QtCreator/lib/Qt TranslationsPath: /opt/Qt/Tools/QtCreator/lib/Qt/translations ExamplesPath: /opt/Qt/Tools/QtCreator/lib/Qt/examples TestsPath: /opt/Qt/Tools/QtCreator/lib/Qt/tests SettingsPath: /opt/Qt/Tools/QtCreator/lib/Qt Standard paths [*...* denote writable entry]: DesktopLocation: "Desktop" */home/zarand/Рабочий стол* DocumentsLocation: "Documents" */home/zarand/Документы* FontsLocation: "Fonts" */home/zarand/.local/share/fonts* /home/zarand/.fonts /usr/share/enlightenment/fonts /usr/local/share/fonts /usr/share/fonts /var/lib/snapd/desktop/fonts ApplicationsLocation: "Applications" */home/zarand/.local/share/applications* /usr/share/enlightenment/applications /usr/local/share/applications /usr/share/applications /var/lib/snapd/desktop/applications MusicLocation: "Music" */home/zarand/Музыка* MoviesLocation: "Movies" */home/zarand/Видео* PicturesLocation: "Pictures" */home/zarand/Изображения* TempLocation: "Temporary Directory" */tmp* HomeLocation: "Home" */home/zarand* AppLocalDataLocation: "Application Data" */home/zarand/.local/share/QtProject/qtdiag* /usr/share/enlightenment/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag CacheLocation: "Cache" */home/zarand/.cache/QtProject/qtdiag* GenericDataLocation: "Shared Data" */home/zarand/.local/share* /usr/share/enlightenment /usr/local/share /usr/share /var/lib/snapd/desktop RuntimeLocation: "Runtime" */run/user/1000* ConfigLocation: "Configuration" */home/zarand/.config* /usr/etc/xdg /etc/xdg/xdg-enlightenment /etc/xdg DownloadLocation: "Download" */home/zarand/Загрузки* GenericCacheLocation: "Shared Cache" */home/zarand/.cache* GenericConfigLocation: "Shared Configuration" */home/zarand/.config* /usr/etc/xdg /etc/xdg/xdg-enlightenment /etc/xdg AppDataLocation: "Application Data" */home/zarand/.local/share/QtProject/qtdiag* /usr/share/enlightenment/QtProject/qtdiag /usr/local/share/QtProject/qtdiag /usr/share/QtProject/qtdiag /var/lib/snapd/desktop/QtProject/qtdiag AppConfigLocation: "Application Configuration" */home/zarand/.config/QtProject/qtdiag* /usr/etc/xdg/QtProject/qtdiag /etc/xdg/xdg-enlightenment/QtProject/qtdiag /etc/xdg/QtProject/qtdiag File selectors (increasing order of precedence): ru_RU unix linux ubuntu Network: Using "OpenSSL 1.1.1 11 Sep 2018", version: 0x1010100f Platform capabilities: ThreadedPixmaps OpenGL WindowMasks MultipleWindows ForeignWindows NonFullScreenWindows NativeWidgets WindowManagement SyncState RasterGLSurface SwitchableWidgetComposition Style hints: mouseDoubleClickInterval: 400 mousePressAndHoldInterval: 800 startDragDistance: 10 startDragTime: 500 startDragVelocity: 0 keyboardInputInterval: 400 keyboardAutoRepeatRate: 30 cursorFlashTime: 1000 showIsFullScreen: 0 showIsMaximized: 0 passwordMaskDelay: 0 passwordMaskCharacter: U+25CF fontSmoothingGamma: 1.7 useRtlExtensions: 0 setFocusOnTouchRelease: 0 tabFocusBehavior: Qt::TabFocusAllControls singleClickActivation: 0 Additional style hints (QPlatformIntegration): ReplayMousePressOutsidePopup: 0 Theme: Platforms requested : enlightenment,generic available : gtk3,snap,flatpak,xdgdesktopportal Styles requested : Fusion,Windows available : Windows,Fusion System font : "Sans Serif" 9 Fonts: General font : "Sans Serif" 9 Fixed font : "monospace" 9 Title font : "DejaVu Sans" 12 Smallest font: "DejaVu Sans" 12 Palette: QPalette::WindowText: #ff000000 QPalette::Button: #ffefefef QPalette::Light: #ffffffff QPalette::Midlight: #ffcbcbcb QPalette::Dark: #ff9f9f9f QPalette::Mid: #ffb8b8b8 QPalette::Text: #ff000000 QPalette::BrightText: #ffffffff QPalette::ButtonText: #ff000000 QPalette::Base: #ffffffff QPalette::Window: #ffefefef QPalette::Shadow: #ff767676 QPalette::Highlight: #ff308cc6 QPalette::HighlightedText: #ffffffff QPalette::Link: #ff0000ff QPalette::LinkVisited: #ffff00ff QPalette::AlternateBase: #fff7f7f7 QPalette::NoRole: #ff000000 QPalette::ToolTipBase: #ffffffdc QPalette::ToolTipText: #ff000000 QPalette::PlaceholderText: #80000000 Screens: 2, High DPI scaling: inactive # 0 "DVI-I-1" Depth: 24 Primary: yes Manufacturer: Samsung Electric Company Model: S24D300- Serial number: 809585224 Geometry: 1920x1080+0+0 Available: 1920x1080+0+0 Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0 2 virtual siblings Physical size: 531x299 mm Refresh: 60 Hz Power state: 0 Physical DPI: 91.8418,91.7458 Logical DPI: 96,96 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 # 1 "HDMI-1" Depth: 24 Primary: no Manufacturer: Samsung Electric Company Model: S24D300- Serial number: 809585224 Geometry: 1920x1080+1920+0 Available: 1920x1080+1920+0 Virtual geometry: 3840x1080+0+0 Available: 3840x1080+0+0 2 virtual siblings Physical size: 531x299 mm Refresh: 60 Hz Power state: 0 Physical DPI: 91.8418,91.7458 Logical DPI: 96,96 Subpixel_None DevicePixelRatio: 1 Pixel density: 1 Primary orientation: 2 Orientation: 2 Native orientation: 0 OrientationUpdateMask: 0 LibGL Vendor: nouveau Renderer: NVD9 Version: 4.3 (Compatibility Profile) Mesa 19.0.8 Shading language: 4.30 Format: Version: 4.3 Profile: 2 Swap behavior: 0 Buffer size (RGB): 8,8,8 Profile: None (QOpenGLFunctions_4_3), Core (QOpenGLFunctions_4_3_Core), Compatibility (QOpenGLFunctions_4_3_Compatibility) Unable to create a Vulkan instance, error code is0 Failed to load vulkan: Cannot load library vulkan: (vulkan: невозможно открыть разделяемый объектный файл: Нет такого файла или каталога) initInstance: No Vulkan library available Failed to create platform Vulkan instance Plugin information: Android 4.10.2 AutoTest 4.10.2 + AutotoolsProjectManager 4.10.2 BareMetal 4.10.2 Bazaar 4.10.2 Beautifier 4.10.2 + BinEditor 4.10.2 + Bookmarks 4.10.2 + CMakeProjectManager 4.10.2 CVS 4.10.2 ClangCodeModel 4.10.2 ClangFormat 4.10.2 ClangPchManager 4.10.2 ClangRefactoring 4.10.2 + ClangTools 4.10.2 + ClassView 4.10.2 ClearCase 4.10.2 CodePaster 4.10.2 + CompilationDatabaseProjectManager 4.10.2 + Core 4.10.2 + CppEditor 4.10.2 + CppTools 4.10.2 + Cppcheck 4.10.2 + Debugger 4.10.2 Designer 4.10.2 + DiffEditor 4.10.2 EmacsKeys 4.10.2 + FakeVim 4.10.2 GLSLEditor 4.10.2 + GenericProjectManager 4.10.2 + Git 4.10.2 HelloWorld 4.10.2 + Help 4.10.2 ImageViewer 4.10.2 Ios 4.10.2 LanguageClient 4.10.2 Macros 4.10.2 Mercurial 4.10.2 ModelEditor 4.10.2 Nim 4.10.2 + PerfProfiler 4.10.2 Perforce 4.10.2 + ProjectExplorer 4.10.2 + PythonEditor 4.10.2 QbsProjectManager 4.10.2 + QmakeProjectManager 4.10.2 QmlDesigner 4.10.2 QmlJSEditor 4.10.2 QmlJSTools 4.10.2 QmlPreview 4.10.2 QmlProfiler 4.10.2 QmlProjectManager 4.10.2 Qnx 4.10.2 + QtSupport 4.10.2 RemoteLinux 4.10.2 + ResourceEditor 4.10.2 ScxmlEditor 4.10.2 + SerialTerminal 4.10.2 SilverSearcher 4.10.2 StudioWelcome 4.10.2 Subversion 4.10.2 TaskList 4.10.2 + TextEditor 4.10.2 + Todo 4.10.2 UpdateInfo 4.10.2 + Valgrind 4.10.2 + VcsBase 4.10.2 + Welcome 4.10.2 WinRt 4.10.2 Qt Creator 4.10.2 Based on Qt 5.13.2 (GCC 5.3.1 20160406 (Red Hat 5.3.1-6), 64 bit) From revision 7c61e936ce Built on Nov 4 2019 04:13:24 {noformat}
Description
QtCreator doesn't consistently apply the Additional Preprocessor Directives (e.g. Tools -> C++ -> Additional Preprocessor Directives, or the `#` icon at the top of an editor window) when parsing a file. The file is parsed as if the additional directives aren't present.
For example, if you have `#define FOO` in the additional preprocessor directives and your file has a `#ifdef FOO` section, what that section will be greyed out and symbols defined in it won't be searchable.
One reliable way to trigger this problem is:
- Open a file with a `#ifdef FOO` section in the editor (can be any symbol, doesn't have to be `FOO` specifically).
- Add `#define FOO` to the Additional Preprocessor Symbols for the file
The ifdef'd section in the file is now grayed out, even though the `#define FOO` is still there in the additional preprocessor directives.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-20423 Add custom macro support for Clang Code Model
-
- Closed
-