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

34548 commits

Author SHA1 Message Date
Marco Stornelli
bacb42110e Bug 546609 - Added checker for magic numbers
Change-Id: Idedcf15f9d5eb3a5d405fe8dc83131f1faf0efa3
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-04 12:09:38 +01:00
Jonah Graham
ca1ee32031 [releng] Update comparator repo for p2 compare and replace
Change-Id: Iff7e7ba98fe37f89d1b6b0e0754ef827925e849e
2020-01-03 15:16:28 -05:00
Jonah Graham
a0e7c85832 Bug 558792: [releng] don't create source bundles for docs
The source bundles are not published to the p2 repo and having
them built causes tycho's p2 compare and replace to error like this:

[ERROR] Failed to execute goal org.eclipse.tycho:tycho-p2-plugin:1.5.1:p2-metadata (baselinereplace-p2-metadata) on project org.eclipse.cdt.autotools.docs: baseline and build artifacts have same version but different contents
[ERROR]    classifier-sources: not present in baseline

Change-Id: I409f96c7a7ed054da37159b9b87564dd271c31b5
2020-01-03 15:16:05 -05:00
Marco Stornelli
2e761a5359 Bug 545714 - Added a shallow copy checker
Change-Id: I8998a98f9d7836405afcaf54bf241b0acbd9edea
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-03 14:11:08 -05:00
Sergey Kovalchuk
9cbe95695c Bug 558474 - CleanUp deprecated methods in org.eclipse.cdt.ui
Reworked SubMonitors (Part3)


Change-Id: I146ba515f78ad15e94267b52d0123bf53f98289b
Signed-off-by: Sergey Kovalchuk <sergei.kovalchuk@arsysop.ru>
2020-01-03 19:00:23 +03:00
Sergey Kovalchuk
b74f56878c Bug 558474 - CleanUp deprecated methods in org.eclipse.cdt.ui
Reworked SubMonitors (Part2)
Fixed percentage counting
Removed explicit cancellation checks.

Change-Id: Ibd9ef2664885746ab9ac2be556ac5effc994a512
Signed-off-by: Sergey Kovalchuk <sergei.kovalchuk@arsysop.ru>
2020-01-03 09:34:34 -05:00
Marco Stornelli
55e08c0dfa Bug 273252 - Added checker for variable masking
Added new checker for variable masking another in a parent scope

Change-Id: Icff6b6499a1d38cc5a719d143552bbe17d57b15c
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-03 02:17:30 -05:00
Jonah Graham
14561b343f Bug 558638: Add nature user display names
Change-Id: I2cabb572ab2e4a1ad2c3890267628a0aa13e4211
2020-01-02 18:18:00 -05:00
John Dallaway
8bafed71ec Bug 558266: Add ST-LINK definitions
Change-Id: I01bb9b09af6bc9b2f38169acc3ce29b2d87ccc1e
2020-01-02 16:00:16 -05:00
Hannes Vogt
a4b27b3638 Bug 551761 - GetterSetterRefactoring single char prefix
Instead of dropping single character prefixes in getter/setter name
generation,
we just drop the class field prefix as defined in the coding style.

