<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Prevent codeModel from considering some spaces as Compiler Flags delimiters]]></title><description><![CDATA[<p dir="auto">Linked to the issue I mentionned here: <a href="https://forum.qt.io/post/831373">https://forum.qt.io/post/831373</a></p>
<p dir="auto">This happens on Windows 11, QtCreator 17.0.0, when compiling Qt5  or Qt6 projects.</p>
<p dir="auto">When adding compiler flag using the <code>QMAKE_CXXFLAGS</code> variables they are taken into account by the Code Model but the Code Model seems to always consider spaces as flags delimiters (even when the flag is surrounded by properly escaped double quotes).</p>
<p dir="auto">One usecase we have at my workplace is when using the <code>/external:I</code> from MSVC cl or <code>/imsvc</code> from clang-cl instead if using QtCreator <code>INCLUDEPATH</code> variable. We do that to allow the inclusion of  an external library without having the compiler generate warning from the library's header files. This works fine unless there is a space in the include path.</p>
<p dir="auto">For example if I have <code>QMAKE_CXXFLAGS += /imsvc\"C:/path with spaces /to/include/folder\"</code>, the code will compile and run fine but the code model will split this into 4 flags (<code>/imsvc\"C:/path</code>, <code>with</code>, <code>spaces</code> and <code>/to/include/folder\"</code>) :<br />
<img src="https://ddgobkiprc33d.cloudfront.net/1b4b1823-2977-4739-9d2c-cefb7e091fca.png" alt="83e25b37-b4a8-4039-b813-87b596b1db2a-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">This causes the code model to break itself, consider it is setup  for CXX98 and generates warning everywhere.</p>
<p dir="auto">Is there a way to escape those inner spaces (I tried to put a <code>\</code> in front of the spaces but it doesn't seem to work) or to declare an external include path using a Qt variable ?</p>
]]></description><link>https://forum.qt.io/topic/163198/prevent-codemodel-from-considering-some-spaces-as-compiler-flags-delimiters</link><generator>RSS for Node</generator><lastBuildDate>Fri, 06 Nov 2026 12:36:35 GMT</lastBuildDate><atom:link href="https://forum.qt.io/topic/163198.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 09 Sep 2025 16:04:17 GMT</pubDate><ttl>60</ttl></channel></rss>