aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/utils/sizedarray.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix ICC buildEike Ziller2018-07-021-1/+1
| | | | | | | | | | "error: constexpr constructor must initialize direct base class" Task-number: QTCREATORBUG-20598 Change-Id: Iab2e379b7ed3b0cb7f9b7c654613ec6cd3d91967 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Alexander Shevchenko <sav_ix@ukr.net> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
* Clang: Fix compiler warningsOrgad Shaneh2018-05-081-1/+1
| | | | | | | MSVC64 reported implicit size_t to int/unsigned conversion. Change-Id: I253626dd25f9f3eb67b8fffb26006b619e826034 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Utils: Fix compile with gcc4.9Christian Stenger2018-04-131-1/+1
| | | | | | | | | Otherwise compile fails with constexpr constructor does not have empty body. Broke with 4b0bcbdcb6b28e806de4ba31fa5fecd06fd9188e. Change-Id: I5f058cd4ef11dddb72c8fc88b7184d41f4ffc15a Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Locator filter for the symbol databaseMarco Bubke2018-04-121-0/+7
| | | | | | | | There are no symbol queries for the locator filters. The signature generation is still not implemented but for simple cases it should work. Change-Id: Ic6b04fbe1e7e057892f194ac139615c47d6ec33f Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
* Clang: Helper function to get token IconTypeIvan Donchevskii2018-02-201-0/+8
| | | | | Change-Id: I9de562102eded9391ab0d6b895b8d812e259efd6 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Cleanup IPC codeMarco Bubke2017-06-141-7/+11
| | | | | | Change-Id: I29571801b4093337e2c7cc1eec51cfcd07b3bdc5 Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Utils: Adjust name fillWithZero()Thomas Hartmann2017-03-291-1/+1
| | | | | | | The name was quite missleading. Change-Id: I538eca2a59e8a861e707fecd8331488e1919408a Reviewed-by: David Schulz <david.schulz@qt.io>
* Utils: Use brace initialization instead of constructor and 0Thomas Hartmann2017-03-281-1/+1
| | | | | | | | | Calling T(0) for value types can lead to unexpected results. Using brace initialization ensures we use value initialization or the default constructor. Change-Id: Ic33b186eebb1b37017d425ffca9bcf5d26df31d4 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* TextEditor: Improve speed of hash function for font settingsMarco Bubke2016-06-101-0/+5
| | | | | | | | | | The size of the array is fixed so we can simply use the memory patter as a hash value. Change-Id: If86a58b111a07b2bd9cecc12a03d74b93a914159 Task-number: QTCREATORBUG-16419 Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Utils: Add sized arrayMarco Bubke2016-02-221-0/+117
Sometimes you need a very small array which has a size and max size. QVarLengthArray is simular but has some size and run time overhead and it has no max size. It will instead malloc. So this array is for very small collections under 256 values which never allocate and have only a size overhead of a byte. Change-Id: Ia392c750d566c4accc6077c3dc4d9d4ae501e599 Reviewed-by: Eike Ziller <eike.ziller@theqtcompany.com>