1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
Commit graph

24518 commits

Author SHA1 Message Date
Alena Laskavaia
aa4f014a3a fixing some comments
Change-Id: I020815ce6099d743067974a97b8b63539e408f15
2016-01-07 20:49:41 -05:00
Alena Laskavaia
d3e933501e Bug 411579 - Add a "Create new class" Quick fix.
Change-Id: I57dc46f079357de7d5c281d016a25baa3f2154a6
2016-01-07 20:35:31 -05:00
Nathan Ridge
bc953d2348 Move findAncestorWithType() from CPPVisitor to ASTQueries
Change-Id: Ibcbc0a2685dabd66e7025db5d2924acbbb5a882d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2016-01-07 19:04:50 -05:00
Nathan Ridge
7eeecab020 Bug 244434 - When the target file of "Open Declaration" is reachable via
multiple workspace paths, open it under the path that most closely
matches the originating file

Change-Id: I616804c6ffb9900e5df2f918a409f46c3cbb7a3a
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2016-01-07 00:59:38 -05:00
Marc-Andre Laperle
0d52c4ab82 Clean-up and use a single target file
Old targets were not working anymore. Also, rename the 4.6 target to
just cdt.target because there is only one that is primarily used.
This should be less confusing to new-comers.

Change-Id: Iaa45fbc5d91cfb47e7e60e549469e74dc5ffe369
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-01-06 20:36:15 -05:00
Sergey Prigogin
d4c3e42e7e Reimplemented IndexUI.getTranslationUnit(IASTName) method.
Change-Id: Icb13f2d8d4370c670053a52aeb226d4853ce4b44
2016-01-06 19:19:30 -05:00
Lukas Wegmann
537178b4e4 Bug 477611 - Add support for C++14 Variable Templates
Change-Id: Ib3f7097ff35fb1d332dde39b28fc25461e3f3e03
Signed-off-by: Lukas Wegmann <lukas.wegmann@hsr.ch>
2016-01-06 13:11:23 -08:00
Jonah Graham
cedcf7655b Bug 472765: more complete tests for source path mapping
Add some more tests for source path mappings to ensure that the upcoming
change of using gdb's set substitute-path does not regress any issues.

Change-Id: I9067c8859293c3332439679cb1f663e36a4cc34e
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-01-06 12:46:20 -05:00
Jonah Graham
59d0f15afe Bug 484894: Update generification of DisassemblyDocument
This fix follows on from af49d7701a and
redoes the generification changes brought on by the AbstractDocument
changes for Neon M4.

The earlier fix (af49d77) made a copy of the list to work around the
casting problem, however many of the methods that work on the positions
expected access to the real list, not a copy.

For example, consider addModelPositionFirst(), it gets the
CATEGORY_MODEL list and then adds to it. If getAddressRangePositions
returned a copy, then the wrong list would be updated.

Change-Id: I36ca589ba748b66541c632182aceaf0b0b64aea4
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-01-06 10:58:16 -05:00
Adrian Oltean
afa0449e30 Bug 485195 - Add gdbserver options in 'Gdbserver Settings' tab
Change-Id: I4e691c16641bb2a620f8146f7371716435783049
Signed-off-by: Adrian Oltean <adrian.oltean@nxp.com>
2016-01-06 10:33:35 +02:00
Alena Laskavaia
3763208ee8 project specific error settings for cdt.build.core
- and fix NPE (comment out code which seems to be incomplete)

Change-Id: Ided5116fcbda959c68c96b5f8630284f93b76dbf
2016-01-05 19:49:47 -05:00
Marc-Andre Laperle
b1104da01e Clarify null handling in javadoc of ProcessClosure constructor
The javadoc of ProcessClosure specifies that outputStream/errorStream
"Can be null, if not interested in reading the output" but that's not
correct: passing null triggers NPEs. This patch updates the javadoc to
specify that null is not handled.

Change-Id: Iea65486cc938d1f3bf7f0beb479b2329c9f0ecdc
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2016-01-05 14:09:54 -05:00
Andrew Gvozdev
79f4bf7d1a Bug 485028: Toggle Comments for Makefile Editor
Change-Id: I40b6daca54aa17022971df0749d1c4d7708a6564
Signed-off-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2016-01-05 09:06:03 -05:00
Marc Dumais
d4c89d2341 bug 485170 - wrong request monitor passed in
DefaultVMProxyStrategy#buildChildDeltasForEventContext()

Change-Id: Ief972f99581b467e4a19495a989240cf7b7f522d
2016-01-05 07:33:14 -05:00
Marc-Andre Laperle
e6a4fe47b3 Bug 463723 - GCC output parser cannot parse macro with a combination of
quotes and escapes

Change-Id: I7b07d3e2cc706f5e7839189bd2968f69c5cad28c
2016-01-04 11:45:31 -05:00
Doug Schaefer
0ee5ad92f1 Bug 485100 - Fix Arduino Libraries Page.
Check behavior wasn't working correctly. Added check state provider
and listeners instead of the hack I had.

