summaryrefslogtreecommitdiff
path: root/src/libs/cplusplus/BackwardsScanner.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Replace GPL-3.0 with GPL-3.0-onlyKai Köhne2023-01-101-1/+1
| | | | | | | | | | | | | GPL-3.0 is deprecated by SPDX. Change done by find . -type f -exec perl -pi -e 's/LicenseRef-Qt-Commercial OR GPL-3.0(?!-)/LicenseRef-Qt-Commercial OR GPL-3.0-only/g' {} \; Change-Id: If316a498e3f27d2030b86d4e7743b3237ce09939 Reviewed-by: Lucie Gerard <lucie.gerard@qt.io> Reviewed-by: <github-actions-qt-creator@cristianadam.eu> Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use SPDX license identifiersLucie Gérard2022-08-261-24/+2
| | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. Task-number: QTBUG-67283 Change-Id: I708fd1f9f2b73d60f57cc3568646929117825813 Reviewed-by: Eike Ziller <eike.ziller@qt.io>
* Use positionInBlock in BackwardsScannerJarek Kobus2020-12-181-1/+1
| | | | | Change-Id: I7af777f1ff4d1b93e23462ceaf8b5989b8358d3b Reviewed-by: hjk <hjk@qt.io>
* CppTools: Fix QStringRef and QSharedPointer related issues with Qt6Eike Ziller2020-09-151-2/+4
| | | | | | Task-number: QTCREATORBUG-24098 Change-Id: I97347ac3fb397fea8eee655e3cc4ee252c511885 Reviewed-by: hjk <hjk@qt.io>
* C++: Fix unit-tests for MatchingTextIvan Donchevskii2018-02-221-0/+5
| | | | | | | | BackwardScanner required more investigation and this is the better fix than 413c66ec. Change-Id: I651a7b416b549cc4a0e086873262d04409a7448e Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* C++: Use Utils::transform() in BackwardsScannerOrgad Shaneh2017-04-191-6/+7
| | | | | | Change-Id: Iec2c2db7afd8e5fe463a32c6b5167592cdd7617c Reviewed-by: Laurent Montel <laurent.montel@kdab.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update remaining files in src Change-Id: I1896f17fcf34f71c3310c87899fb5171b8e4afb1 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* C++: Accept language features in BackwardsScanner et alOrgad Shaneh2015-02-271-7/+2
| | | | | Change-Id: Id97ca27fa909979573efca12dc0cd14b28eacd17 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* CPlusPlus: Use QVector<Token> instead of QListhjk2014-11-061-2/+2
| | | | | | | Better suited to avoid the indirection (sizeof(Token) > sizeof(void *)) Change-Id: Ia5f42781e720ef6aa8161f8f81ae8ddd8e58c837 Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* C++: Use Token::utf16chars{Begin,End} where appropriateNikolai Kosjar2014-05-231-6/+6
| | | | | | | | ...especially in CppTools/CppEditor where the offsets are used with a QString/QTextDocument. Change-Id: Ic6d18fbc01fb9cc899a9bd2d7424cd2edae487f1 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* C++: Clarify units of a TokenNikolai Kosjar2014-05-151-6/+6
| | | | | | | | | | | | | This will avoid confusion when later more length and indices methods are added. In Token: length() --> bytes() begin() --> bytesBegin() end() --> bytesEnd() Change-Id: I244c69b022e239ee762b4114559e707f93ff344f Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
* Incremented year in copyright infoRobert Loehning2014-01-081-1/+1
| | | | | | Change-Id: Ib5423fdd064e4546f848c0b640b0ed0514c26d3a Reviewed-by: Leena Miettinen <riitta-leena.miettinen@digia.com> Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* CPlusPlus: Make (sub-)languague selection more generichjk2013-10-151-2/+7
| | | | | Change-Id: I4e2df6992b446adec662ab07671acd41715e41fd Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* fix include style relating to cplusplus librariesOswald Buddenhagen2013-04-031-1/+4
| | | | | | | | | | | ... and adjust INCLUDEPATH accordingly. while i'm at messing with include statements, also re-order the include blocks according to policy and sort them within bigger blocks. Change-Id: I7762abfd7c4ecf59432b99db2f424e4fa25733a5 Reviewed-by: Tobias Hunger <tobias.hunger@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Incremented year in copyright infov2.6.2Robert Loehning2013-01-291-1/+1
| | | | | Change-Id: Ic6a9ff0359625021ebc061d22db6811814534205 Reviewed-by: Kai Koehne <kai.koehne@digia.com>
* Adjust license headershjk2012-10-051-21/+20
| | | | | Change-Id: Ice592c6de9951ee3b2c4cb52ed0bb3b6770e0825 Reviewed-by: Eike Ziller <eike.ziller@digia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Removed module names from #include directives.Erik Verbruggen2012-02-151-1/+1
| | | | | | | | Getting the #include directives ready for Qt5. This includes the new-project wizards. Change-Id: Ia9261f1e8faec06b9285b694d2b7e9a095978d2b Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* all: s/info@qt.nokia.com/qt-info@nokia.com/hjk2011-11-031-2/+2
| | | | | Change-Id: If18afb5d4665924e7d9250dccbc60a65e6daa75e Reviewed-by: Eike Ziller <eike.ziller@nokia.com>
* Fix/add copyright headersTobias Hunger2011-05-061-1/+1
| | | | Change-Id: I8b73d583be1ee7183f4074bce49d5390e38631a2
* Update license.hjk2011-04-131-14/+13
|
* It's 2011 now.con2011-01-121-1/+1
| | | | Reviewed-by: hjk
* License headers.con2010-12-171-7/+11
|
* CppTools: Added skipComments flag.Erik Verbruggen2010-09-091-2/+5
|
* Removing SimpleTokenErik Verbruggen2010-07-021-16/+17
|
* Removed the TokenCache.Erik Verbruggen2010-07-021-33/+26
|
* Introduced token caching to prevent repetetive tokenizing.Erik Verbruggen2010-06-141-29/+34
| | | | | | Also removed TokenUnderCursor as it's functionality is in the token cache. Reviewed-by: ckamm
* Revert "Introduced a token cache for the C++ editor."Erik Verbruggen2010-06-041-27/+26
| | | | This reverts commit c2393df02332618c8cf6159d9d6f6a40041ced89.
* Fixed hidden parameters.Erik Verbruggen2010-06-041-3/+3
|
* Introduced a token cache for the C++ editor.Erik Verbruggen2010-06-041-26/+27
| | | | | This should speed things up a bit, because before, the line was tokenized at least 3 times.
* Fixed `look at symbol under cursor' when symbol is a Qt method (e.g. a signal).Roberto Raggi2010-03-291-1/+1
| | | | Done with: erikv
* Long live the king!hjk2010-03-051-1/+1
|
* Merge remote branch 'origin/1.3'Thorbjørn Lindeijer2009-12-081-5/+7
|\
| * Fixed autoindent when using tabs instead of spacesThorbjørn Lindeijer2009-12-081-5/+7
| | | | | | | | | | | | | | | | Several special cases that are handled by the CPPEditor did not take into account code that was using tab characters. Task-number: QTCREATORBUG-292 Reviewed-by: Roberto Raggi
* | Added scope calculation for Objective-C classes.Erik Verbruggen2009-11-111-0/+1
|/
* Fixed index out of range.Robert Loehning2009-11-021-0/+5
| | | | Reviewed-by: Thorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>
* Added BackwardsScanner::mid(tokenIndex). Mid() returns a substring starting ↵Roberto Raggi2009-09-211-0/+6
| | | | from the position of the given token.
* Made the indenter more Qt friendly. Added support for moc keywords.Roberto Raggi2009-09-211-20/+6
|
* Use the backward scanner to indent labeled statements, ctor-initializers and ↵Roberto Raggi2009-09-211-12/+96
| | | | access specifiers.
* Introduced BackwardsScanner::LA(n). LA(n) returns the n-th lookhead token.Roberto Raggi2009-09-181-3/+8
|
* Automagically insert matching characters.Roberto Raggi2009-09-171-1/+5
|
* Added the helper class MatchingText and use it to automagically insert text ↵Roberto Raggi2009-09-171-4/+63
| | | | for curly braces.
* Added BackwardsScannerRoberto Raggi2009-09-171-0/+105