summaryrefslogtreecommitdiff
path: root/src/plugins/clangpchmanager
Commit message (Collapse)AuthorAgeFilesLines
...
* Clang: Introduce CompilerMacroMarco Bubke2018-02-152-6/+7
| | | | | | | | We want not only the name but the value of the macro too. So we can compare if anything has changed. Change-Id: Ie59caf8cbf54d108f9e15299d25306a406b5c40d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Rename defineName in macroNameMarco Bubke2018-02-012-3/+3
| | | | | Change-Id: Iaf8da991032e5ed4726384c051290a77887351fa Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Add defineName to ProjectPartMarco Bubke2018-02-012-0/+12
| | | | | | | We need them later to find out if the defines have changes. Change-Id: Iaaa14df3dc6f50cb286c2dac37db13c975063c1e Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: On the road to update and preprocessor supportMarco Bubke2018-01-296-15/+37
| | | | | | | | | | | | | | | | | This patch has grown in a quite big change set and it is really hard to divide it in different parts. V2::ProjectPartContainer is now using FileIds instead of file paths. This cleans code up because it is a big step in the direction that internally only file ids are used. But it is depending on the file cache, so the file cache has to be provided as an argument. There is now an interface for transactions too which are ease the testing of them and enables the support of preprocessor. It adds macros as symbols and is saving used macros. The used macro support is enabling update improvements because only if a changed macro is used it needs to be recompiled. This is still in flux and can be changed in later patches. Change-Id: I492a2c9af1201d40fdd9f46a0045f7878bbbaa3d Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Store the database in user resourcesMarco Bubke2017-11-291-0/+4
| | | | | | | | | We used temporary directories but this can be different paths. Task-number: QTCREATORBUG-19372 Change-Id: Id6ac18e6eecdc5bb354bda3741e16cb87c552ba6 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Move QLocalServer in ConnectionClientMarco Bubke2017-11-282-11/+23
| | | | | | | | | | | Before the QLocalServer was in the ConnectionServer so more than one client could connect to the server. But we never used that possibility which made the hand shaking much more difficult. It is now moved in the client, so that there is always a QLocalServer. Change-Id: Ifa357074b0c0809434c49d23b1cee38496f72f43 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Merge remote-tracking branch 'origin/4.5'Eike Ziller2017-10-251-0/+48
|\ | | | | | | Change-Id: Iceaa4ca40b5318744bde8a76c6d3ccca08df71bb
| * Add qbs project files for some clang-related tools and pluginsChristian Kandeler2017-10-231-0/+48
| | | | | | | | | | | | | | | | Change-Id: I4882be50c6b007715f7b281f95d111abc5cda62a Reviewed-by: David Schulz <david.schulz@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Jake Petroules <jake.petroules@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* | CppTools: merge CompilerOptionsBuilder with Clang oneIvan Donchevskii2017-10-231-4/+4
|/ | | | | | | Since it's never used for other compilers. Change-Id: I9512692d1dc9f9a701ea2453b7d50005478bed5d Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Unify compiler options buildersIvan Donchevskii2017-09-221-29/+3
| | | | | | | | Make build command the same for all builders. Minimize differences. Change-Id: I1cfe5071b3afb4944ed178fff1e57d3aee45d8a9 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Clang: Add Symbol IndexingMarco Bubke2017-09-148-58/+155
| | | | | | | | | It is a first step and now a database is generated if you start QtCreator. Some code is now shared with the PchManager which can be improved in the future. Change-Id: Ic267fe7960f6c455d91832859a673ce98f269aa2 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Merge remote-tracking branch 'origin/4.4'Orgad Shaneh2017-08-301-1/+1
|\ | | | | | | Change-Id: I9ab2c68d2bd07b0dd89051a2f5f6fa51676d8594
| * Fix copyright year in plugin info, --version, and macOS infoEike Ziller2017-08-241-1/+1
| | | | | | | | | | | | | | | | By using the new QTCREATOR_COPYRIGHT_YEAR variable Task-number: QTCREATORBUG-18612 Change-Id: I3bcf0319660d210436d3130c00f43325c460a66c Reviewed-by: Kai Koehne <kai.koehne@qt.io>
* | Utils: Convert to SmallStringView for comparisonMarco Bubke2017-08-292-2/+2
| | | | | | | | | | Change-Id: I38d9716225b81091e8e75b26c9c2258a2aefa987 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* | Clang: Rename library clangbackendipc to clangsupportMarco Bubke2017-08-291-1/+1
|/ | | | | | | | We already share same classes there which has nothing to do with IPC and I want to more for sharing. So we should use a name which fits better. Change-Id: Idfb12b6de714206117b92634ad719c6a0e290e78 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Fix clang refactoring enablingMarco Bubke2017-07-201-0/+2
| | | | | Change-Id: Icdd539c4e537e5aab55943010055c9719dd622fe Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Improve speed by content generationMarco Bubke2017-02-162-8/+35
| | | | | | | | The argument parsing has some considerable overhead. We try to avoid that with merging all content together in one file. Change-Id: Icf426bb5d6a5569d59c180f94c7eab66a22a251c Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* ClangCodeModel: fix link error with MinGW based buildKonstantin Podsvirov2017-02-081-3/+1
| | | | | | | | | | | | | | | For MinGW clang link library named: liblibclang.dll.a. Changes: - improved clang library search algorithm; - use clang_defines.pri in clangpchmanager.pro. Task-number: QTCREATORBUG-17680 Change-Id: Ic01fa86238b980991726eeb984ccd82afb333c35 Reviewed-by: Kai Koehne <kai.koehne@qt.io> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Fix spelling of unitttest_publicMarco Bubke2017-02-031-1/+1
| | | | | Change-Id: Id90dbfe30bb1f1c147299c4ac8cd210dbe7d8b82 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Handle generated filesMarco Bubke2017-02-013-31/+119
| | | | | | | We don't handled generated files so we got internal parse errors. Change-Id: If75e202f93fe3f71f43e3b1d15c0fb77e20c2248 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* Clang: Add ClangPchManagerMarco Bubke2017-01-3017-0/+960
Compiling every header file again and again is quite time comsuming. There are technics to improve this like preambles(a kind of automated precompiled header) but they don't share their data between translation units. This approach provides an automatically generated precompiled header for every project and subproject to improve the loading time. Change-Id: I34f5bd4db21951175920e2a9bbf6b97b1d705969 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>