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

34486 commits

Author SHA1 Message Date
nickboldt
3ba744c9c8 bump to version 4.5.102
Change-Id: Idc97b3f87d8a937c2fc94d6d98e03014e95dbb27
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-07-30 13:33:53 -04:00
Nick Boldt
499db8b2b5 Merge "Bug 546291 reflect the state of the active tab on TabScrollLockAction" 2019-07-30 13:31:41 -04:00
Marco Stornelli
cd97ba6ced Bug 549653 - Fix wrapping for lambda expression
Change-Id: I5b879edbcda9c5c1fb0087891391612af2c47d09
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-07-30 13:53:07 +02:00
Doug Schaefer
b9359d5247 Fix up some problems found against the latest API baseline.
Change-Id: I5679b36166385b617a96ef8180bbd27ae002e900
2019-07-25 10:17:59 -04:00
Doug Schaefer
f96887cb35 Don't add null parser ids to the list of binary parsers.
This started happening when I added the ErrorBuildConfiguration which
returns a null id. This happens when you create a CMake project and
add a new launch target. Not totally sure how we got an error config
for that. Will investigate that later.

Change-Id: I1a4e7c528d2cee101a432d386ad6a7505b9983b6
2019-07-24 22:39:46 -04:00
Jonah Graham
055349a734 Bug 548526: Enable individual mvn projects to be built
Although a little profile "magic" is needed, by adding -DuseSimrelRepo
to the command line to enable and disable the correct profiles
individual mvn projects can be built against the simrelRepo.

This enables, for example, the ability to build the standalone debugger
against the simrel repo without having to change how normal builds are
done by using:
   mvn verify -DuseSimrelRepo -f debug/org.eclipse.cdt.debug.application.product

A simrel p2 site can also be provided with -Dsimrel-site=<url>

Change-Id: I45a636c3c1042bc2fbb6eea5129c6553027e92df
2019-07-24 19:13:44 -04:00
Nathan Ridge
f78158904b Bug 549035 - Constructor with reference to initializer list
Change-Id: I83fd8d2453c36feb51bab80b5bf0943b68a1c97a
2019-07-23 00:49:32 -04:00
Marco Stornelli
4c0e7d9f68 Bug 545959 - Added checker for assignment operator
Change-Id: Ib48742cbc04679ab9e48349f4d68aea5657d38c9
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-07-23 00:47:39 -04:00
Marco Stornelli
04350fec0e Bug 376395 - Fix const methods with never join wrapped lines
When at the same time never join wrapped lines and next line
for opening function brace were selected, two tabs were added.

Change-Id: I90f606bf7f8b7bb7e83f3ae85d7cbb9cd0146b97
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-07-20 10:18:08 +02:00
Jonah Graham
fb05ee51d8 [releng] Bump plug-in version number for bug fix in Bug 549066
See commit 236be726c4

Change-Id: I6d401f46380c5821537184b0d55b2ac748f9986d
2019-07-19 16:07:23 -04:00
Jonah Graham
5c7dbff43f [releng] Bump version to 2.4.0
Change-Id: I8d003bb0c98093bf9f9b108076b10b00f920af6a
2019-07-19 16:05:40 -04:00
nickboldt
d2884b8150 bump to 4.5.102-SNAPSHOT
Change-Id: I1481ac53d6bd5a0c66eced40acfa77a51c3c73f4
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-07-17 08:09:50 -04:00
nickboldt
a0e9810512 bump to 4.5.102-SNAPSHOT
Change-Id: I12c461c9d05241629442ae84ea1c2f439a23039d
Signed-off-by: nickboldt <nboldt@redhat.com>
2019-07-17 07:53:45 -04:00
Julien Dehaudt
19351cbc2b Bug 549013 - Eclipse menu won't display on Ubuntu 16.04 LTS when SSH/Serial command shells are opened
Buglink: https://bugs.eclipse.org/bugs/show_bug.cgi?id=549013
Signed-off-by: Julien Dehaudt <julien.dehaudt@st.com>
2019-07-17 11:21:08 +02:00
Doug Schaefer
e744550278 Bug 549014 - Manage CMake toolchain files by toolchain
Use the toolchain type and id as the key to the Map holding the
toolchain files instead of the Path to the file. Also simplifies the
build config since we can always figure out the toolchain file from
the toolchain. Deprecate getting toolchain by path since that shouldn't
be needed any more.

