summaryrefslogtreecommitdiff
path: root/src/libs/utils/namevaluedictionary.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Utils::Environment: Consider target OS type when sortingChristian Kandeler2019-08-221-12/+12
| | | | | | | | | That is, use case-insensitive sorting on Windows, so that e.g. "Path" will not appear after "PROCESSOR_REVISION". Fixes: QTCREATORBUG-22786 Change-Id: I42d469b6079037d1062dbd5b273f5aa8ade25e79 Reviewed-by: hjk <hjk@qt.io>
* Utils::Environment: Remove another set of duplicate functionsChristian Kandeler2019-08-191-28/+27
| | | | | | | More clean-up after 4bae5de36b. Change-Id: Ia60cb868c464627b42a94d502d301b175449aa17 Reviewed-by: hjk <hjk@qt.io>
* Utils::NameValueDictionary: Use the right path list separatorChristian Kandeler2019-07-301-10/+2
| | | | | | | The environment is not necessarily for the host OS. Change-Id: Ib0b0d3b8447fbb83c3860fb941b5d2445b8585d0 Reviewed-by: hjk <hjk@qt.io>
* Utils: Fix invalid iterator access in NameValueDictionaryChristian Kandeler2019-07-301-1/+5
| | | | | | | | | Introduced by over-eager code optimization in 4d71c0f13e. Fixes: QTCREATORBUG-22783 Change-Id: I2706061f59f5070f2bfa5ac61953b908527065ed Reviewed-by: hjk <hjk@qt.io> Reviewed-by: Denis Shienkov <denis.shienkov@gmail.com>
* Let users disable environment entriesChristian Kandeler2019-07-221-16/+22
| | | | | | | | | It's helpful to be able to temporarily disable environment variables, as opposed to having to remove (and then re-add) them entirely. Fixes: QTCREATORBUG-20984 Change-Id: Ib0d287035b9357507c4c19faaf3a1517382506b5 Reviewed-by: hjk <hjk@qt.io>
* Utils: Remove NameValueDictionary::expandVariables()Christian Kandeler2019-07-151-81/+0
| | | | | | | | These functions were inadvertently copied from the Environment class in 4bae5de36b. Change-Id: Iede8d4b43bd97e8d6d3a0641bd3224e5829fe4b0 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
* Enable macro editing for the Clang indexerMarco Bubke2019-06-131-0/+282
Refactor much of the code from Environment* classes to NameValue* classes to share it with the preprocessor macro settings. Change-Id: Ica4ee817aa338230c422b30d91240d266248d226 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>