1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-13 12:05:21 +02:00
Commit graph

35653 commits

Author SHA1 Message Date
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
Greg Watson
9565430a5b Build uber jar.
Change-Id: Ia200cc07f4c73b288d1c6626de89216d269dc1f1
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-07-03 19:25:56 -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
Greg Watson
3275fce38b Try jar format.
Change-Id: I6bf7e0ca0af14ab65cc73d5c3a54a5c8e403b805
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-07-01 18:56:41 -04:00
Greg Watson
b2ed22cc17 Try to deploy dependencies.
Change-Id: Ic57da40bd49fa78d54cadf2b77cb058e68c3d7bb
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-07-01 15:18:59 -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
Greg Watson
edba296c44 Merge "Test deploy" into deploy 2019-07-01 11:18:44 -04:00
Greg Watson
34569c7f24 Test deploy
Change-Id: Ic1f6d59a8693535c18c2a7001638861f82e01fdf
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-07-01 11:14:37 -04:00
Greg Watson
927aba4e42 Test deploy dependencies
Change-Id: I0cc3098a5691dcf2521930b531b8f7970fdf41e5
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-07-01 11:11:56 -04:00
Nathan Ridge
451fa86e35 Bug 467346 - Retain attribute after struct key in C
Change-Id: I35a25bc635039c37b66d1f1e4037e943ffcb0d39
2019-06-29 02:44:22 -04:00
Greg Watson
e203e0df52 See if flatten-pom helps with deployment.
Change-Id: Id6f0a9fd3b233851a96da8fcfbf56975900c9d70
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-28 09:17:46 -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
Greg Watson
ba528b0b33 Update pom version to -SNAPSHOT so it is not installed in release repo.
Change-Id: I408f31fdb23d31812ebbf2b84f8ab8833bf215ae
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-25 16:20:23 -04:00
Greg Watson
bc9a5dfd18 Fix repo url.
Change-Id: I5a87b5b3d47f5a4c63c302f25b798d730c222de7
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-25 13:23:39 -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
Greg Watson
c7e6603357 Configure repo.eclipse.org
Change-Id: I0f6682cfdf77a2f99b7f81b11bfbfd64c2ed5f3f
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-25 09:41:08 -04: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
Greg Watson
f3ca265bf4 Update Eclipse repo to 4.12
Change-Id: Ic4d53b0cc59dcef5dd7a43aaf611790d4fb5e4c4
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-20 19:11:17 -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
Greg Watson
294d415f80 Bug 548036 - Add required files
Change-Id: I005b04f0c358b6591d3177cccde1e9e855bae28f
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-14 09:48:38 -04: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
Jonah Graham
63b9d17805 [releng] Ignore Lucene generated index files when doing baseline replace
Change-Id: I4702d75169634eb9d939b212b318d5656258e508
2019-06-11 12:33:48 -04:00
Jonah Graham
7741bd98f7 Bug 547894: Baseline replace must happen after pack200
The configuration for baseline replacement needs to be split.

This may be a bug in Tycho, but I cannot tell. It seems to me the
configuration about ignoredPatterns should be read from the
configuration block in the execution block, but it isn't.

Change-Id: I35e3f4007b0afc21d8bd81d5b07f76581879bc76
2019-06-07 17:20:27 -04:00
Jonah Graham
53e14118d2 Bug 547894: Fail build if differences before baseline replace
Also fix version numbers in all bundles who's binary contents have
changed despite no change in the source of the bundle.

Change-Id: Ic67b79aafa801c7ce96c5e52843ad5c881827d84
2019-06-07 13:57:15 -04:00
Jonah Graham
cb213e217f [releng] Update URL for cdt-site (From hudson to ci)
Change-Id: I35cc640e8dd579182fe653c93c7621cead116c5b
2019-06-07 10:20:49 -04:00
Doug Schaefer
b9c9c44ac2 Bug 548010 - Add support for Qt for linux-g++
We had linux-g++-64. But with Ubuntu 18.04, when you install Qt5
you end up with linux-g++. This simply add that and doesn't specify
the architecture so should work for both 32 and 64 bit.

Change-Id: Ia458e212ff53638496a7108f58b212ef96296afd
2019-06-06 13:40:12 -04:00
Greg Watson
3d1d193f7e Switch to pomless build.
Change-Id: Ic7984f7e16c1278ca17f9410b4a0c4728d10454b
Signed-off-by: Greg Watson <g.watson@computer.org>
2019-06-06 11:11:52 -04:00