summaryrefslogtreecommitdiff
path: root/tests/auto/cplusplus/misc/tst_misc.cpp
Commit message (Collapse)AuthorAgeFilesLines
* C++: Fix crash with invalid raw string literalNikolai Kosjar2017-09-201-0/+13
| | | | | | | | | | | | | | | | While parsing a document Bind::asStringLiteral() Token::spell() was called for a raw string literal token with a Token::literal nullptr. This is due scanRawStringLiteral() not properly aborting for invalid/incomplete code and that the code paths handling multi-line-raw-strings were not limited to the highlighting case. Address both cases. Task-number: QTCREATORBUG-18941 Change-Id: I489d288ccbd7b59be396dada846613ff555436cf Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Remove spaces in initializer listsTim Jenssen2017-02-221-1/+1
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update license information in tests directory Change-Id: I311441dd37d053ca3175e44b284258e232ee93e0 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* C++: Match const/volatile/signed/unsigned for FullySpecifiedTypeOrgad Shaneh2016-01-151-0/+27
| | | | | | | | | | | | Changing a function signature from const to non-const is not recognized as a changed, and doesn't trigger the "Apply Function Signature Changes" quickfix. For example: void func(Foo &var); void func(Foo &var) {} // Add const before Foo, quickfix is not triggered Change-Id: I71ae41765d66df69204abd085fdfcfcb2d605f4c Reviewed-by: Nikolai Kosjar <nikolai.kosjar@theqtcompany.com>
* C++: Do not let ASTPath calculate line/column for generated tokensNikolai Kosjar2015-07-311-0/+42
| | | | | | | | | | | | | | | | | | | | | | | | | ASTPath uses TranslationUnit::getPosition(), which returns reasonable results for: 1. non-expanded tokens 2. expanded but not generated tokens The expanded *and* generated tokens case is not handled since there is no reasonable mapping from generated tokens to a continuous line/column information. Consider: #define DECLARE_FOO int foo; // Multiple generated tokens DECLARE_FOO // ...can be mapped to this line, but to which columns? Since the result where not valid for the expanded and generated case, ASTPath took the wrong branches. Avoid this by skipping generated tokens. Change-Id: I33a2e0f62917f87d691b19feaeef67b09ea8d563 Task-number: QTCREATORBUG-13386 Task-number: QTCREATORBUG-13390 Reviewed-by: Joerg Bornemann <joerg.bornemann@theqtcompany.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* Update LicenseEike Ziller2015-01-161-6/+6
| | | | | Change-Id: I711d5fb475ef814a1dc9d2822740e827f3f67125 Reviewed-by: Alessandro Portale <alessandro.portale@digia.com>
* License updateEike Ziller2014-10-091-7/+8
| | | | | Change-Id: I3c22ef2685d7aa589f5d0ab74d693653a4c32082 Reviewed-by: Alessandro Portale <alessandro.portale@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>
* CDB: fix breakpoint location in catch clauses.Erik Verbruggen2013-07-021-1/+29
| | | | | | | | | | Task-number: QTCREATORBUG-7336 Change-Id: I926e82499325e4fe38e25cc7a6158050f7fc0e82 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com> Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Nikolai Kosjar <nikolai.kosjar@digia.com>
* fix include style relating to cplusplus librariesOswald Buddenhagen2013-04-031-3/+2
| | | | | | | | | | | ... 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>
* rename QtDebug to QDebughjk2012-08-061-1/+1
| | | | | | | More uniform. Change-Id: I1c6057981f4c2b3170a4e69f0674fe4caf1143a2 Reviewed-by: Robert Loehning <robert.loehning@nokia.com>
* Contact -> qt-project.orgEike Ziller2012-07-191-3/+1
| | | | | Change-Id: I7134d7de30bcf9f9dcfad42520dd45ee083a852d Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@nokia.com>
* Revert "Editor: Highlight background for whitespaces in strings and comments"David Schulz2012-02-031-112/+0
| | | | | | | | The change brokes the Lexer. This reverts commit e46a5579d368162034813cc4b27d8d5c9f0716d9. Change-Id: I3363c6eff74b53a7f2d9f417941cde07aaa92619 Reviewed-by: Leandro Melo <leandro.melo@nokia.com>
* Editor: Highlight background for whitespaces in strings and commentsDavid Schulz2012-02-011-0/+112
| | | | | | | | | | The whitespaces are now highlighted with the same backgroundcolor as the characters. Also added a test for the Lexer. Task-number: QTCREATORBUG-5802 Change-Id: Ic1bcd8cfe30d6b8a0281b7963eaab310f972b9d2 Reviewed-by: Roberto Raggi <roberto.raggi@nokia.com>
* Long live the king!hjk2012-01-261-1/+1
| | | | | Change-Id: I2b72b34c0cfeafc8bdbaf49b83ff723544f2b6e2 Reviewed-by: Daniel Teske <daniel.teske@nokia.com>
* C++: Rename source/setSource to utf8Source/setUtf8SourceLeandro Melo2012-01-131-4/+4
| | | | | | | | Continuinng a previous commit... This is in order to make the interface clearer. Change-Id: Ic1b05217f878578bc84a064927507b75981c47d6 Reviewed-by: Roberto Raggi <roberto.raggi@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>
* CDB breakpoints: Fix line adjustment in case statements.Christian Kamm2011-10-041-3/+36
| | | | | | | Task-number: QTCREATORBUG-6207 Change-Id: I4df50a412dd960a0d53a824a6c4a93712bd743e8 Reviewed-on: http://codereview.qt-project.org/5964 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@nokia.com>
* Fixed (C)opyright headers.Erik Verbruggen2011-07-061-1/+1
| | | | | | | Change-Id: I755bdd1788770b7edd34f06372219d27abd0af11 Reviewed-on: http://codereview.qt.nokia.com/1214 Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com> Reviewed-by: Tobias Hunger <tobias.hunger@nokia.com>
* Fix test compile.Friedemann Kleint2011-05-091-1/+1
|
* Class to find breakpoint positions for CDB.Erik Verbruggen2011-05-091-0/+57
| | | | Reviewed-by: Friedemann Kleint
* Update license.hjk2011-04-131-14/+13
|
* tests: add licence headersBill King2011-02-181-0/+34
|
* Added tests for the DiagnosticClient.Erik Verbruggen2011-02-171-0/+58