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

14049 commits

Author SHA1 Message Date
Jonah Graham
125afa92dc Bug 563455: Always return same instance of CElementImageDescriptor to platform
Because of a bug in the platform implementation of equals/hashCode under
some circumstances, we can workaround the problem by returning
the same instance of CElementImageDescriptor when the objects are equal().

Change-Id: I6ff15cffa4b48080dcc6c9a023622edf4ae2d497
2020-05-31 17:30:21 -04:00
Matthew Khouzam
84e9a78109 Bug 561789 - Introduce ElfSymbolIterator
This allows symbol reading on larger executables without
hitting an out of memory error

Note: this should not close the bug, it is just a first step.

Change-Id: I62bb252ff67d88d9bef686760fdc0e9b8240fd02
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-05-11 16:06:01 -04:00
Alexander Fedorov
73982472ee Bug 562997 - Switch CDT doxygen to use new Equinox preferences API
Switched from "org.eclipse.cdt.core.options" to
"org.eclipse.core.runtime.preferences"

Change-Id: Ie01d955079a7a54875270bb2d259c9232d30e7ea
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-05-09 11:42:57 -04:00
Marco Stornelli
1d38d997dc Bug 562896 - Fix qualified name in return type for implement method
Change-Id: Ie1ff2e401091655c6ecc2a7393dac19cea872a0e
2020-05-09 02:43:18 -04:00
Marco Stornelli
e730b264c5 Bug 562722 - Fix noexcept using implement method
Change-Id: I3ac99f916883fa4be55af29e51b63bc8aa40a63f
2020-05-04 19:26:16 +02:00
Marco Stornelli
0124c964b5 Bug 562723 - Added support for noexcept in the formatter
Change-Id: I021934657842868c196320f4e126217ab799c07c
2020-05-04 13:21:48 -04:00
Nathan Ridge
477aa9c798 Bug 562697 - Fix comparison of qualifier type and pointer type
CDT has two representations for a pointer type wrapped in a
qualifier type: it can be an IPointerType with some qualifiers
set on it directly, or an IPointerType wrapped in an
IQualifierType. (We prefer the first representation to avoid
creating too many wrappers, but sometimes the second one arises
during template instantiation.) This patch makes sure that two
such types can compare equal even if they use different
representations.

Change-Id: Ia8c7d227c74378aae74f04545b9a69103c14e74b
2020-05-03 12:48:18 -04:00
Jonah Graham
0ab57c346a [releng] Remove and add .prefs files according to improved cleanliness script
Change-Id: I9bc8364cda1a1154750127f5db5549073323e84c
2020-04-26 14:52:45 -04:00
Nathan Ridge
d4082abb67 Bug 562343 - Handle empty loop body when creating ExecFor
Change-Id: I11c07800d493b0a64681531a1d4719c17206dd19
2020-04-22 01:12:29 -04:00
Marco Stornelli
d36ed7cfd5 Bug 562292 - Fix method definition position for override method
The position of namespaces didn't take into account because the
declaration doesn't exist yet when we use this kind of refactoring,
so the find method of MethodDefinitionInsertLocationFinder didn't
look for namespaces.

Change-Id: I839194879c41f86653c837ca83a306ea1840c1d0
2020-04-22 01:00:48 -04:00
Marco Stornelli
8fa9f63e13 Bug 562368 - Fix doxygen template documentation
Change-Id: If0763d66fab13bc1cc7445363368df4c53546c24
2020-04-21 14:06:43 -04:00
Matthew Khouzam
0272908613 Bug 561786 - Add unit tests in Elf for attributes and getSymbolReader
Change-Id: Ic4f4e4ab0d9df0882b99a0e2300c2ddb0393b43f
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-17 08:00:01 -04:00
Matthew Khouzam
c70484d11e Bug 561788 - Convert fields into variables in Elf
The fields are not used outside of the loadSymbols section,
and they are written before being read, so they should be safely
inlineable.

Change-Id: I68388227074d80ace283395b48c88c59700dd9da
Signed-off-by: Matthew Khouzam <matthew.khouzam@ericsson.com>
2020-04-16 22:41:20 -04:00
Andrey Mozzhuhin
f4f9785b87 Bug 562181: Fix auto indent after constructor with access specifiers
Some heuristics in skipToStatementStart require knowledge of previous
token. It is initialized with value from a fToken, but it current value
may be invalid because looksLikeMethodDecl changes fPossition value
without adjusting a fToken. Using invalid value may lead to false
triggering of heuristics. Restore fToken value when change fPossition in
looksLikeMethodDecl to prevent this.

Change-Id: If0c2c0577c89a983e1479587409f293c3d0db7be
Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
2020-04-16 09:28:55 -04:00
Andrey Mozzhuhin
45afe49b9c Bug 562125: Fix auto indent of function call with scope qualifiers
A function call may be mistakenly interpreted in looksLikeMethodDecl()
as a method declaration. This was due to simplified processing of
functions with a scope qualifiers in the name.

Now methods with a scope qualifier are handled similarly to methods
without them.

Change-Id: Id3075d3387fdf9c4ae2d0dffa6cdf923fd1ef9d5
Signed-off-by: Andrey Mozzhuhin <amozzhuhin@yandex.ru>
2020-04-15 02:04:16 -04:00
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