1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-22 22:22:11 +02:00
Commit graph

13984 commits

Author SHA1 Message Date
Andrey Mozzhuhin
a145e695c0 Bug 516393: Fix scan of double char tokens in CHeuristicScanner
Scanning of double char tokens (::, >>, >=, <<, <=, ->) is broken in
nextToken(). In each case, peekNextChar() was used to get second
character, but scanner position was already on second char and
peekPreviousChar() need to be used.

Change-Id: Ibd447c7cde8783e8ffe547d5f9bc09d11c1c60a7
Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
2020-04-13 21:32:45 +03:00
Alexander Fedorov
2a075e3ec8 Bug 561993 - Remove dependency to com.ibm.icu from CDT UI
Use JVM classes
Rework WorkingSetProxy#getSearchKey

Change-Id: Icda4b5b791259150dbf436546c2096ea728e0da0
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-12 13:34:26 +03:00
Jonah Graham
d66d3e8e85 [releng] Bump version to 10.0.0
Change-Id: I32f6f61835bdbad3cffd713965045c5097c8619f
2020-04-11 17:46:58 -04:00
Alexander Fedorov
d1868c46c9 Bug 561992 - Remove dependency to com.ibm.icu from CDT Core
Switch to JVM classes
Remove commented code from
 CProjectDescriptionManager

Change-Id: I53431ba1d5c015b3192fff7249c73e816b8b49ea
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-11 07:27:04 -04:00
Matthew Khouzam
1561c18f49 Bug 561787 - Make Elf parser names inline with java coding style
Replace under_score with camelCase for private non-api fields

Change-Id: Ica0dece19aaaf79d979588266f4c9552ea6d1224
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-10 13:57:14 -04:00
Matthew Khouzam
5e57f5e2a2 Bug 561788 - Remove useless field in Elf
The syms field is only set and never read outside of getSections.
It can safely be removed.

Change-Id: I40be61c4d6fab0131bd47134fc444b4306f8b322
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-10 13:52:37 -04:00
Marco Stornelli
ab1c2b0889 Bug 561770 - Rework API new class creation wizard page
Change-Id: Id8d83e05b8bc2665bf20fc804f0511ca8acd3126
2020-04-10 11:57:36 -04:00
Marco Stornelli
2a0bc541f0 Bug 534420 - Fix enums nodiscard flag size in the index
Change-Id: Ifaf5de849a8b95217ce112306f471dbcdc781f3d
2020-04-10 01:21:51 -04:00
Marco Stornelli
31b748e7b9 Bug 510789 - Added final field to class wizard
Change-Id: Ib2f0168b897e665f3577511144692bb446d5ab84
2020-04-09 06:44:42 -04:00
Matthew Khouzam
1d4d637d72 Bug 561787 - Declare modifiers in correct order for Elf
The modifiers should be public static final.

Change-Id: Iaaede29a68891ab8aeb297b08db78ac13acbc1b8
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-09 05:09:22 -04:00
Matthew Khouzam
2b291399f5 Bug 561786 - Add unit tests for Elf
Test on X86-64, i386, ppc64 and ppc32.

Add Elf compiled executables to resources folder in order to ensure address coherence.

Change-Id: Ie85636c9732cc41b6e5505ecf7acc783644bb442
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-09 04:35:19 -04:00
Marco Stornelli
77790012cc Bug 561631 - Fix isFinal check for template specialization
Change-Id: Iac5b0d753c32f936e5d0e7ecdde66aeb0f7c6af8
2020-04-08 08:10:28 -04:00
Marco Stornelli
a1ea26f817 Bug 561824 - Removed suppress warnings about API restrictions
Change-Id: I182a222ec09e1da88dfcf1d3066eb3e9eaba4a2c
2020-04-07 14:23:50 +02:00
Marco Stornelli
14936b92c6 Bug 534420 - Add checker for [[nodiscard]] attribute
Change-Id: I5e40a2d50281b669c62ed48ee1a3a399ca71981c
2020-04-06 09:22:03 -04:00
Marco Stornelli
733d884bc4 Bug 534420 - Add support for nodiscard attribute for enum types
Change-Id: Ib555c5d3f37c1159208a971affc7d31dc0ca3220
2020-04-06 09:21:36 -04:00
Alexander Fedorov
e730f8b8d3 Bug 561635 - Clean-up CDT Activator code
Remove misplaced usage of
"org.eclipse.tools.templates.ui.internal.Activator"

Change-Id: Iaeb42729366f12a6329c4b8ca2b062ab7a169472
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-02 21:19:33 +03:00
Torbjörn Svensson
36de92cc77 Bug 495661 - Period is a valid symbol in a section name
When using -ffunction-section, each function is placed in it's own
section name. For example the main() function would be placed in
.text.main, so the pattern looking for undefined references needs to
allow the extra dot there.
Since C++ will use other symbols than what's included in \w, lets allow
everything except a + sign and whitespace.

