aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/projectexplorer/extracompiler.h
Commit message (Collapse)AuthorAgeFilesLines
* Avoid warning on empty expressionshjk2019-07-231-2/+2
| | | | | | | | For some reason, Q_UNUSED includes already a semicolon, adding one on the user side creates an additional empty statement. Change-Id: I9c5e8fac381345a60792cb75e2938fd53958d3b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Utils: Rename FileName to FilePathhjk2019-05-281-22/+22
| | | | | | | | More in line with QFileInfo terminonlogy which appears to be best-of-breed within Qt. Change-Id: I1d051ff1c8363ebd4ee56376451df45216c4c9ab Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Introduce a alias for QList<Tasks>hjk2019-05-281-2/+2
| | | | | Change-Id: I91391ad22b420926b0f512cac23cfe009048b218 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Observe the cration of extra compilerMarco Bubke2019-02-181-2/+22
| | | | | | | | We link into the extra compiler factory and notify the PchManager for every extra compiler creation. It enables to monitor if all extra compiler finished. Change-Id: If8da386c88909abd2e0e651e4336865c9dc5bf34 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* ProjectExplorer: Modernize even moreTobias Hunger2018-07-241-1/+2
| | | | | | | | Use unique_ptr for all *Private classes, except for those in singletons. Change-Id: Ib56c31ddedc6e9cf321f15de1f1e697a27ad4089 Reviewed-by: Ulf Hermann <ulf.hermann@qt.io>
* ProjectExplorer: Use override consistentlyTobias Hunger2018-05-071-2/+2
| | | | | | | clang-tidy fixes from modernize-use-override check. Change-Id: I216701aec0b4134321e220f9e599e053a8e22945 Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* ProjectExplorer: Remove target/BC listeners from ExtraCompilerUlf Hermann2018-01-091-2/+0
| | | | | | | | | | | | | | When target or build configuration change, the target files that ExtraCompiler checks to see if a rebuild is necessary will be outdated. The project managers recognize that and reinitialize the ExtraCompilers in that case. Thus, we don't need to listen for those changes in ExtraCompiler. This has the added benefit of reducing the number of transparent rebuilds triggered by ExtraCompiler. Change-Id: If8b55f0f5343b221c039d4bd4a8f0c3ab412cc94 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* ProjectExplorer: Use more concise code to register extra compilershjk2017-02-031-1/+1
| | | | | | | | | | | Saves some line noise and a function. (void) new Foo(this); is not really a new pattern in Creator code, but a bit of a new pattern for "registering things". Change-Id: Ie1bb409ed77bc20833fc07ca14715b9ecbc9bd5d Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
* ProjectExplorer: Gracefully abort process upon ExtraCompiler deleteOrgad Shaneh2016-04-071-3/+5
| | | | | | | Task-number: QTCREATORBUG-15993 Change-Id: I9d3bf92a6c2e41bb40a01a1a613f6b98f72cf6be Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ExtraCompiler: Remove stored targets listOrgad Shaneh2016-03-151-5/+11
| | | | | | | | Itereate over the hash keys instead. Change-Id: Ib14bef708b74ed1938bcb985b3a5091aca704391 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com> Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* ExtraCompiler: Run extra compiler in a threadTobias Hunger2016-03-111-3/+56
| | | | | | | | | | | and make sure there are not too many of these threads running at any time. This stops the massive process startup when loading a project with many UI files, etc. Task-number: QTCREATORBUG-15795 Change-Id: Icfcddd80d04e36b61ecafbbefe5a1a8b7ea02ec6 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com> Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
* ExtraCompiler: Store contents as Utf8Orgad Shaneh2016-02-181-2/+2
| | | | | | | Avoid conversions when they're not needed. Change-Id: I7e996bc6e87be4327d75f0d743ff2de38d6ccc32 Reviewed-by: Ulf Hermann <ulf.hermann@theqtcompany.com>
* ProjectExplorer: Allow extra compilers to post compile issuesUlf Hermann2016-02-161-0/+2
| | | | | | | | If we have a text editor for the source document the errors will be highlighted in the editor then. Change-Id: I02ed24783e7079c3d2cb308d8111b399cd77adb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Generalize support for extra compilersUlf Hermann2016-02-161-0/+94
Allow for different extra compilers which may get called to generate additional code for the code model. The build system is expected to know what files are generated from which source file and the extra compilers know how to generate the content of those files, without touching the build directory. the uic adapter is refactored to be the first such extra compiler. The extra compiler is run when an editor for its source document loses focus, or after a timeout of 1s when the source document has been changed. Change-Id: I13c110c61120c812f02639a3684144daf8979b37 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>