Also took the opportunity to add javadoc to the interfaces.

Change-Id: I11ae2ad8177a3f60399742c8c19576f85ea4b8c0
2019-07-15 16:30:59 -04:00
Doug Schaefer
236be726c4 Bug 549066 - NPE in Launch Bar injection when running headless.
Adds a check that we actually got an application before doing the
injection.

Change-Id: Ie3670f1c35d107f8147799a449498e03b950ac00
2019-07-15 10:10:12 -04:00
Jonah Graham
eb4f8e4e9b [releng] Update to 2019-09 M1 dependencies
Change-Id: Ic5edbb2c3c435f57d1c0fa2bc2e3044e13739cc8
2019-07-12 10:05:55 -04:00
Marc-Andre Laperle
cf9922cd2f Increase PDOM version to force rebuild for bug 549028
Change-Id: If18da2b194515c64351ed61b149593566afbc7d8
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-07-11 00:20:44 -04:00
Nathan Ridge
1ea6dac9af Bug 549078 - ArrayOutOfBoundsException in AbstractIndexerTask.IndexFileContent.merge()
Change-Id: I7ceacfc9c14e10bdecf7dda3c793a3ed26559bc2
2019-07-11 00:00:06 -04:00
Marc-Andre Laperle
76b7b64307 Bug 549028 - Fix missing getRecordSize() leading to index corruption
Because of the missing getRecordSize implementations, subclasses would
starting writing in records that were thought to be malloc'ed by
the parent but it was instead writing in other blocks, possible used
by other PDOM objects or free blocks to be used later and now not initialized
to 0.

This could lead to a few different exceptions like
- BufferUnderflowException(Chunk.getChars)
- CoreException: Corrupted database
- ArrayIndexOutOfBoundsException(AbstractIndexerTask$IndexFileContent.merge)
and possibly others.

Change-Id: Ie6d1986a22a9fb5f5e90cb741046d098ebf10a90
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-07-10 21:52:38 -04:00
Jonah Graham
577061ac79 Bug 542488: Feature for DAP in CDT
Change-Id: I981660855f9f0305d0c08af5eb361cadbde9b86c
2019-07-10 18:23:38 -04:00
Jonah Graham
bf327ec364 Bug 542488: Memory view support
Change-Id: I8c3343f0ead46ab203d58f77370dd2dadda550ff
2019-07-10 18:23:38 -04:00
Jonah Graham
d7b7f10255 Bug 542488: Initial/rudimentary version of DAP integration
README:

Create a C/C++ Application launch as normal, and in the Launch
Configuration dialog click "Select other..." at the bottom/center
and selecting GDB (DAP) Debug Process Launcher
(you can't do this in the LaunchBar's dialog as it does not support
changing the launcher).

Then debug as you normally do (with less features so far :-)

Change-Id: Ia36acedf064b3774c6ac2a863880eaf7efe9c399
2019-07-10 18:23:38 -04:00
Jonah Graham
f96971a278 Bug 542488: Remove duplicated code
When DSF was first created it was a separate project that borrowed
heavily from CDT, as such (AFAICT) some code was copied from
o.e.cdt.launch to DSF. This commit de-duplicates some of that code
as the DAP implementation wants to reuse the code too and another
copy is not wanted.