Change-Id: I66d9ee7d8cbc0a405e60d7cdeb43c38b30107245
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-04-01 15:36:25 -04:00
Marco Stornelli
703310dfa6 Bug 534420 - Add support for nodiscard attribute for class types
Change-Id: I7466301118bacc04029c315d97441ff8e56142b5
2020-04-01 02:31:07 -04:00
Marco Stornelli
4a4c5fca4d Bug 561559 - Fix formatting def capture lambda expressions
We missed a space before the closing brackets if the proper option
was selected.

Change-Id: Ibbb09c3c961dc1b5e22aaa65ffb5d9878c2bb08b
2020-03-30 01:17:03 -04:00
Nathan Ridge
65e8a04447 Bug 561088 - Some cleanups to VariableReadWriteFlags classes
Change-Id: I63c5333b4c97062229c7f421b4f152ba3f90a996
2020-03-27 01:36:47 -04:00
Nathan Ridge
ce97426688 Bug 561128 - Allow storing all local types in the index, not just typedefs
Change-Id: I4bb76e199557e2dfe1fcab3a435434612b3334a5
2020-03-23 15:23:57 -04:00
Marco Stornelli
5f316f4045 Bug 534420 - Add initial support for [[nodiscard]] attribute
Change-Id: I3bb7e1b4068c5e95a8247be152b9e428f9207bdc
2020-03-23 13:18:41 -04:00
Marco Stornelli
67b441b120 [releng] - Fix api version for code formatter options
Change-Id: I9e8fe2541355c0f066de0f11c31129298ec3f6e5
2020-03-23 15:40:58 +01:00
Marco Stornelli
c2f51a8d23 [releng] Bump CDT version to 9.12.0
org.eclipse.cdt.debug.gdbjtag is bumped because of Bug 561343

Change-Id: I6dac283b7e9093662f57ac5c804021c4201ad6f1
2020-03-22 14:05:17 -04:00
Marco Stornelli
7a833fbb50 Bug 561088 - Fix read/write flags in case of dependent types
Change-Id: I072bb53a95d17137eb614bff34de6bd57a371d33
2020-03-21 02:34:48 -04:00
Nathan Ridge
c69bec4979 Bug 561124 - Pick a default test strategy in constexpr.TestBase
This allows constexpr evaluation test cases to be run individually
(using the default strategy).

Change-Id: Ib196f0c625580ab50b0abf79d57b54175b174f5f
2020-03-20 15:28:06 -04:00
Jeff Johnston
0a271afe3d Bug 560754 - Clicking on header with no extension brings up text editor
-  modify EditorUtility.getEditorInputForLocation() so that if we are
   dealing with an external Include element and we can't get a
   TranslationUnit then check the parent to find a contentTypeId and
   create an appropriate ExternalTranslationUnit to use in creating
   the ExternalEditorInput

Change-Id: Id99305606d058b8c105fe9b4099f5561620b07fd
2020-03-20 13:59:32 -04:00
Marco Stornelli
c3346dd6cc Bug 561128 - Additional fix for lambda constexpr
Change-Id: Ieee1eb4a494ec452bb5f710b2ffafd62ad798d2a
2020-03-20 10:38:23 -04:00
Marco Stornelli
16d73e0081 Bug 561128 - Add constexpr evaluation for lambda expressions
Change-Id: I28916218c7d2326407b28170ac051c18ec501f49
2020-03-15 16:15:41 +01:00
Marco Stornelli
f150522ad4 Bug 560483 - Add support for c++17 constexpr lambda expressions
Change-Id: Ic64ef646944c9d1b6f606f3b11f90ffed65ea95e
2020-03-13 06:45:49 -04:00
Felix Morgner
bcb955a321 541239: [C++17] Implement parser support for deduction guides
Change-Id: I1683583af981d276b346ba8470a9044cfd8921cd
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=541239
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
Also-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-03-13 03:35:34 -04:00
Torbjörn Svensson
65eee1c0b0 Bug 560636 - Fix a small potential race
In commit f69a613d72, a check for null and
0-length array was introduced, but the checks is not reliable unless the
checked value is later used.

