summaryrefslogtreecommitdiff
path: root/src/plugins/cpptools/cppcompletionassistprocessor.cpp
Commit message (Collapse)AuthorAgeFilesLines
* CppTools: modernizeAlessandro Portale2019-01-211-3/+1
| | | | | | Change-Id: Iaf02e4d026f1ac8b216833d83cd7a735e21ff60a Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
* CppTools: Do not auto-trigger completion after '{' and '(' in the new lineIvan Donchevskii2018-09-031-1/+4
| | | | | | | | | | There's no token before the first symbol in the line. With no information it's better to avoid triggering automatic completion after the first token. Change-Id: I9d3aca3bf72485c6eca6e03d9b8691abf0492bcc Reviewed-by: Eike Ziller <eike.ziller@qt.io> Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Clang: Fix completion after '{'Ivan Donchevskii2018-08-301-0/+21
| | | | | | | | | | | | | Follow-up fix for 8d0391a4f9. Do not complete after '{' coming not after an identifier. Take constructor completions only for '{' and function completions only for '('. Filter constructor completions by class/struct type. Task-number: QTCREATORBUG-21004 Change-Id: I7ae2d6bee23cf907648c42b93eb12742942833f6 Reviewed-by: Marco Bubke <marco.bubke@qt.io>
* Remove spaces in initializer listsTim Jenssen2017-02-221-7/+7
| | | | | | | Format initializer lists code style like. Change-Id: Ib82c235e4ba7dc75ee96a7abc0c47eff7b0a9013 Reviewed-by: hjk <hjk@qt.io>
* Replace some more occurrences of QStringList() << patternChristian Stenger2017-02-081-28/+8
| | | | | Change-Id: Ic7193ac3a741763479a9ef129ed05cb7ca64f1e9 Reviewed-by: hjk <hjk@qt.io>
* Clang: Decrease order of snippetsNikolai Kosjar2016-07-281-2/+3
| | | | | | | | | | | | | | | The order is 0 by default and thus the snippet items were at the very top, e.g.: enum EnumType { EnumValue }; void f() { EnumType et = // Complete here and see snippet items at top } Change-Id: I70a160d102b91a2589972354c50aa5f0b29323e8 Reviewed-by: Tim Jenssen <tim.jenssen@qt.io>
* C++: Extract base startOfOperator()Nikolai Kosjar2016-03-311-1/+120
| | | | | | | ...in order to remove some duplication. Change-Id: Ie974b6ed9418967ad80b4604088b0e1c293b59d0 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* C++: Fix completion for doxygen tags INikolai Kosjar2016-03-311-0/+6
| | | | | | | | | | | | | | | There are three cases that must be handled: 1. Completion in C++ style comment 2. Completion in first line of a C style comment 3. Completion in non-first line of a C style comment This change fixes case 1 + 2. Case 3 will be addressed in a follow-up change, same goes for the duplication. Task-number: QTCREATORBUG-15143 Change-Id: I449711f965ddcbbe6158870a8a5ae33218e0d238 Reviewed-by: David Schulz <david.schulz@theqtcompany.com>
* Update License according to agreement with Free Qt FoundationTobias Hunger2016-01-191-17/+12
| | | | | | | * Update files in src/plugins Change-Id: Ia5d77fad7d19d4bb3498e78661982f68729adb22 Reviewed-by: Tobias Hunger <tobias.hunger@theqtcompany.com>
* Clang: Use completion through backend processNikolai Kosjar2015-06-101-1/+1
| | | | | | | | | | | | | | | | This makes us independent of libclang crashes for completion. Re-parsing for highlighting still happens in the Qt Creator process. Run in verbose mode: qtc.clangcodemodel.ipc=true Run tests: -test "ClangCodeModel" Task-number: QTCREATORBUG-14108 Task-number: QTCREATORBUG-12819 Change-Id: Id3e95bd2afdb6508bbd1d35fddc69534a909b905 Reviewed-by: Marco Bubke <marco.bubke@theqtcompany.com>
* CppTools: Extract base class CppCompletionAssistProcessorNikolai Kosjar2015-01-211-0/+78
As as side effect, this also brings some more pragma completions for the builtin-in completion engine, e.g. "pragma once" or "pragma omp atomic". Change-Id: If3ef22076c331c653b78a87cfff836c1da38c8fb Reviewed-by: Erik Verbruggen <erik.verbruggen@theqtcompany.com>