Change-Id: Ie54187dabc9c32224575c0bf51bcabfab00ca340
2019-07-09 21:17:22 -04:00
Jonah Graham
edfc7d4c0e Fix generic and other warnings
Change-Id: I77173712bf2b775eae5573f0abfb7f9900123438
2019-07-09 21:17:22 -04:00
Jonah Graham
1d4e938383 [releng] Bump version number to 1.1.2
Also add some consistency to version numbers.

Change-Id: Idc0eda9f1609deaa870482433906f00138fac1b2
2019-07-08 20:26:48 -04:00
Jonah Graham
9dd28fadbb [releng] Update target platform to latest dependencies
Change-Id: Iebdbc4caf1e3f2235e6f504b83b2be17282a3b88
2019-07-08 20:26:19 -04:00
Jonah Graham
4af6611113 [releng] Update to tycho 1.4
Change-Id: I787b6b0d6fdc06edb9a79fc2318f3d4d86b2e067
2019-07-08 20:05:00 -04:00
Jonah Graham
936dec3517 Remove workaround for private methods in IDE
Now that Bug 516470 is resolved, we don't need the workaround
in CDT anymore.

Change-Id: I3e8b0f0ce7fc272a81d6b7437ce7a8d588e91991
2019-07-08 14:51:09 -04:00
Jonah Graham
d54fbd7da2 [releng] Update to latest stable I-build of Platform
Change-Id: Ia7320c24eb02b57c5fc7059e5a4cf1055527c84a
2019-07-08 14:06:24 -04:00
Jonah Graham
578bfc472d [releng] Update target platform to latest dependencies
Change-Id: I3f37027e3a7006d9ddddddb16a0671c615fe041d
2019-07-08 13:56:50 -04:00
Marco Stornelli
cd627b0a49 Bug 540001 - Added option to control comments formatting
Change-Id: I97b1813113f2c53a549b5be7d91ff834fce86bd5
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-07-07 09:37:23 +02:00
Doug Schaefer
b953649c09 Bug 548980 - Track launch target connects and add error builds
We need a way to alert the user that we are unable to find a toolchain
that maps to the current target. An ErrorBuildConfiguration is created
that simply prints out an error message at build time to handle this.
We then set one of these as the active build config in the tracker
with the appropriate message.

We also add a target listener so that when a target becomes OK_STATUS,
we run the tracker again to see if we have the right active build
config for that target. Some targets can only determine some of their
attributes when connected.

Hook up the IToolChain matches so we're using it in the toolchain
manager. This allows toolchains to do more complicated matching of
the properties.

Change-Id: Icaff85117e8147cd2793f2915fa75ce33673ab52
2019-07-05 10:43:56 -04:00
Marc-Andre Laperle
b1702ff753 MSVC: Add a few more macro workarounds for missing built-ins
This change adds a few more macro to define things that are supposed to
be built-in in MSVC. Eventually we might want to move some of those to
the parser but it's not clear to me if we want to polute the GCC parser
with all of this.

Change-Id: I6672d8f14470115aa37a0d76b2b4fb086fe4494f
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-07-04 00:52:13 -04:00
Marc-Andre Laperle
dee22911a5 MSVC: Add some type-traits supported by MSVC in the scanner configuration
Add existing type-traits that were implemented for GCC that are relevant to
MSVC. Some are missing but even with those parsing is improved with minimal
effort. For the LLVM codebase, I see it go from 0.46% unresolved names (16,668)
to 0.19% (6,950).
This is combined with another patch that adds temporary macro hacks.

Change-Id: I441dcfa4a986edef78b75c0d6db04b78fdbc97b3
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-07-04 00:51:22 -04:00
Nathan Ridge
96bbd4b7a8 Bug 548954 - Type transformation specifier in type-id
Change-Id: Ia8e0aaf7814cb104d296ae20cc5f43fd2ddd0792
2019-07-03 23:02:35 -04:00
Jonah Graham
e09163e75a [releng] Change default to be baseline compare and replace is not run
Use baseline-compare-and-replace profile to run it.