Change-Id: I3c3853b1b0f675ad1802b1ebbddd68dc8c0c5b33
Signed-off-by: Hannes Vogt <hannes@havogt.de>
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-02 17:39:54 +01:00
Marco Stornelli
aa08b85b6f Bug 266305 - Add common warning options to GCC(Clang
Add common warning options usually not included in -Wall. (GCC/Clang)
Added hardening options and address randomization under misc
section (GCC)
Added sanitize options under debug section. (GCC/Clang)

Change-Id: I885d8f49192018e50fcc5d28ee5e60d8785aa947
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2020-01-02 11:55:20 +01:00
Alexander Fedorov
9f1ccbd536 Bug 558703 - CDT LSP bundles should include about.html
Added about.html to:
org.eclipse.cdt.lsp.core
org.eclipse.cdt.lsp.core.tests
org.eclipse.cdt.lsp.ui

Change-Id: I4281407953f4a6ef338a342cc1345cb301e5e131
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-31 17:47:51 +03:00
Marco Stornelli
e6b712325c Bug 527143 - C++ dialect refactor
Renamed c++0x to c++11, c++1y to c++14. Added c++17 and c++20
aka c++2a.

Change-Id: I3939cb56bf887e193bffe7484c6568cf45bd315d
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-12-31 09:10:32 -05:00
Sergey Kovalchuk
d101914ede Bug 558474 - CleanUp deprecated methods in org.eclipse.cdt.ui
Reworked deprecated SubProgressMonitor to SubMonitor (part 1)
Removed NullProgressMonitors, transfered root monitors to function call.


Change-Id: Id9fb063f4265fb4a6fba011621310e02886b0217
Signed-off-by: Sergey Kovalchuk <sergei.kovalchuk@arsysop.ru>
2019-12-31 08:30:26 -05:00
Jonah Graham
caaeb7489d Bug 447622: Display better message when information is missing
Change-Id: I9c908c53e88311fbdd067a1fbfe61de62ef04ae0
2019-12-30 16:38:51 -05:00
Alexander Fedorov
6da6e91cc1 Bug 558660 - Isolate cquery-related code of the org.eclipse.cdt.lsp.core
Moved cquery-related code to "org.eclipse.cdt.cquery" namespace.
Why not "org.eclipse.cdt.lsp.cquery"? Because here we are focusing on
"cquery" support for CDT, and it looks like a separate component to be
wrapped by its own feature later.

Change-Id: Iddfff2d4341d090ccdeca562ea16c584c0fcdd76
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-28 15:54:11 +03:00
Alexander Fedorov
ca4413f0ab Bug 558654 - CDT target and setup should be sorted alphabetically
Switch from comments to Annotations to Repair CDT.setup

Change-Id: I9f1246d4f871b1940feda0b5d315ae4047f81bf1
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-28 11:02:04 +03:00
Alexander Fedorov
130ba19600 Bug 558654 - CDT target and setup should be sorted alphabetically
Sorted cdt.target
Sorted cdt-baseline.target
Sorted CDT.setup

Change-Id: I776b364ad8a3d71a9f923abbf6e4f75cdce7feb4
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-27 22:54:18 +03:00
Alexander Fedorov
e63c017b3f Bug 558636 - Error in baseline target platform definition for CDT
Sync cdt-baseline.target with cdt.target
Sync CDT.setup with cdt.target
Sorting to be done with another commit

Change-Id: I9e0bd9565ed55560bceaf3f77ea8212e9f787589
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-27 14:43:18 +03:00
Alexander Fedorov
f0f962d54d Bug 558591 - Move editor-related contribution to the UI part of CDT LSP
Move all editor contributions
Move AutoIndentStrategyCPP

Let's switch friends of org.eclipse.cdt.ui later

Change-Id: Idf9e1f0d0646917a4ead62a8e930b1268a8ce292
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-23 21:42:28 +03:00
Alexander Fedorov
448829fb59 Bug 558560 - Switch cdt.target from SimRel to particular p2 repos
Removed SimRel repo
Added EMF repo
Added Mylyn repo for org.eclipse.epp.logging.aeri.feature
Added Mylyn Docs repo for LSP4J
OMG! We have circular dependency that invloves 'java.package;
org.eclipse.cdt.utils.pty 0.0.0' from org.eclipse.remote
Added GEF legacy repo for org.eclipse.wst.xml_ui.feature

Change-Id: Id571d93e5e3365c71993e46b478c489c72a61e45
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-23 17:37:35 +03:00
Alexander Fedorov
5eb0e1923a Bug 558549 - Move CDT Language Server preference page to UI bundle
Moved preference page and related things to "org.eclipse.cdt.lsp.ui"

Change-Id: Idf1251789edbd5f6c82b6fb7f3483c75550d6e29
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-22 12:09:06 +03:00
Alexander Fedorov
d92d4ac771 Bug 558542 - Create "org.eclipse.cdt.lsp.ui" bundle
Created "org.eclipse.cdt.lsp.ui" bundle

Change-Id: I850cb545398198432c4873fbcd00f0ccfc9dff30
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-21 19:06:35 +03:00
Alexander Fedorov
a2e53aa619 Bug 558541 - Remove dependency to org.apache.commons.io from CDT LSP
Switched to try-with-resources

Change-Id: Ia81b1e80c34ff62f9405d8a967f9877e5f8b0e86
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-21 14:23:37 +03:00
Alexander Fedorov
b72a6c3d93 Bug 558516 - Normalize i18n for CDT LSP component
Revisited all the i18n

Change-Id: Ic5b14ee68cb3d0164f179a9d2690573a82f356d8
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-20 15:02:14 -05:00
Sergey Kovalchuk
a95c9a486e Bug 558474 - [CDT]CleanUp deprecated methods
Initial with Gerrit
Clean up deprecated methods

Change-Id: Iff82715d7415d0512a8a1fe3f9625e7c27fb01d8
Signed-off-by: Sergey Kovalchuk <sergei.kovalchuk@arsysop.ru>
2019-12-20 06:34:05 -05:00
Jonah Graham
995bf9320c Bug 558488: Fix GDB version number comparisons for GDB 10 and above
The previous code would treat GDB 10.0 as earlier than 6.8

Change-Id: Ie95d9459462636c9ae0713c65686eec64cb553fa
2019-12-19 20:03:11 -05:00
Jonah Graham
9a03a7c9d4 [releng] Update debug.product for building against 2019-12
Change-Id: I7bb80b819cdd460cce1c53a9f85197ba3f488d92
2019-12-19 17:40:43 -05:00
Alexander Fedorov
61d01286e3 Bug 558484 - Normalize manifests for CDT LSP component
Added copyright headers
Mavenized output folder
Did i18n
Normalized bundle headers

Change-Id: I4c2b1485fae131ccc1744f8032300577addb4dcc
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-19 15:29:22 -05:00
Jonah Graham
3b9e522b1e [releng] Remove no longer needed api filters
Change-Id: Ic524d833e64f4388d76188437b1fa0b90c371d37
2019-12-19 15:11:15 -05:00
John Dallaway
66359ff899 [releng] Update baseline and setup to released 9.10.0
Change-Id: I340aff41d494de95626a5bc239ef037169bbc232
2019-12-19 15:20:37 +00:00
Alexander Fedorov
c5d86c70cb Bug 558288 - CDT Oomph setup should not fail on API Baseline activation
Provided Modular API Baseline Target
Fixed requirements for Modular Target
Fixed repository list
Fixed cdt-baseline.target
Fixed cdt.target
Switched cdt.target to 2019-12

Change-Id: I7a28b0d2e1abd142184575364f70ebddd47c2e13
Signed-off-by: Alexander Fedorov <alexander.fedorov@arsysop.ru>
2019-12-19 08:25:18 +03:00
Jonah Graham
533d62ce6c Bug 558439: Move launchbar plug-ins into its own folder
This also removes the duplicated infra and releng code that is no longer
needed in merged repo

Change-Id: Ia5c52c7b087ed2612ed505c37ae00c9c6efe1f4f
2019-12-18 13:41:51 -05:00
Jonah Graham
c400541673 Bug 558439: Move tools.template plug-ins into its own folder
This also removes the duplicated infra and releng code that is no longer
needed in merged repo

Change-Id: I577e0f7efc3db7f160dd48a3af41a057c2169ea8
2019-12-18 13:20:19 -05:00
Jonah Graham
ffec5f9534 Add legal docs as required by Eclipse Foundation Project Handbook
See https://www.eclipse.org/projects/handbook/#legaldoc-license
and https://www.eclipse.org/projects/tools/documentation.php?id=tools.cdt
2019-12-17 15:15:32 -05:00
Jonah Graham
b7792368c3 Add legal docs as required by Eclipse Foundation Project Handbook
See https://www.eclipse.org/projects/handbook/#legaldoc-license
and https://www.eclipse.org/projects/tools/documentation.php?id=tools.cdt

Change-Id: Ia0e7519f8ae79d0cdde678c1cc7c588beda4e24b
2019-12-17 15:15:14 -05:00
Jonah Graham
0e789adba8 [releng] Match baseline from cdt-baseline.target
Change-Id: Ia75de5a19f8ae643cd2851e01da0b9bfb7973693
2019-12-13 09:47:59 -05:00
Kondal Kolipaka
0848460687 Bug 553730 - Fix for findCommand() to handle directories
Change-Id: I2f0c833ca6a1493915db1e30b330dffc9ef3d590
Signed-off-by: Kondal Kolipaka <kondal.kolipaka@gmail.com>
2019-12-12 12:12:29 -05:00
Kondal Kolipaka
4b7b3c5e79 Bug 545373 - User Defined Toolchains are not getting saved
Change-Id: I41fa5c60d25936465e19ce4e4f2d820b14102b85
Signed-off-by: Kondal Kolipaka <kondal.kolipaka@gmail.com>
2019-12-10 10:20:22 -05:00
Jonah Graham
2042418982 [releng] Start pulling cdt-gdb-adapter from npmjs instead of jenkins
Change-Id: I3f194afba2c28313b694ddf4922d16bdb097b615
2019-12-08 21:31:41 -05:00
Jonah Graham
63b065eb1a [releng] Synchronize cdt.setup to cdt.target as it had become slightly out of date.
Change-Id: I23c3447f885bb2100dcd0f2d14e7b58a88c9ecab
2019-12-08 20:15:24 -05:00
Jonah Graham
bd814fdaf9 [releng] Bump to CDT version 9.11.0
Change-Id: If729509efbddc71adb565e224437b76089d6e099
2019-12-07 15:24:34 -05:00
Jeff Johnston
45585fcbbf Bug 553761 - NPE at GNUCSourceParser.identifier
- add null node check in GNUSourceParser.identifier()
- same for GNUCPPSourceParser.buildName()

Change-Id: Ic170d0220d179947af5b9c0d7dc50f1ed9e5965d
2019-12-05 10:59:43 -05:00
Simeon Andreev
9d897fcc04 Bug 553667 - Resource leak in ElfParser
This change fixes a file descriptor leak in
ElfParser.hasInterpProgramHeader(). An Elf object is created without
calling its Elf.dispose(). This results in a created RandomAccessFile
object, without a respective RandomAccessFile.close() call.

Change-Id: I6d2a0911857eb6fcb388b352801c2259ae19171c
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2019-12-02 15:21:24 +01:00
Jonah Graham
51d8fbf666 [releng] Bump version to 9.10.0 (fixup)
Change-Id: I8c0ffdca5b58dba8c24e068ff5c8458bf023d0ab
2019-11-29 15:01:02 -05:00
Jonah Graham
0d4fcccd3d Bug 553613: Limit memory growth on generated typenames
When using the cache, only put the string reference in the typename
if over the threshold.

This is essentially a fixup for Bug 519121

Change-Id: I1436a9740bfb8ce46747f9a2ab0649ed366c4d9b
2019-11-29 12:10:02 -05:00
Jonah Graham
273c8ca95a [releng] Update to newer maven-enforcer-plugin
Change-Id: I6fbdb6823482ff49532af4592771f39d1eee4da2
2019-11-25 12:10:06 -05:00
Baha El Kassaby
949efc6572 Bug 530443: Add support for "info sources" MI equivalent
*Implementation of -file-list-exec-source-files MI command.
*Add new Debug Sources view with tree-like structure

Change-Id: I6e734799712c059c8e53aa882777dfebd85aa0d5
Also-by: Jonah Graham <jonah@kichwacoders.com>
Signed-off-by: Baha El Kassaby <baha.elkassaby@gmail.com>
2019-11-25 12:01:21 -05:00
chammer
6001af3797 Use jdk 5 for-each loop
Replace simple uses of Iterator with a corresponding for-loop. Also add
missing braces on loops as necessary.

Change-Id: I7e158278fd2042b527f76b100815cf385b79ea20
Signed-off-by: chammer <carsten.hammer@t-online.de>
2019-11-23 11:43:59 +01:00
Nathan Ridge
7e267a4791 Bug 553141 - Fix logic error in TypeInstantiationRequest.equals()
Change-Id: Ie458f44a4384233ef96ed18e46f38fde309c7399
2019-11-19 21:28:15 -05:00