summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/compileroptionsbuilder_test.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Merge CppTools into CppEditorChristian Kandeler2021-09-011-681/+0
| | | | | | | | | | | | | | | | There was no proper separation of responsibilities between these plugins. In particular, CppTools had lots of editor-related functionality, so it's not clear why it was separated out in the first place. In fact, for a lot of code, it seemed quite arbitrary where it was put (just one example: switchHeaderSource() was in CppTools, wheras switchDeclarationDefinition() was in CppEditor). Merging the plugins will enable us to get rid of various convoluted pseudo-abstractions that were only introduced to keep up the artificial separation. Change-Id: Iafc3bce625b4794f6d4aa03df6cddc7f2d26716a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Add convenience functions for creating ProjectExplorer::HeaderPathsChristian Kandeler2021-08-301-7/+4
| | | | | Change-Id: I7b1f63caca6b70ba4ec1b1870b83cbf20aa6564a Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppTools: Use only const pointers for ProjectInfo and ProjectPartChristian Kandeler2021-08-271-1/+1
| | | | | | | | All members were already const, but this makes it clear at all points of use that these data structures are immutable. Change-Id: Iea615c090bde462c445d15223caccc561b0c713d Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* CppTools: Use test objects to group related test functionsChristian Kandeler2021-08-261-84/+85
| | | | | Change-Id: I9ed2ad222579f49c20c75a53c862bb7251cff28d Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppTools: Fix testsChristian Kandeler2021-08-161-3/+3
| | | | | | | | | | - Prevent invalid access to temporary. - Fix typo. - Use accidentally unused class member. Amends 33108795d6. Change-Id: I2cc91e294fb4be7f4e20b383171b06a39f53c99c Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* CppTools: Turn some classes into pure value typesChristian Kandeler2021-08-131-136/+163
| | | | | | | | | | | | | ProjectInfo, ProjectPart and ProjectUpdateInfo used to carry pointers to Project and/or Toolchain, even though they were used in contexts where these pointers were either unsafe to access or not guaranteed to be valid anymore, which made their use difficult and error-prone. We turn these classes into pure value types by copying in all relevant information before the first async operation takes place. Fixes: QTCREATORBUG-25678 Change-Id: I1914b0dbda6c7dfba6c95e5e92f2d69977755590 Reviewed-by: Jarek Kobus <jaroslaw.kobus@qt.io>
* CppTools: Remove some unneeded name qualifications in converted testsChristian Kandeler2021-07-211-163/+100
| | | | | Change-Id: Ib14f576d0502adde56e8c8b0af0c5d95fae1eddf Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* CppTools: Move CompilerOptionsBuilder tests to pluginChristian Kandeler2021-07-021-0/+719
... where they belong. Change-Id: Ifc6aebc218f9f85ffeb6a4b7121f97379b53b69d Reviewed-by: Christian Stenger <christian.stenger@qt.io>