Change-Id: Iaacfad8f920f28cf773763e804be90ba8c5f30cf
2019-07-03 13:57:42 -04:00
Nathan Ridge
fe003c3b8f Bug 548700 - Handle prefix negative sign in FloatingPointValue.parseDouble()
While a literal expression itself will never be negative (the negative
sign is parsed as a unary operator), we also use FloatingPointValue to
represent results during value computations which can be negative.

Change-Id: I16227b2d19256066b094ae60476e124b4bcea14d
2019-07-02 15:20:42 -04:00
Marco Stornelli
35a1923321 Bug 467346 - Fix format structs/unions with attributes
Change-Id: I516c53978c7dea0191fc66d2820e1dbe5a664b48
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-07-01 17:57:48 +02:00
Nathan Ridge
451fa86e35 Bug 467346 - Retain attribute after struct key in C
Change-Id: I35a25bc635039c37b66d1f1e4037e943ffcb0d39
2019-06-29 02:44:22 -04:00
Felix Morgner
996d7193c0 Bug 488349 - Organize Includes removes an include necessary for a...
Add missing ; to test case.

Change-Id: If0224c4fc3580cbe527efe0d3a5739896a000d7e
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2019-06-28 04:03:49 -04:00
Thomas Corbat
acb5ab5105 Bug 548712 - MinGW installation is not recognized
Recognize MinGW installations by checking the path of gcc.exe for
substring "ming".


Change-Id: Ibc6d4b03ef715036176e3aea6382dd986e4caae8
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2019-06-28 02:15:49 -04:00
Marc-Andre Laperle
9dd503800c Bug 547967 - MSVC Build Output parser
This new Language Settings Provider allows parsing MSVC (cl.exe) compilation
commands, It is done similarly to the GCC Build Output Parser.
It is not enabled by default but can be enabled when in the context of
building with an external builder.

In general, MSVC support still needs some work but this output parser greatly
facilitates setup for certain types of projects.

Change-Id: I3fb110ecdfbac1cabbc16239ad6667a5e628d443
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-06-26 19:56:11 -04:00
Jonah Graham
aa4e88b0dc Bug 547894: Provide a way to skip baseline replace and compare
Change-Id: If8080db7374eabb7a640deba0fab1e26a785ac5c
2019-06-26 11:00:27 -04:00
Marco Stornelli
74ab567eeb Bug 548141 - Fix description of Codan project options
Description was a bit misleading.

Change-Id: I8001a638468a21e5b8ae8b19070d757f28dd79df
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-06-26 00:49:20 -04:00
Hansruedi Patzen
9fe8978817 Bug 548512: Declarator formatting multiple keywords between pointers
Bugfix and removal of code duplication.

Change-Id: Id6a94c4cf59311f287b73e09019ddd323361fdc7
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2019-06-25 18:32:23 +02:00
Nathan Ridge
e435167a1a Bug 548482 - Return non-null from CPPFunctionProblem.getType()
This avoids an NPE as callers of IFunction.getType() do not expect it
to return null.

Change-Id: Ice90fa358c25007dffb41217c5a38d6c2f4a9d0e
2019-06-25 00:01:37 -04:00
Nathan Ridge
f65e93596e Bug 548482 - Add CPPClassSpecialization.RecursionResolvingConstructor
This avoids an ArrayStoreException in specializeMembers().

Change-Id: I88a92462ef1ace4e99a0b45a9ba5975c705dab67
2019-06-24 19:09:32 -04:00
Jonah Graham
6b435e1faf Bug 547763 - Bump patch version for previous change
Fixup for commit 141142dcab

Change-Id: I7be9eb1021eb611c7103aff7ea85fcdc3f5f1a87
2019-06-24 12:49:32 -04:00
Nathan Ridge
141142dcab Bug 547763 - Consistently handle IArrayType.getSize() returning a null IValue
Change-Id: I0246f1af5f3ed16f6ab03ff30dd9a0b27ee37df6
2019-06-21 14:44:18 -04:00