Change-Id: Ifc32b369514ee03eeea21281a7af80616531af87
Signed-off-by: Torbjörn Svensson <azoff@svenskalinuxforeningen.se>
2020-03-08 17:57:51 +01:00
Marco Stornelli
f69a613d72 Bug 560636 - Fix exception in findImplicitlyCalledConstructor
Change-Id: I5183737d0125713a5c4515752ba13f83df716ac2
2020-03-02 17:23:37 +01:00
Kondal Kolipaka
187d88443d Bug 559957 - Headers are not getting resolved in Windows OS
Change-Id: I933521a9001824024377205096a56471ce150aa9
Signed-off-by: Kondal Kolipaka <kondal.kolipaka@gmail.com>
2020-03-02 07:00:57 -05:00
Jonah Graham
5a6b9b4bf4 Revert "Bug 560614 - Drop dependency on ICU4J"
This reverts commit 87b627bf02.

Change-Id: I54ea1ac766437deb174eeba571a7a5094c180828
2020-03-02 06:49:24 -05:00
Alexander Kurtakov
87b627bf02 Bug 560614 - Drop dependency on ICU4J
Straightforward conversion. Still usages left that need deeper
investigation how to be done proper.
Some long time commented code removed as java formatter breaks trailing
whitespaces on save.


Change-Id: If74259bed5735b0d4cc98fc2cfa609c9c53c80c9
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-03-02 06:46:15 -05:00
Marco Stornelli
c68fa24969 Bug 560173 - Fix destructor lookup in case of typedef
Added field isDestructor to LookupData class

Change-Id: If2707c96eeb54dfc938dfc5caf69f0bbf71589ef
2020-03-01 09:09:29 -05:00
Alexander Kurtakov
7415100f6a Bug 560273 - Hook natives build in maven via profile
Default ARCH = x86_64 as x86 is no longer built nor needed.

Change-Id: Id1d0dc6b0b29438cc200d614cb3add55c8eb40f1
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-18 12:55:19 -05:00
Alexander Kurtakov
fa092f2a4a Remove unnecessary SuppressWarning(cast) and casts.
Change-Id: I9248a3fd2481b590e8437bf7f880f936ba88ce6c
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 04:01:57 -05:00
Marco Stornelli
757eab4307 Revert "Bug 510789 - Added final field to class wizard"
This reverts commit ccabaa2118.

Change-Id: I9dba85dadfb44e8e8d97e9368bba6da4da541910
2020-02-15 03:12:25 -05:00
Alexander Kurtakov
61d10d11ef Generify some getAdapter implementations.
Change-Id: I2cd3dad7821e3c6ae3f0371edda5e511beff4014
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-15 00:56:20 -05:00
Alexander Kurtakov
ae8d8b16b8 Get rid of some annoying non-Javadoc comments.
Change-Id: I55b5fcce4948ec17a97a199bb75627e8e7a4c462
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-14 23:09:59 +02:00
Marco Stornelli
ccabaa2118 Bug 510789 - Added final field to class wizard
Change-Id: I4c404b8f0106e976b25b232a65bc3d313be1449f
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-02-08 08:13:59 +01:00
Fabrizio Iannetti
5403404e09 Bug 559877 - CBuildConfiguration.getProperties() returns an empty map
Change-Id: I3da2aee59eaf06b8e5d0bbd4ccc05b2a0139c3ef
Signed-off-by: Fabrizio Iannetti <fabrizio.iannetti@gmail.com>
2020-02-06 13:02:21 -05:00
Alexander Kurtakov
4d6ecb4f20 Bug 559800 - Content in cdt.doc.isv badly outdated and broken
Fix javadoc tags.

Change-Id: I95a6720777797b4449509f29d00ce836a7c9e103
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-05 23:14:52 +02:00
Alexander Kurtakov
f90f900e48 Move away of the deprecated AbstractUIPlugin.getWorkbench
Use PlatformUI.getWorkbench instead.

Change-Id: I8c0eb2c4b3b414e61f03fc9d9becd1d574f7e26d
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2020-02-04 14:43:53 +02:00
Marco Stornelli
76bf5b4e7c Bug 475625 - Allow user to have empty variable names
When the user selects the second wizard page was forced to use
a no empty variable name, however it's possible the parameter won't
be used and the user wants to have a matching signature. Removed
the check. The parameter name is still automatically set if the user
click directly on "Finish" button.

Change-Id: I665220b72d7b04b4bc89ffd5d764771cdfa8b243
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-02-04 00:25:37 -05:00
Marco Stornelli
15479e9095 Bug 559669 - Fix formatter on/off tags
Change-Id: Ia481703a0360ec5741d2fb079a75aa13a33bff39
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-02-01 15:23:59 +01:00
Jonah Graham
6f9502c9c2 [releng] Bump version of cdt.core for new API
Change-Id: I64fcde8659f97c133fedc700879bee4eb86d97e9
2020-01-31 12:15:46 -05:00
Marco Stornelli
c775a210e1 Bug 559545 - Fix formatter with enums with standard attributes
Change-Id: I993e773792105e22b9c2f703488e7ff211ed4068
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-30 13:57:23 -05:00