<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 23, 2016 at 7:51 AM, Jason A. Donenfeld <span dir="ltr"><<a href="mailto:Jason@zx2c4.com" target="_blank">Jason@zx2c4.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(A) Qt Creator doesn't seem to parse the C correctly. Things like<br>
designated initializers and a few other C features here and there just<br>
don't get parsed correctly, and the IDE stops being useful. I suspect<br>
this is because things are actually being parsed in C++ mode. Bummer.<br>
Developers: any interest in improving C support in Qt Creator?<br></blockquote><div><br></div><div>Which version do you use? Designated initializers support was added in 3.2 (<wbr>c56b999ffff249d4cb7dc7e8026a32<wbr>97b63ff56d).</div><div><br></div><div>I now see that the members are not detected correctly (for e.g. Find Usages), but parsing looks ok.</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">(B) There is no way to tell Qt Creator that a particular header file<br>
is included in every file -- that is, that gcc's "-include" is in use.<br>
There is a way of messing with the "C++ Code Model" on a file-by-file<br>
basis, for the duration of the time that the file is open, but no way<br>
to automatically have it included in every file of the project. This<br>
is a major hindrance. It means that every ifdef for every kconfig<br>
option is a grayed out unclickable region, rendering most things<br>
useless. Developers: any interest in fixing this? I spoke to a few of<br>
you in IRC several months ago about this, and there was interest, but<br>
it seems to have evaporated.<br></blockquote><div><br></div><div>You can set PRECOMPILED_HEADER = header.h in your pro file. It should be applied to all sources.</div><div><br></div><div>- OrgadĀ </div></div><br></div></div>