Also add a feature dependency from Arduino to the remote launch
feature. This should have been done in the previous commit.

Change-Id: If9957a35e90875aca7767dcab610316801c28aeb
2016-01-04 10:09:33 -05:00
Jonah Graham
e9d5637eca Bug 483234: Add a command example to the example plug-in
A new command, ShowVersionHandler, has been added to the plug-in to
demonstrate all the pieces that need to be put in place to connect
a command to a DSF session.

Change-Id: Iefde0ba144c12ce2e580da7717b390258c0d3675
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
2016-01-04 09:42:13 -05:00
Sergey Prigogin
ec9a9fb5c7 Implemented is_empty type trait.
Change-Id: I1bb6fc98920eded16186889d66e33a7ca7432456
2016-01-03 22:10:54 -08:00
Marc Khouzam
f3ff649041 Fix copyright of all CDT plugins using the copyright tool from platform.
This commit does not add missing copyrights, just updates the date on
the existing ones.

Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Sergey Prigogin
25b1d6d57e Adjusted JavaDoc. 2016-01-03 17:18:31 -08:00
Nathan Ridge
db27a94a9e Bug 484959 - Instantiate return expression of constexpr function
template

Change-Id: If9f181581924395ba575167b34aca89a88931578
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2016-01-03 01:47:44 -05:00
Sergey Prigogin
604f391865 Adjusted JavaDoc. 2016-01-01 19:01:29 -08:00
Andrew Gvozdev
2a4cb495b5 Fixed some warnings
Change-Id: Icb6f7ba6151b55296c3f8137552a10fd7872b317
Signed-off-by: Andrew Gvozdev <angvoz.dev@gmail.com>
2015-12-30 21:52:19 -05:00
Doug Schaefer
73805d2ea4 Bug 484994 - Migrate Mars Arduino support to Neon.
This brings the master branch up to date with everything we've done
in the 8.8 branch. Adjusts for the new ILaunchTarget and targeted
launch delegate.

Also has a start at making more things common in the new build system.
With three extenders of it now in CDT, i.e. Qt, CMake, and Arduino,
it's obvious we can make things more common and make new extenders
less work.

Also undoes some of the work I've done to get Arduino onto the new
build system. Will need to redo it as we do the new common stuff.

Change-Id: I51ce768e0fc60e29c16b05567bd9802d64e33779
2015-12-30 20:12:30 -05:00
Sergey Prigogin
d8a72d1080 Revert "Bug 484959 - Instantiate return expression of constexpr function
template"

This reverts commit 1e598214ea.

Change-Id: I5fe7b602d3ecc26660f2bf8fe849ebbb5d6add3a
2015-12-30 17:08:36 -05:00
Sergey Prigogin
36d26c19e8 Revert "Bug 84144 [Parser2] GCC: labels as values"
This reverts commit 6e7a509f9b.

Change-Id: I7efcd8ac5d4c4507e827faed6072d6a314dc0b25
2015-12-30 10:02:08 -08:00
Nathan Ridge
1e598214ea Bug 484959 - Instantiate return expression of constexpr function
template

Change-Id: I3abec0f3bac58db77aacd61bd985c94c2185e3a8
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 23:15:35 -05:00
Nathan Ridge
ad2940f594 Bug 475739 - Follow-up to fix some warnings related to deprecation
Change-Id: I400de3448d615cef6adea5035ed24e66490819d4
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 21:47:36 -05:00
Nathan Ridge
fe5aea4644 Bug 484824 - Disallow initializers in type-ids in C code
This was already disalowed in C++ code previously.

Change-Id: I17f0b19253394896a980e2bbeb610bbbf266d012
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 21:47:12 -05:00
Nathan Ridge
f69b77089b Bug 467332 - Disambiguation inside noexcept-specifier
Change-Id: I5bc7378bd050f3c13753dc98970c4e510f53caf5
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 21:46:30 -05:00
Nathan Ridge
2308f972e2 Bug 383502 - Injected-class-names of different instances of the same
template found in different base classes

Change-Id: I4eed0443e95ca388a771f158ba16ec27298f7afb
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 19:56:57 -05:00
Nathan Ridge
6b58a751bb Bug 462764 - Avoid infinite recursion when storing function instance in
index

Change-Id: I922b741e62013941753114ea5c17f401093f18f3
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 15:13:38 -05:00
Nathan Ridge
b0d66aa777 Fix an "unsafe method call" error.
Change-Id: I174b14358cdf4252dfb5293c4b86ecfe873fb845
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-29 15:13:24 -05:00
Sergey Prigogin
03e0264fc1 Bug 477556 - Protect against NPE in ASTTranslationUnit.getAdapter
Change-Id: Ic8b101f6e298fd24277b27b3a43dab63b7c5410b
2015-12-28 20:16:14 -08:00
Christian Walther
8640070d4b Bug 484955 - Provide serial.port.file property, needed for SAM boards.
a6e36fac9d/hardware/arduino/sam/platform.txt (L102)
uses this property because the bossac tool expects a serial port name
without the leading "/dev/".

