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

34770 commits

Author SHA1 Message Date
Alexander Fedorov
53a665be69 Bug 562164 - Add JUnit tests for IMemoryImporter and IMemoryExporter
* Added FileExport to implement base flow
* Added ExportRequest to aggregate operation configuration
* Extracted PlainTextExport extends FileExport
* Added ReadMemory to simplify interaction interface
* Extracted AddressableSize to reduce code duplication

Change-Id: I848c922cd1300799c0e9d1bff8213e8b06edc41c
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-27 01:47:23 -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
Jonah Graham
45c7847095 [releng] Add missing PDE nature to o.e.cdt.debug.ui.memory.search bundle
Change-Id: Ib3bb7132ab43793a3b8fe130432009711b78c962
2020-04-26 14:52:45 -04:00
Jonah Graham
646273d9a4 [releng] Update code cleanliness to better handle non-JDT/PDE projects
This commit on its own fails cleanliness, but is separated out
to make review easier. The subsequent commit is the result of
cleaning the code with the script

Change-Id: Ibaddc2f338f14fbe60662acc8cb272b584a1a828
2020-04-26 14:44:12 -04:00
Jonah Graham
7cd1995573 Bug 532058: Add refresh capability to breakpoints view
Change-Id: I831a79260a3666fec62fbd4b74ca668ea4edfc8e
2020-04-26 14:02:46 -04:00
Jonah Graham
d2d1c00631 Bug 561623: Starting point for documenting future API removals.
This includes all the API changes already made for CDT 10.0

Change-Id: I3bd4c613af5e9ee3d1529afef7307da09efcbbdf
2020-04-26 12:06:40 -04:00
Jonah Graham
00cf160745 [releng] Add some more help in error messages when code cleanliness fails
Change-Id: I5cea3eb02e4809e591e3160358b7f6b06feabefa
2020-04-26 10:32:26 -04:00
Jonah Graham
eeebe5234c Bug 562452: Avoid using .C for C++ files when calculating specs
Change-Id: I0fe24a8343e73d501ae09e8bf3721e3d310a696d
2020-04-25 16:43:23 -04:00
Alexander Fedorov
5947786365 Bug 562164 - Add JUnit tests for IMemoryImporter and IMemoryExporter
Prepare to extract IMemoryExporter implementations

Change-Id: Ib1c2cfd15979628c45a7685ef490ef565af8eb48
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-25 13:55:14 +03:00
Alexander Fedorov
a92105a031 Bug 562164 - Add JUnit tests for IMemoryImporter implementations
The following changes are done to make the implementation headless and
testable:
* Reworked FileImport to implement base flow
* Added ImportRequest to aggregate operation configuration
* Extracted PlainTextImport extends FileImport
* Extracted RawBinaryImport extends FileImport
* Extracted SRecordImport extends FileImport
* Extracted FileImportJob
* Added ScrollMemory to interact with UI
* Added WriteMemoryBlock to isolate from UI class BufferedMemoryWriter
* Reworked related i18n

Change-Id: Ibd68c0e345e9455f5f8a2e1be673ddac5eb9a9b1
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-22 14:27:50 -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
Jonah Graham
39cc3af569 Bug 561319: Remove flickering in terminal when changing selection (fixup)
Dispose of the image used for buffering GC.

Change-Id: I80b6edea3211847265140aa8992546a16474cadf
2020-04-20 16:30:19 -04:00
Alexander Fedorov
79ba5ef27b Bug 562247 - Add CDT Debug Core Memory bundle
Added "org.eclipse.cdt.debug.core.memory" bundle with a stub abstract
class to be improved in the future commits

Change-Id: I14136379d8e595b7af36084cff8711d1d50a0a28
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-18 03:11:51 -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
Tad Adams
bcd1b5b71b Bug 560554. Launch target not populated into defaultdescriptors.
Make explicit the decisions to push down to providers to
populate configuration by checking if descriptor supports target. Make
explicit the delete/reset logic by a new method on the interface, as
opposed to checking if the descriptor is an instanceof
DefaultDescriptor. This enables descriptors which support targets, and
can be deleted.

