aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/corelib/language/resolvedfilecontext.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Make JsImports an std::vectorJoerg Bornemann2017-03-221-1/+2
| | | | | | | JsImport is too big for being kept efficiently in a QList. Change-Id: I8bfc68a44d0feea498435b78a3d2de9977351857 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
* PersistentPool: Prevent access to raw data streamChristian Kandeler2016-12-161-15/+2
| | | | | | | | | | | | | | Instead, we employ our now-generic load/store interface for all serialization operations. The advantages are two-fold: 1) It can no longer happen that carelessly written store() functions mistakenly dump unshared strings into the build graph, as it has happened several times in the past. 2) We get rid of enormous amounts of custom code dealing with container (de)serialization. All of this is now done centrally by a handful of templates in PersistentPool. Change-Id: Ib1262da50989edda9726abd7d5a8ffdceaa0ec76 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Fully templatize the PersistentPool classChristian Kandeler2016-12-151-10/+10
| | | | | | | | | | | The old implementation was a wild mix of templates, overloads and, worst of all, implicit assumptions about the types of container items. This combination made it close to impossible to add support for serializing generic containers. Now we have a sensible interface that we can build upon. Change-Id: I82806eaf535c16fc861bededf1b06c681d2128c0 Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
* Update license headersIikka Eklund2016-08-291-14/+23
| | | | | | | | | | Patch-set 2 includes *.cpp *.c Every source file needs to have up-to-date license headers in order to pass ci. Change-Id: Ie6e493097af6f7dd6a8adff170eb856f496e689e Reviewed-by: Jake Petroules <jake.petroules@qt.io>
* 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>
* update license headersJoerg Bornemann2015-03-021-2/+2
| | | | | Change-Id: I36d825db3a5ef32c162c3063aab1e8a1f2696f4f Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* Merge branch '1.3' into 'master'Christian Kandeler2015-01-281-6/+6
|\ | | | | | | | | | | | | | | | | Conflicts: doc/reference/jsextensions/jsextensions-general.qdoc src/lib/corelib/language/evaluatorscriptclass.cpp src/lib/corelib/language/evaluatorscriptclass.h Change-Id: Ic9b77b56e8fc8bf93e0a553930757de8c93fed22
| * Update LicenseEike Ziller2015-01-261-6/+6
| | | | | | | | | | Change-Id: I092fca9f950de1ba38826c33b155f86feae2770b Reviewed-by: Christian Kandeler <christian.kandeler@theqtcompany.com>
* | Merge branch '1.3' into masterChristian Kandeler2014-12-191-2/+2
|\| | | | | | | | | | | | | Conflicts: share/qbs/modules/cpp/gcc.js Change-Id: I3bd9d7fe03a76c7439650d78c94255db56ecab75
| * Fix ResolvedFileContext comparison.Christian Kandeler2014-12-151-2/+2
| | | | | | | | | | | | | | The order of JS extensions and imports does not matter. Change-Id: I452e8e6e64f588b061211031968d5741c01339d8 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com>
* | Merge remote-tracking branch 'origin/1.3'Joerg Bornemann2014-10-161-7/+8
|\| | | | | | | | | | | | | | | Conflicts: qbs_version.pri version.js Change-Id: I645b2f37bae9d36d4bca54b267d57df8b0b7fd21
| * License update.Eike Ziller2014-10-161-7/+8
| | | | | | | | | | | | | | Add LGPLv3 option. Change-Id: I8a63ad5e46a2701032b2103f791df4dec5b707e8 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* | More string sharing in the build graph.Christian Kandeler2014-10-151-17/+15
|/ | | | | | | This reduces the size of the build graph by another ~30%. Change-Id: Ic796df8cfe7c150a86aef3de70f6280b296d0399 Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
* Fix equality operators.Christian Kandeler2014-08-291-4/+0
| | | | | | | | | | | The Standard does not allow to dereference null pointers, even if that reference is then only used to compare the pointer values. So introduce a wrapper function that does the pointer-related checks first. Task-number: QBS-674 Change-Id: I9a14b4871b91102699f09ed922b9ab0e0265209a Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
* store search paths in file contextJoerg Bornemann2014-02-281-0/+2
| | | | | | | This will be needed for loading extensions from JS files. Change-Id: I1810a5d6afc0427904c2b7502ff4dc91e9507a48 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* give FileContext and ResolvedFileContext a common baseJoerg Bornemann2014-02-281-9/+14
| | | | | Change-Id: I76f0e5e0b9f99a6f33c3381436ee6c4879e36a68 Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>
* move ResolvedFileContext to separate filesJoerg Bornemann2014-02-281-0/+79
Change-Id: I066ea8aa826c254de82b9591ab4b6eec23665b0d Reviewed-by: Christian Kandeler <christian.kandeler@digia.com>