If '{' is typed, we check whether '}' should be auto-inserted.
Previously, we did this by only looking at the tokens of the current
line. By using the BackwardsScanner we can easily look also at the
previous lines, which fixes e.g.
namespace N
<CURSOR> // type '{' - no '}' should be inserted.
Change-Id: Ib2c2989c33f87464431d45facf986bcbb2eff2f8
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
Basically move it from CppTools to CPlusPlus
to be able to use it there.
Change-Id: I0af80f93bdc029824397ceafdf940cb86c4382b0
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
This also fixes a crash on loading (some?) projects introduced
in 577bf7c08a.
Change-Id: Ie35d466fa3b84b183118fe93f55393a4c59755de
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
Apply some clazy and modernize fixes from clang tidy: mostly use of
nullptr and removal of type duplication.
Change-Id: Ibd9ee8f9b8a836a40d6f9be0b95acc91513a1a01
Reviewed-by: David Schulz <david.schulz@qt.io>
We require individual pages to be provided in Plugin::initialize()
Change-Id: I431112b523ed4cc803c07e5c6df8aa8d4ed1663b
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Different variables for clang code model and clang
static analyzer.
Task-number: QTCREATORBUG-19329
Change-Id: I64abdefb8c646a6f45f789a61abf75198e7ca3b8
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
The group identifier is as good as the actual object, so use that
on the generator and the consumer side.
Change-Id: I6ccd54a2362631af0b50583f12563b8e41a5dd78
Reviewed-by: David Schulz <david.schulz@qt.io>
It's really not much more than a struct with three items.
And there's no need to have them in the global object pool.
Change-Id: Ie4f46ba2ecb1b90ef22479a0e81d03d9301c2e7a
Reviewed-by: David Schulz <david.schulz@qt.io>
Unify the code calculating the different file locations used by the
SettingsAccessor.
Change-Id: I85283f99618143ce1fbdd309bce12529cec442ca
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
Add a placeholder text to explain the expected format of predefined
macros.
Change-Id: I2852df6802dba9607466e5488b0225ef08a1e142
Reviewed-by: André Hartmann <aha_1980@gmx.de>
Reviewed-by: Leena Miettinen <riitta-leena.miettinen@qt.io>
Reviewed-by: hjk <hjk@qt.io>
Re-read the data from the toolchain after applying it. This makes it
more obvious what e.g. the macro parser did with the input.
Change-Id: I5518c55c66be84dcdc3b1fa8482e04279768e3eb
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
The documentation says predefined macros for custom toolchains are to
be in "KEY=VALUE" format, while the code got accidentally changed to
only accept "#define KEY VALUE" instead.
Task-number: QTCREATORBUG-19714
Change-Id: I073e5b27f6fd5cead25a6406ae1f7cb19a7a03a7
Reviewed-by: Marco Bubke <marco.bubke@qt.io>
Empty categories are not shown anymore.
The new QSortFilterProxyModel also allows to eventually
add a string filter to the wizards.
Change-Id: Iddbc9c635608aac1310cf0a08bc4f4718d8b5863
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
GDB version on SLES is reported as
GNU gdb (GDB; SUSE Linux Enterprise XX) Y.Z.W
So, the content between parentheses must be skipped, otherwise
the wrong digits are parsed.
Change-Id: I05eb1373bc6558dfe088c1328142ff21d48f5591
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Resume job sends only basic tokens data therefore
one more UpdateExtraDocumentAnnotations job is required.
Change-Id: I6d5e65f22d26cf9c905c894654ff87f920659d8f
Reviewed-by: Nikolai Kosjar <nikolai.kosjar@qt.io>
The timeout code may not access thread local state, because if it fires
on the main thread after the thread already finished, that state is
gone.
Change-Id: I3b9b432515ff6f0c46c46b1904bdd622a19960d2
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This ensures that the user doesn't have to scroll down when they've
added a new environment variable and are editing its value; they'll
be able to see its value as they're typing it.
This improves the situation for most cases, but variables whose names
start with letters later in the alphabet cause them fall within the
"end" of the view's range, making it impossible to position them at
the top of the view.
Task-number: QTCREATORBUG-19715
Change-Id: I1f4b5bd311fa2a45770676ba2af3e254ae936f06
Reviewed-by: Tobias Hunger <tobias.hunger@qt.io>
Now that they are no longer used for column resizing the models
might actually assign some custom functionality.
Change-Id: I04d24641f555de0478c9803b4bfde70779747abf
Reviewed-by: Christian Stenger <christian.stenger@qt.io>
And remove the Tools > Model Editor menu, which is no longer needed.
Change-Id: Ib5b4a3a63408e69a2a65ffb87864db2f3ceef367
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>