Copied from how the Arduino IDE does this in
a6e36fac9d/arduino-core/src/cc/arduino/packages/uploaders/SerialUploader.java (L148)
.

Change-Id: I17b2556cab3ad7fba00e03171881f6459cf97826
Signed-off-by: Christian Walther <walther@indel.ch>
2015-12-28 22:12:40 -05:00
Marc-Andre Laperle
c29c9bc057 Bug 382746 - Adding C/C++ nature for C Project impossible
This patch modifies the wizard so that the C projects also show in the
list of projects.
- If a given C project is selected and the C nature is selected, the
project is not modified.
- If a given C project is selected and the C++ nature is selected, the
C++ nature is added and project type and toolchain selection have no
effect because it is assumed that the project type and toolchain had
already been setup before hand.
- Old-style projects (CDT 3.0) are not converted anymore.
Unchanged behavior:
- C++ projects never show in the list of projects. Removing nature is
(still) unsupported.
- Non-CDT project behave as they use to.

Change-Id: Ie6282c11d90c42d21ecad2996ab49ebd64c38ece
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-12-28 13:43:42 -05:00
Marc-Andre Laperle
1c258538de Remore unused New New Wizard
This code is not used and hasn't been touched since 2012.
Now it can be referred as the "old new new wizard".

Change-Id: Iccc60651a8233a5ef5b138dfcc334cfcf926d109
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2015-12-28 13:20:43 -05:00
Sergey Prigogin
00e7081b17 Moved to JDK 1.8.
Change-Id: I415625d3cebe3ff38454bd6722c31da07eb466c4
2015-12-27 21:41:01 -08:00
Sergey Prigogin
744765be6f Cosmetics.
Change-Id: Ie36a0936b72f053fe557b4ae6e57bf52ee4aa8f4
2015-12-27 16:24:40 -08:00
Sergey Prigogin
f1bcff300c Cosmetics. 2015-12-27 14:34:49 -08:00
Nathan Ridge
e667b2631c Bug 484899 - Navigation to inherited constructor
Change-Id: I3ce24f3fb70e50b50757900c5ccb372abd855dfc
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-26 23:25:13 -05:00
Nathan Ridge
f82660f14c Bug 416748 - Improve semantic highlighting for alias templates
Change-Id: Ic0d0110133a4732cace07d19e995e7c51b5538e3
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-26 19:24:25 -08:00
Nathan Ridge
60e390b0e4 Bug 484618 - Implicit names for calls to user-defined literal operators
Change-Id: I15df0f5729b5c4ba6c557789be5db56baaf3afbc
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-26 14:59:45 -05:00
Nathan Ridge
2cc3e248b4 Move assertInstance() up from AST2TestBase to BaseTestCase
Change-Id: Ibe45d247f6f027691625a04fcc8971f84e2764a7
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-25 20:08:55 -05:00
Sergey Prigogin
102c7b58cf Revert "Bug 484618 - Implicit names for calls to user-defined literal
operators"

This reverts commit 7059bfb0ea.

Change-Id: I99c73e4655a29b1e06e8b709451f939175b80031
2015-12-24 13:20:05 -08:00
Nathan Ridge
458d7f2ed1 Bug 479142 - Show correct override marker when multiple overloads in a
base class are overridden in a derived class

Change-Id: If31925a5fbffe1425d22894fdff762ef1c733f25
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-24 15:04:12 -05:00
Nathan Ridge
54e9a84673 Rename ICPPEvaluation.getTypeOrFunctionSet() to getType().
getTypeOrFunctionSet() is an unwieldy name, and since the return type
is IType, it seems reasonable to call the function getType().

Change-Id: I7e3211fdd3b474cc8e33da3e1f398b58122fe89d
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-23 23:30:50 -05:00
Nathan Ridge
59de5c303f Bug 484619 - Make sure ProblemBindingChecker reports unresolved
user-defined literal operators

Change-Id: Idbb157c33b3aae06a00a10f7e7836e96db9f9b63
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-23 23:30:15 -05:00
Nathan Ridge
8ceb33a1fc Bug 484617 - Test highlighting of user defined literal suffix
Change-Id: I8647077131e2d210d23dcd1ad591e864511c7b8e
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-23 23:26:37 -05:00
Nathan Ridge
7059bfb0ea Bug 484618 - Implicit names for calls to user-defined literal operators
Change-Id: I4eaa320646c772f8321bca1f09cfe32a95eb0e59
Signed-off-by: Nathan Ridge <zeratul976@hotmail.com>
2015-12-23 23:09:43 -05:00