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

26245 commits

Author SHA1 Message Date
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
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
Jonah Graham
aeaf678425 [releng] move to cdt-infra repo
This script had been copied to the cdt-infra repo a while ago, this
update removes the copy left behind and redirects users to cdt-infra.

Change-Id: Ia4b2d90a9336947e0aad53a0fce6a569416ac379
2019-06-05 10:36:02 -04:00
Jonah Graham
6df1dace8b [releng] Update to latest GDB, 8.3, for tests
Change-Id: I36b0ce0021b853a940cd8e6ede9839060a2fcb83
2019-06-04 16:10:18 -04:00
Jonah Graham
ef07729e45 [releng] Move gdb path and version to test variables to root pom
They used to be duplicated in multiple places in further down poms.

Change-Id: Ifd7adf356892138a2aa79c22084a52cc25619b1b
2019-06-04 16:09:37 -04:00
Doug Schaefer
83792f71bd Bug 547881 - Allow targets to set ATTR_REMOTE_TCP
Adds support for this attribute in the ILaunchTarget attributes and
then convert it to the boolean attribute on the launch config.

Change-Id: Ieefa6892641517ff0fa6a0a04f63a6a8dbc35bf4
2019-06-03 14:15:46 -04:00
Doug Schaefer
6a27da170f Bug 547831 Add ILaunchTargets for GDB Remote
Adds ILaunchTargets for GDB Remote for TCP and Serial Port.
Adds a launch config provider that maps default launch configurations
for the gdb remote launch config types.

Alters the launch attributes by merging in the target attributes
over the launch configuration attributes. This is a no-op of the
target is the Null Target (which has no attributes).

Some string externalization that was missed from previous commits.

Carrying on tradition of ramdonly using Gdb or GDB in our class names :)

Change-Id: Ie8483110f594db593e704adda420ce6b14812dea
2019-06-03 00:22:36 -04:00
Jonah Graham
4324811b1b [releng] Updated officially supported GDB versions
Change-Id: I22eb86b34659ff54223a81dec4f8341b63b5675b
2019-05-31 17:17:08 -04:00
Jonah Graham
129bdeeb1e [releng] Update to latest orbit (RC2)
Change-Id: I7470eb06a3824013de65a0d024cd334ec8080812
2019-05-31 17:11:36 -04:00
Jonah Graham
9698af0fc6 [releng] Require target platform bundles as minimum version
Without setting dependent plug-ins to minimum version to match the
target platform we are aiming for we can imply (and therefore let install)
CDT into older versions of Eclipse where CDT does not actually work.

This can be exposed in very odd ways, such as IllegalAccessError, when
platform has allowed API changes.

However, rather than update every single bundle in CDT, only the
o.e.cdt.core/ui bundles are being updated as this should achieve the
desired result without every other bundle needing to be touched.

See Bug 536448

Change-Id: I1c8f102a9a750e40970197da3e6cd56d139492bc
2019-05-31 16:53:15 -04:00
Jonah Graham
6c6c9e8096 [releng] bring CDT.setup up to match cdt.target
Change-Id: Ia5c296573f2e25765c3a3a7d2acd209dd99ec403
2019-05-31 16:46:06 -04:00
Jonah Graham
518b8c2330 [releng] adapt to changes in platform for what is published for ecf
See https://www.eclipse.org/lists/cdt-dev/msg33571.html

Change-Id: Ib6bb075dfe41da6bb3221e0f73f24e7ce9869b0c
2019-05-31 13:08:10 -04:00
Jonah Graham
a9e84e4fb7 [releng] bump version numbers according to version number guidelines
See https://wiki.eclipse.org/CDT/policy#Version_Numbering

Change-Id: I54004437fa7a52b7c2b341fa9cb2d0683daf8962
2019-05-31 12:44:42 -04:00
Jonah Graham
67f0b785c4 [releng] update comparator repo
Change-Id: Iad16160a377428eb66f42ac0f12371a9bc724dc4
2019-05-31 12:27:18 -04:00
Jonah Graham
6f519d968a [releng] update to latest platform (RC1a) orbit (RC1) and wtp (M3)
Change-Id: Ie47d0d1ada6f4eef0b0f2d77806c4ce85071e738
2019-05-31 12:23:28 -04:00
Jonah Graham
6f642591b6 [releng] Use launchbar p2 directly from Jenkins machine
I haven't been able to get the automatic publishing working in time
and as Doug has been doing active work in that area I have temporarily
made this change.

Change-Id: I1d4b6776b77a116063b93f5f280dbf45719b7a6e
2019-05-31 12:23:11 -04:00
Marco Stornelli
862e8222ea Bug 547684 - Fix format assignment with init list
Change-Id: I4fbdc1c65eb25688231e8020bbc3baa750d97be0
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-31 01:00:07 -04:00
Marco Stornelli
90358f5374 Bug 355174 - Improved tests and code for quickfix
Change-Id: I032040e6c4d3c9342ebdbf72b3ba75114810a31f
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-05-30 17:41:05 +02:00