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

13973 commits

Author SHA1 Message Date
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
Marco Stornelli
c0402d5d06 Bug 434677 - Fix implement method insert position with namespaces
If the correct namespace existed before the refactoring in the
translation unit, refactoring process just ignored it.

Change-Id: I9d6bd301807bb2d3f83f74ef772395d3470cf8bd
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-30 13:55:38 -05:00
Nathan Ridge
cd2ed18cd6 Bug 553794 - Add support for the __integer_pack builtin
Change-Id: Idc978d1d0b44cfe326283a0c3779969fdc3f3599
2020-01-28 05:20:09 -05:00
Marco Stornelli
86f2ad3301 Bug 452809 - Implement method fully qualified decl specifier
If an enum, a struct or a class is defined inside a class, the
implementation must qualify the declaration specifier.

Change-Id: I1e9450c7b165a25c4a745c50fe2e0c06e28775d0
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-25 01:47:42 -05:00
Alexander Fedorov
73a7ac3642 Bug 559067 - Rework DocCommentOwnerComposite and mark it for deletion
Added org.eclipse.cdt.internal.ui.dialogs.DocCommentOwnerArea
Deprecated org.eclipse.cdt.ui.dialogs.DocCommentOwnerComposite
and marked it for deletion

Change-Id: I6ec1266fa0a7bce2e3fee43d1c4c2c0b3ba11ef7
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-01-24 22:27:34 +03:00
Alexander Fedorov
13ddacb772 Bug 559066 - Rework DocCommentOwnerCombo and mark it for deletion
Reworked usages of DocCommentOwnerCombo and marked it for deletion

Change-Id: Ic1bfbcdb12512be0d2eed1ae93d454d7f1e5668f
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-01-22 21:45:02 +03:00
Alexander Fedorov
5e423d21a9 Bug 559193 - Rework DoxygenPreferences to encapsulate constants
Part 2 (please refer to the Bug 559193 regarding the reasons to rework):
 - Doxygen option read-only API for clients
 - Doxygen option storage API for configuration UI
 - OSGi component for Doxygen API implementation

Change-Id: Ia97ade397f1040087898aeb3b50872473d3c0631
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-01-22 11:47:43 -05:00
Marco Stornelli
c309923d71 Bug 384793 - Fix implement function refactoring with var args
Change-Id: I420a6a8197ff343a5719d8cc3d85eeb9ea889dfa
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-20 12:27:18 -05:00
Marco Stornelli
6647808d0e Bug 510289 - Fix implementation refactoring with template parameters
The implementation of methods with parameter declaration or with
template template parameters didn't work.

Change-Id: I783dedc5ffecd6721293d52f13548fd9e73999bc
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-19 05:48:44 -05:00
Marco Stornelli
b5cde3b61c Bug 559313 - decltype evaluated as a write operation
If a variable is in a decl type specifier can't be evaluated as
written.

Change-Id: If78a567dab99e55c78e16c3b7f10c45bbd0a0606
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-19 05:28:15 -05:00
Alexander Fedorov
8dae022114 Bug 559193 - new API for preference management
Part 1 for "Rework DoxygenPreferences to encapsulate constants" (please
refer to the Bug 559193 regarding the reasons to rework):
 - option metadata API
 - option storage API
 - Preference-based storage
 - tests for added types

Change-Id: If6f2caa4c8e659497b0e95c00ec959a9888998d7
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-01-18 16:09:36 -05:00
Marco Stornelli
0c5b5771b9 Bug 552334 - Generate enum doxygen comments according to comment style
Change-Id: I49f8188cc9c5421c90a48fb96a5b476de10ef251
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-16 18:45:35 +01:00