- 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>
-
Nikolai Kosjar authored
Making CompilerOptionsBuilder to use the toolchain from the project part simplifies its public API, but following the code paths initiated by ClangCodeModel and ClangStaticAnalyzer gets harder, so better enable the separation of those by making CompilerOptionsBuilder a base class. Change-Id: I0a6bb3f8323ba09b88135a7f9d1ef967331a8ff0 Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
- Jun 26, 2015
-
-
Nikolai Kosjar authored
Makes the client code more readable. Change-Id: Ie98ba93c758643039d3ebdc7550b1c4ac9473298 Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com> Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com>
-
- Jun 03, 2015
-
-
Nikolai Kosjar authored
This led to an invalid command line ("-x" without further argument). Change-Id: I8cfe1a8a29789fba426b61fe3702496d8089db6b Reviewed-by:
Marco Bubke <marco.bubke@theqtcompany.com>
-
- Apr 14, 2015
-
-
Christian Kandeler authored
This was curiously missing from the CompilerFlag enum, so e.g. setting "QMAKE_CXXFLAGS += -std=c++98" in a .pro file did not have the desired effect on higher-level code such as the code model. Change-Id: Ia4323b699a2ccea9d3cbde10b05affe87d955277 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com> Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com>
-
- Mar 05, 2015
-
-
Friedemann Kleint authored
Change-Id: I0144ac33e88980c431c54a6d69bbde28da4b1967 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- Feb 20, 2015
-
-
Orgad Shaneh authored
Task-number: QTCREATORBUG-8007 Change-Id: Ic96aaa433442812a99bac9d16bb9124d66762e8c Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- Feb 09, 2015
-
-
Nikolai Kosjar authored
Change-Id: Icf53019b594a5c45b06f7f1fab0f4bf36e891918 Reviewed-by:
Orgad Shaneh <orgads@gmail.com>
-
- Feb 04, 2015
-
-
Orgad Shaneh authored
Mostly done using the following ruby script: Dir.glob('**/*.cpp').each { |file| next if file =~ %r{src/shared/qbs|/qmljs/} s = File.read(file) s.scan(/^using namespace (.*);$/) { ns = $1 t = s.gsub(/^(.*)\b#{ns}::((?!Const)[A-Z])/) { |m| before = $1 char = $2 if before =~ /"|\/\/|\\|using|SIGNAL|SLOT|Q_/ m else before + char end } if t != s puts file File.open(file, 'w').write(t) end } } Change-Id: I6fbe13ddc1485efe95c3156097bf41d90c0febac Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
Nikolai Kosjar authored
...since by now we get the defines in the correct format from QMakeProject. See the change this one depends on. Tested with: Qbs: cpp.defines: [ 'PATH1="/some/path"', "PATH2=\"/some/path\"" ] QMake: DEFINES += PATH1=\\\"/some/path\\\" "PATH2=\\\"/some/path\\\"" CMake: add_definitions(-DPATH1="/some/path" "-DPATH2=\"/some/path\"") All these lines translate to #define PATH1 "/some/path" #define PATH2 "/some/path" for the code model. Change-Id: Ifc3d3acff3abab6897ccbd0c5fafd5c415dfb53c Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- Feb 03, 2015
-
-
Christian Kandeler authored
Change-Id: I8b677fc82672ca5fd36bae18480467ef95201dcc Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- Jan 29, 2015
-
-
Christian Kandeler authored
Not all defines make sense for non-compilation purposes. Change-Id: I7c5dd5aaa6de5c8916dfc10eb54ae49efa22959d Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- Jan 27, 2015
-
-
Christian Kandeler authored
"#define XYZ" does not correspond to "-DXYZ" (which means "#define XYZ 1"), but to "-DXYZ=". Change-Id: I3ed44e1457b3df52dc9bdb930ba8f4a04784d207 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- Jan 26, 2015
-
-
Christian Kandeler authored
Needed for clang static analyzer. Change-Id: I0221b7e87f7b52a4aa5ebf7f4b26c19e584d63e7 Reviewed-by:
Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
-
- Jan 16, 2015
-
-
Eike Ziller authored
Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-
- Jan 06, 2015
-
-
Nikolai Kosjar authored
The active target might be 0 if e.g. there are not kits and a project is imported. Task-number: QTCREATORBUG-13730 Change-Id: I48ade507fefc555d1d3f8230ba82c00270fa457b Reviewed-by:
Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by:
Eike Ziller <eike.ziller@theqtcompany.com>
-
- Dec 19, 2014
-
-
Nikolai Kosjar authored
...instead of going through CppModelManager::projectInfo(). Now CppModelManager::projectInfo() returns an invalid ProjectInfo in case there is no valid data for the given Project. Change-Id: I11908bf2ddf865b1d3d71ff176eaf4139292b21c Reviewed-by:
Christian Kandeler <christian.kandeler@theqtcompany.com> Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- Nov 20, 2014
-
-
Christian Stenger authored
Task-number: QTCREATORBUG-13137 Change-Id: I71a222a4048db65db462da07726ea5d6b917da8d Reviewed-by:
Erik Verbruggen <erik.verbruggen@theqtcompany.com>
-
- Nov 07, 2014
-
-
Nikolai Kosjar authored
Analyzers can use this to rule out irrelevant (sub) projects. Change-Id: I5a9eb66f06156f0619dc639f6f4080a8fc761ee6 Reviewed-by:
Daniel Teske <daniel.teske@theqtcompany.com>
-
Nikolai Kosjar authored
...and make some comparison functions public. Change-Id: If4c9a95031dece32073ce111484a890230190688 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-
- Nov 06, 2014
-
-
Nikolai Kosjar authored
This one does not buy us much... Change-Id: I1d6c4667c038d319d2c16166505a386653a9f066 Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@theqtcompany.com>
-
- Oct 30, 2014
-
-
Nikolai Kosjar authored
Change-Id: Ib346359487cb06c0fc95ff5796e9dd6f220b9d16 Reviewed-by:
Christian Stenger <christian.stenger@digia.com>
-
- Oct 20, 2014
-
-
Nikolai Kosjar authored
Most of the functions were quite generic and not specific to clang. Change-Id: I160cfeb7eca5b69ad6a8932a4f76db5bf5c1d42d Reviewed-by:
Fawzi Mohamed <fawzi.mohamed@digia.com>
-
- Oct 15, 2014
-
-
Eike Ziller authored
Change-Id: I0acde2c3b995693de682679471f03af85bdd0a61 Reviewed-by:
Alessandro Portale <alessandro.portale@digia.com>
-