- Oct 23, 2017
-
-
Nikolai Kosjar authored
Change-Id: I9ee553f29fa7a7f60291e2d7d2a56062dc722b9d Reviewed-by:
Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- Sep 22, 2017
-
-
Ivan Donchevskii authored
Make build command the same for all builders. Minimize differences. Change-Id: I1cfe5071b3afb4944ed178fff1e57d3aee45d8a9 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- Sep 14, 2017
-
-
Marco Bubke authored
The old code model expected the macros as C++ formatted text ("#define Foo 42) but newer targets like the Clang codemodel expect key value arguments like "-DFoo=42". So instead of parsing the text again and again we use an abstract data description. Task-number: QTCREATORBUG-17915 Change-Id: I0179fd13c48a581e91ee79bba9d42d501c26f19f Reviewed-by:
Tobias Hunger <tobias.hunger@qt.io>
-
- Jul 17, 2017
-
-
Christian Kandeler authored
... and make use of it. With gcc 7, the new option -Wimplicit-fallthrough is introduced and added to the -Wextra set, triggering dozens of warnings in our sources. Therefore, we annotate all obviously intended fall-throughs. The ones that are still left are unclear and need to be checked by the respective maintainer. Change-Id: I44ead33cd42a4b41c28ee5fcb5a31db272710bbc Reviewed-by:
Nikita Baryshnikov <nib952051@gmail.com> Reviewed-by:
hjk <hjk@qt.io> Reviewed-by:
Eike Ziller <eike.ziller@qt.io>
-
- Jun 21, 2017
-
-
Ivan Donchevskii authored
Add extra define not to include intrinsic headers from boost headers. Task-number: QTCREATORBUG-16439 Change-Id: I887fe63e2560afebdbe9f3d3587f99f95d408997 Reviewed-by:
Marco Bubke <marco.bubke@qt.io> Reviewed-by:
Orgad Shaneh <orgads@gmail.com> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- Jun 20, 2017
-
-
Orgad Shaneh authored
There is an argument of this type in std_abs.h. void argument is invalid. Replacing with float, double or long double causes an error in type_traits, which has template specializations for __is_floating_point_helper for all these types. Change-Id: Ife95fa992cbf9684bc67a2098d6609a9a925d015 Reviewed-by:
Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- Jun 16, 2017
-
-
Nikolai Kosjar authored
...for things to watch out on an upgrade. Change-Id: I75b77a3c8fa238939b625d084c7db220ab429319 Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- Feb 22, 2017
-
-
Tim Jenssen authored
Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by:
hjk <hjk@qt.io>
-
- Feb 02, 2017
-
-
There was no way to determine whether ProjectFile::classify() was run or not. Now, ProjectFile::classify() returns ProjectFile::Unsupported instead of ProjectFile::Unclassified. Change-Id: I660d0e42044bdefcac38058c6f4a3425983a6d93 Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- Dec 13, 2016
-
-
Nikolai Kosjar authored
Change-Id: Ia7969ceb52ffb25e7c63b24bc33b091001e9b50a Reviewed-by:
David Schulz <david.schulz@qt.io>
-
- Nov 16, 2016
-
-
Denis Klychkov authored
Task-number: QTCREATORBUG-15590 Change-Id: Icbfce4ffd6e9f9802641d35d898fa1dc1c4c18ee Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@qt.io>
-
- Nov 01, 2016
-
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-17183 Change-Id: I24321cd97acfa3dd71a3682f14af4816bdd08059 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io> Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
Nikolai Kosjar authored
Task-number: QTCREATORBUG-17185 Change-Id: I72552bcd417c9760413b772593642e3c79f1ab17 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
- Oct 18, 2016
-
-
Nikolai Kosjar authored
...for -std=gnu++0x. Define the unknown identifier/type "__float128" so at least the headers can be parsed successfully. Of course this does not help for parsing client code referencing that identifier, but this should be the less common case. Task-number: QTCREATORBUG-17126 Change-Id: Id321311713029d8aa77e068b02361d86debfada6 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
Nikolai Kosjar authored
Same as for the Clang Static Analyzer, so move the implementation into the base class and use it. This has gone unnoticed so far because it looks like that the error diagnostic from the bug report can be extracted with libclang (as shown in the info bar), but is not printed from libclang or clang.exe itself. Change-Id: I5b714ba374c5fdefe234faf012a3515e96c9a08c Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
Nikolai Kosjar authored
...by specifying the word width, as for the Clang Static Analyzer. This has gone unnoticed so far because it looks like that the error diagnostic from the bug report can be extracted with libclang (as shown in the info bar), but is not printed from libclang or clang.exe itself. Task-number: QTCREATORBUG-17130 Change-Id: Ia7a5ee3825c7211cdf80c2166a9eb454ce48cac1 Reviewed-by:
David Schulz <david.schulz@qt.io> Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
Nikolai Kosjar authored
libclang generated: warning: /U__cpp_aggregate_nsdmi: 'linker' input unused [-Wunused-command-line-argument] warning: /U__cpp_alias_templates: 'linker' input unused [-Wunused-command-line-argument] ... It needs -U. Change-Id: Ibbd2f97e6f806215e3008803f57608b9b6b4c641 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
- Oct 17, 2016
-
-
Nikolai Kosjar authored
...because it might suggest to append a new line. Change-Id: I8d5701a1d20c9d94ee528383227a6e3b446b4ff2 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
Nikolai Kosjar authored
Change-Id: I473c737107c14a4bc2c78b7c697eef02eb4bacff Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
Nikolai Kosjar authored
...otherwise e.g. MSVC's "/I" option will be converted to "\I". Change-Id: Ia01519ee5c942d0f3cdd32c4302055d0e58fb865 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
- Oct 13, 2016
-
-
Nikolai Kosjar authored
Ignore the include path for intrinsics coming from the toolchain. The clang static analyzer comes with its own intrinsics and does not cope well with intrinsics from other clang versions. Move the relevant implementation from LibClangOptionsBuilder into the base class so that ClangStaticAnalyzer profits from this, too. Task-number: QTCREATORBUG-17102 Change-Id: Id9a28ddebb889c862939332dce888a80b3bb7e63 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
- Jul 07, 2016
-
-
Nikolai Kosjar authored
Re-produce with: 1) Open qt-essential-includes.pro and configure it with a Qt 5.7.0 MSVC2013 64 Bit Kit. 2) Run the analyzer. Errors during analyzing occur in winnt.h [1]. This is somehow related to /D__int32=long that we pass on. Removing it helps. It looks like there is no reason anymore to pass on the toolchain defines with clang-3.8 at all. Our unit test projects can be parsed by the analyzer without them. Tested with the following kits: Qt 5.6.0 (mingw39_32) Qt 5.6.0 (msvc2013) Qt 5.6.0 (msvc2013_64) Qt 5.6.0 (msvc2015) Qt 5.6.0 (msvc2015_64) Qt 5.7.0 (mingw53_32) Qt 5.7.0 (msvc2013) Qt 5.7.0 (msvc2013_64) Qt 5.7.0 (msvc2015) Qt 5.7.0 (msvc2015_64) [1] In file included from D:\dev\creator\creator-4.1\src\plugins\clangstaticanalyzer\unit-tests\qt-essential-includes\main.cpp:2: In file included from D:/usr/qt-5.7.0-msvc2013_64/5.7/msvc2013_64/include/QtGui\QtGui:32: In file included from D:/usr/qt-5.7.0-msvc2013_64/5.7/msvc2013_64/include/QtGui/qopenglcontext.h:60: In file included from D:/usr/qt-5.7.0-msvc2013_64/5.7/msvc2013_64/include\QtGui/qopengl.h:49: In file included from D:/usr/qt-5.7.0-msvc2013_64/5.7/msvc2013_64/include\QtCore/qt_windows.h:61: In file included from C:\Program Files (x86)\Windows Kits\8.1\include\um\windows.h:164: In file included from C:\Program Files (x86)\Windows Kits\8.1\include\shared\windef.h:24: In file included from C:\Program Files (x86)\Windows Kits\8.1\include\shared\minwindef.h:182: C:\Program Files (x86)\Windows Kits\8.1\include\um\winnt.h(3077,1) : error: functions that differ only in their return type cannot be overloaded __getcallerseflags ( ^ D:\dev\llvm\3.8\changingLibClang_install\bin\..\lib\clang\3.8.1\include\intrin.h(68,14) : note: previous declaration is here unsigned int __getcallerseflags(void); ~~~~~~~~ ^ 1 error generated. Change-Id: I2de8d0393a575f88dd59dfa71fbfb11f2debc158 Reviewed-by:
Christian Kandeler <christian.kandeler@qt.io>
-
- Jul 04, 2016
-
-
Nikolai Kosjar authored
libclang 3.8 seems to be sensitive to file paths separators [1]. On Windows, this led to not updated document annotations and/or crashes after reparsing. When passing file paths to libclang, convert to native separators. When getting file paths from libclang, convert back. This handles: * main file path * file paths of the unsaved files * -I<DIR> arguments, the resource path (for builtins) and the paths to the wrapped qt headers * included header files from libclang * source locations from libclang Also, minimize the conversion in SourceLocation to a minimum by making filePath() lazy. [1] https://llvm.org/bugs/show_bug.cgi?id=28381 Change-Id: If5866f34a6fdc6b34b16c022d3988e8e6eae2a0a Reviewed-by:
Christian Stenger <christian.stenger@qt.io>
-
- Apr 13, 2016
-
-
Nikolai Kosjar authored
For some reason, clang 3.8.0 on Windows does not enable exceptions anymore, which leads to parse errors in MSVC headers (reported upstream [1]). With this change, we can finally parse main/mainwindow.cpp of a Qt Widgets Application for a MSVC2015 Kit and libclang 3.8.0 without any error. [1] https://llvm.org/bugs/show_bug.cgi?id=27324 Change-Id: I532ad4852a06318baf083d363378bc577b3c4309 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
- Apr 12, 2016
-
-
Nikolai Kosjar authored
This applies the following change for the clang code model, too. commit d13d1795 Clang Static Analyzer: Workaround analyzing MSVC2015 projects with clang 3.8.0 II Change-Id: Ia229d7e8b24c2e1c0a83d9a53c623ea1f79c4a06 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
Nikolai Kosjar authored
Infer the version from the _MSC_FULL_VER macro, so it cannot get out of sync with that. Adapt the analyzer to do the same. Based on commit daf08d87 Clang Static Analyzer: Workaround analyzing MSVC2015 projects with clang 3.8.0 Change-Id: I9d34abdbe2c83fe271eadd8d051caad43aca6772 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
- Apr 11, 2016
-
-
Nikolai Kosjar authored
As for the analyzer, this makes us independent of the default triple and will most likely reduce the maintenance - e.g. the target implies certain internal command line arguments, we will profit from added ones. This fixes parsing of mingw headers with the clang code model. Change-Id: I722b981125a80fac5f62a7af40a83ecdd7bbf811 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
- Mar 04, 2016
-
-
Nikolai Kosjar authored
Change-Id: Ib501b40870f71a552b0bd38fa4977b450fd37954 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
- Jan 19, 2016
-
-
Tobias Hunger authored
* Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
- Jan 13, 2016
-
-
Marco Bubke authored
Change-Id: I503ffd72a98db6668f6449ce95e695e035a79a29 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
Change-Id: I0aa65ec6c80dcd437f13ff70021388b0da57ccfd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
Change-Id: I0fc4c73553a29585d4ff7c8d6593acb6975d1607 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Marco Bubke authored
Also extracting inline HeaderPath class and change projects list in vector because the size is larger than a pointer. Change-Id: I885fdff3fe9bccc877634d1615249755f5b674fd Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- Nov 23, 2015
-
-
Nikolai Kosjar authored
Change-Id: If183b6d2210028f74dae839db782114ce79911c4 Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- Nov 11, 2015
-
-
Nikolai Kosjar authored
...since it assumes a project part != 0 and does not participate in ownership. Change-Id: Ia9c1eca52776990576a2dac61e9144234b04c59c Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- Aug 03, 2015
-
-
Nikolai Kosjar authored
Tested with clang 3.6. Change-Id: Icd2383bd03b91837b3129045e9ab78a1620efd02 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- Jul 20, 2015
-
-
Nikolai Kosjar authored
Change-Id: Ic928380f711e58008ed66691137c238598a5c26a Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- Jul 14, 2015
-
-
Tobias Hunger authored
Change-Id: I56f5b7373846bb091456c050eb1ff3495ca2dd72 Reviewed-by:
Daniel Teske <daniel.teske@theqtcompany.com>
-
Tobias Hunger authored
Change-Id: I8fc68c266acb55a7c3e014697a7b526784914f7a Reviewed-by:
Daniel Teske <daniel.teske@theqtcompany.com>
-
- Jun 29, 2015
-
-
Nikolai Kosjar authored
Now the ClangCodeModel makes also use of this. Change-Id: I3d547dffe48e35d3b3d03063bc1a640283d670c1 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-