Change-Id: Id4e3126a70d8cb091d4520acf5d21c5205e0c745
Signed-off-by: Tad Adams <tadams@blackberry.com>
2020-04-16 14:55:30 -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
John Dallaway
cab5fc1752 Bug 390897: Data buffering for SRecord export
Change-Id: I52cb28cd7fbbf19a9d2bc39754e0ea6fd8582aa3
2020-04-16 12:32:00 +01:00
Alexander Fedorov
794a7e2339 Bug 562096 - Switch CDT 10.0 stream to Eclipse Platform 4.16 M1
Switched to
https://download.eclipse.org/eclipse/updates/4.16milestones/S-4.16M1-202004090200/
Added 2020-06 repository list to CDT.setup - let's keep 2020-03 for a
while as a fallback option until things are converged for 2020-06 stream

Change-Id: I7ec32e9897731d9093c5e88aeb618ab33ff5e6b2
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-16 07:25:37 -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
Alexander Fedorov
87a3be448e Bug 561942 - CDT releng is broken: PTP 3.0 2020-03-M2 is not found
Use https://download.eclipse.org/tools/ptp/remote/releases/3.0/remote-3.0.1/

Change-Id: Ia0740b241577107527e50649a67db051b2f52069
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-09 15:37:40 +03: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
Alexander Fedorov
0191f0c321 Bug 561942 - CDT releng is broken: PTP 3.0 2020-03-M2 is not found
Switch PTP to
https://download.eclipse.org/tools/ptp/builds/remote/nightly/

Change-Id: Ie663bbe4d389ea88401fe33fed7fa773aa95b502
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-09 05:06:51 -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
dd88f8ffca Bug 534420 - Added check for nodiscard for classes and enums
Change-Id: I3932f4d23f18f96f8d1c15c18d7d4d991154aca1
2020-04-08 14:26:56 +02: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
68bb85e439 Bug 561734 - Clean-up Activator for CDT Tools Templates UI
Clean-up Activator class, may be filly removed after TemplateExtension
rework.

Logging code should be less verbose after merging of
https://git.eclipse.org/r/#/c/160386/

Change-Id: I502e14ac40b3ae5d3850b195f9ad9177bfae5536
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-03 18:45:24 +03: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
Alexander Fedorov
c42ebba662 Bug 561711 - Remove Activator for CDT Build Cross GCC
Removed "org.eclipse.cdt.internal.build.crossgcc.Activator"

Change-Id: I743cfc24f7ab1caac0bcd44733ac794247a8f84b
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-02 18:16:38 +03:00
Alexander Fedorov
f965614e9a Bug 561658 - Remove Activator for CDT Templates Freemaker
Replaced "org.eclipse.tools.templates.freemarker.internal.Activator"
with "FMGenerator"-local code to determine pluginId for IStatus creation

Change-Id: Iaff6d51b09de225d6d2c657e83e36ac8418f62b3
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-02 05:25:12 -04: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
Alexander Fedorov
0c464f651e Bug 561639 - Remove Activator for CDT Templates Core
Remove org.eclipse.tools.templates.core.internal.Activator

Change-Id: I690701bc9d4ea49f59eebda23866a17d572c0e57
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-01 07:57:00 -04:00
Alexander Fedorov
456afb3b8f Bug 561637 - Remove Activator for CDT CodAn UI Cxx
Removed org.eclipse.cdt.codan.internal.ui.cxx.Activator

Change-Id: I0c1d55c0756762044d66746c276d28ae72ded7e6
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-04-01 07:20:06 -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
Alexander Fedorov
7458b960c9 Bug 561582 - Revise API for CDT Codan
Clean-up "org.eclipse.cdt.codan.checkers.ui.tests" test bundle

Change-Id: I0f5198cc85c85b0829f5a73574cec54f152ba0cf
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-03-30 13:46:24 -04:00
Alexander Fedorov
89ada0fae4 Bug 561582 - Revise API for CDT Codan
Declare "org.eclipse.cdt.codan.checkers" package as "x-internal"

Change-Id: Icf5486f370c1397ec0fdfc502878509f1e665e98
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2020-03-30 13:45:23 -04:00