aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/itemdeclaration.h
Commit message (Collapse)AuthorAgeFilesLines
* Replace 'typedef' with 'using' where it is possibleDenis Shienkov2019-02-231-2/+2
| | | | | | | | One exception is that the 'typedef' for function pointers were skipped due to an additional work is required. Change-Id: I2112fded3abeaee1d1f49f56adfd2914d5db0324 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* Make ItemDeclaration::properties return an actual objectChristian Kandeler2018-02-191-1/+1
| | | | | | | | | ... rather than a const ref. We often call this function on temporary values, in which case using the returned reference triggers undefined behavior. Change-Id: Iac9d6097c20438084640d9f8e425d2a59a9878ce Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Use a sorted vector rather than QSet or std::setChristian Kandeler2017-01-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | ========== Performance data for Resolving ========== Old instruction count: 2324724447 New instruction count: 2317712921 Relative change: -1 % Old peak memory usage: 21411584 Bytes New peak memory usage: 21070552 Bytes Relative change: -2 % ========== Performance data for Rule Execution ========== Old instruction count: 4231322611 New instruction count: 4246208129 Relative change: +0 % Old peak memory usage: 19239000 Bytes New peak memory usage: 18181072 Bytes Relative change: -6 % ========== Performance data for Null Build ========== Old instruction count: 542161499 New instruction count: 505511534 Relative change: -7 % Old peak memory usage: 13599040 Bytes New peak memory usage: 11892952 Bytes Relative change: -13 % Change-Id: I36b3dbd3fd2a4bc7503ee7779d31bd0217000785 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Change style of #includes of Qt headersJake Petroules2017-01-041-2/+2
| | | | | | | | | | | | | | | | By using q<lowercase>.h headers, we become more bootstrap-friendly, as no full syncqt is required any more. In the same go, prefix all includes with the module name. This helps grep-based analysis of which parts of Qt are used and where. It's also consistent with Qt's public headers (where syncqt enforces the style). Testdata and examples are excluded from the change, as they are not relevant for bootstrapping. Change-Id: I9539b1d795e87fca6e5fc6c91acbb775b79208d9 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update license headersIikka Eklund2016-08-291-14/+23
| | | | | | | | | | Patch-set 1 includes *.h Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ib6cf3ac47dfba6dff262fded44bc952aef3bda8b Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* Merge remote-tracking branch 'origin/1.5'Joerg Bornemann2016-06-081-1/+1
|\ | | | | | | | | | | | | | | Conflicts: doc/reference/items/transformer.qdoc share/qbs/modules/cpp/GenericGCC.qbs Change-Id: I45560834560019b18274c373c45651eb8aadd206
| * Replace 'the Qt build suite' with 'Qbs' in copyright notices.Jake Petroules2016-06-061-1/+1
| | | | | | | | | | | | Change-Id: I885d94bb14b325dc36767a840ebdb0be1fb59dd2 Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io> Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Support deprecation info for items.Christian Kandeler2016-05-111-0/+5
| | | | | | | | | | | | | | This feature was only available for properties so far. Change-Id: I871962ac141ff7ee527ad95a116b1e35d2490b4c Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* | Remove unneeded copy constructor from ItemDeclaration class.Christian Kandeler2016-05-101-1/+0
|/ | | | | Change-Id: I76278985d63ea109d7a494e98a0825318ab432f7 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Give the Item class a proper type attribute.Christian Kandeler2015-08-141-5/+6
| | | | | | | | | | | | This replaces both the m_flags member and conceptually also the m_typeName one. We still keep the latter, but do not change it anymore when resolving item inheritance; this makes for potentially somewhat nicer error messages. As a side effect, project resolving becomes slightly faster, presumably due to having to do fewer string comparisons. Change-Id: Ieeea0eca74c4cf744b005730efeccf5ebc44589b Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* Fix compile errors causes by header cleanup.Christian Kandeler2015-07-301-0/+2
| | | | | Change-Id: I9f7bea17b70466b1e84721f3a03f723b8f3b5cae Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
* update license headersJoerg Bornemann2015-03-021-2/+2
| | | | | Change-Id: I36d825db3a5ef32c162c3063aab1e8a1f2696f4f Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Update LicenseEike Ziller2015-01-261-6/+6
| | | | | Change-Id: I092fca9f950de1ba38826c33b155f86feae2770b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* License update.Eike Ziller2014-10-161-7/+8
| | | | | | | Add LGPLv3 option. Change-Id: I8a63ad5e46a2701032b2103f791df4dec5b707e8 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Move Qt profile setup into a dedicated library.Christian Kandeler2014-01-101-0/+67
Otherwise all changes to the implementation will have to be duplicated in IDEs. Change-Id: I61e6d4fa1ee9b724eb5d9de9f233dc915a6c8bc3 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>