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

26697 commits

Author SHA1 Message Date
Jonah Graham
5c7dbff43f [releng] Bump version to 2.4.0
Change-Id: I8d003bb0c98093bf9f9b108076b10b00f920af6a
2019-07-19 16:05:40 -04: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
Umair Sair
84e2470069 Bug 545976 Clicking on error/warning in build console doesn't open file
Problem:
========
Common builder invokes the build on all the referenced projects. For the
markers creation, the project on which build is invoked by user is used,
that is incorrect. Once all the referenced projects are built, the
actual project starts building and removes all the markers associated
with it, hence the markers created previously for referenced projects
are removed and now clicking on error/warning in build console of
referenced projects will not open source file because of missing
markers.

Fix:
====
Always set the correct project being built for markers creation using
setCurrentProject(..) API.

Change-Id: Ief051ac664ea964816fdcbe7f2f54bcf43caa212
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2019-06-21 13:19:27 -04:00
Umair Sair
15cf760405 Bug 546407 Project dependencies are not built in the correct order
Problem:
========
filterConfigsToBuild(..) always filters the configs that are once added
to set irrespective if it has been built or not. Consider scenario where
there are three project a, b, c and a depends on b & c and b depends on
c. When a is built, filterConfigsToBuild(..) returns configs of b and c.
Then b starts building and filterConfigsToBuild(..) doesn't return
config of c because its already in set. This is wrong and it should
return config of c because it is not yet built and b depends on it.

Fix:
====
If a referenced config by any project/config is not yet built,
filterConfigsToBuild(..) shouldn't filter it.

Change-Id: I5fbe77789f14ce3114200998070a7461069c98ab
Signed-off-by: Umair Sair <umair_sair@hotmail.com>
2019-06-21 13:18:06 -04:00
Jonah Graham
0ee3822b04 [releng] Add missing @since tags
The version of the plug-in had been correctly bumped already, but
the tags were missing causing API errors

Change-Id: Ief9f7250d3940c1ddd4d44ee19d53dc99f1af8b5
2019-06-21 11:26:29 -04:00
Jonah Graham
c0417f3f26 [releng] Update baseline to released 9.8.0
Change-Id: Id87a18aabe3ad9154313bedcba43f6e4a2e028e4
2019-06-21 11:19:21 -04:00
Mat Booth
d07a2c5bf6 Remove remnants of no longer supported arches
Change-Id: I9fb7caf1345dff8dd33964bf62f1bc1b513fa8b3
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2019-06-19 16:10:21 -04:00
Jonah Graham
121fed8e2d [releng] Update comparator repo to 9.8.0 release
Change-Id: I86b452fdaeb5277c8dbf8831781964a8c59df586
2019-06-19 14:10:32 -04:00
Jonah Graham
fdaf6c317e [releng] Update to Platform 4.13 and related dependencies
Change-Id: I4429827b153c1b0918581aa2117600b72565c72a
2019-06-19 11:48:23 -04:00
Jonah Graham
8e0ba58fa8 Bug 548334: Remove unused NLS message with no entry
This was causing:
Warning: NLS missing message: OverrideMethods_label in: org.eclipse.cdt.ui.refactoring.actions.Messages

Change-Id: I07e16ec58397fa268a06dcdba30dccfa1e66a93e
2019-06-17 07:59:54 -04:00
John Dallaway
5d806b8615 Bug 548281: Merge JTagDevice extensions
Change-Id: Id622e146cae95fa1904f629b49bd1814268ec080
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2019-06-15 12:35:22 +01:00
John Dallaway
bce75b4595 Bug 548281: Add SEGGER J-Link definitions
Change-Id: If832ddcfcdb4cadd629afe6c9e1ca48528a17d54
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2019-06-14 15:02:14 +01:00
Marco Stornelli
0b9b9890ee Bug 548138 - Fix override method with implementation
Change-Id: Icbea4fe97e8f3b481ea187f905661c8adcc7cc06
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-06-11 15:15:29 -04:00
Jonah Graham
f3e8387a8e [releng] Bump version to 9.9.0
Change-Id: I6641e51a8bfdb44fa5c646d97debf2bf814c107a
2019-06-11 12:33:48 -04:00
Jonah Graham
723078fba5 [releng] exclude pom.xml for build.properties
This was the only bundle that had pom.xml included

Change-Id: I6c303052220a6294481fcc55e8826c5e116190b6
2019-06-11 12:33:48 -04:00