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

40 commits

Author SHA1 Message Date
Marc-Andre Laperle
00b30bb03a Bug 512096 - Fix NPE selecting an LLVM toolchain in toolchain editor
When a toolchain is selected along with its builder, the builder gets
matched to a “real builder” (ManagedBuildManager.getRealBuilder). If the
builder is abstract, the builder is not in the possible list of matches,
as implemented in Builder.getMatchKey. This causes
getCurrentBuilderCompatibilityInfo to return null which is not handled.

This patch changes the base LLVM builder to a non-abstract one, which
solves this specific NPE.
Also, in order to be more helpful to the user in case it happens to
another toolchain, a null check was added with an error message that the
builder is incompatible. Then at least, it is more clear that something
is wrong and the user can pick a different builder. 

Change-Id: I4d26c568dfe6307b496719c10908a36933fd3ab8
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-19 21:51:36 -05:00
Marc-Andre Laperle
5fc81ecaf5 llvm: Cosmetics (trailing whitespace)
Also set some project specific preferences for save actions.

Change-Id: I8d9c68fd8f7e4a6e9e874e60c12796e2b9b783bf
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-15 10:04:28 -04:00
Marc-Andre Laperle
f187157456 llvm: Run code cleanup
Mostly organize imports and remove redundant type arguments.

Change-Id: I11e8e76f96a17fa521f3e7f8c8f9e3d645d445b3
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-14 10:36:35 -04:00
Marc-Andre Laperle
0046099052 releng: Make use of Tycho POM-less functionality
This removes a lot of pom.xml from the source tree. This is using the
"POM-less" Tycho functionality.
See
https://wiki.eclipse.org/Tycho/Release_Notes/0.24#POM-less_Tycho_builds

One advantage of this is that you do not need to update the version in
the pom.xml when you change it in the MANIFEST.MF because the pom.xml is
automatically generated. This also reduces a lot of the duplicated
information and pom.xml repetition.

- Maven 3.3 and up is required.
- Only eclipse-plugins and eclipse-features can be pom-less.
Repositories, target and others still have pom.xml.
- New parent poms are added because a parent is necessary directly one
level above the plug-in/feature that will have its pom generated
- Some test plug-ins had to be renamed .test -> .tests because it's
required so that it detects that it's a test plug-in
- Some suites were renamed so that they all use the same consistent name
"AutomatedIntegrationSuite"
- Profiles were added for the more common test configurations. They are
activated by the presence of simple .properties files that only serve to
activate the correct profile. The profiles:
  - One for UI tests (UI present and start in UI thread)
  - One for SWTBot tests (UI present and do not start in UI thread)
Other test plug-ins that are too different are kept intact and still
have
a pom.xml
- Fragments are kept intact since they all have different target
platform configurations

Change-Id: I9d73380eb766f547830c552daf08053a30b1845c
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-02-13 23:19:56 -04:00
Marc Khouzam
8cf5ed53f2 Update version to 9.3.0
Change-Id: Ic953ccc5d38ff3661ca44de21ed8c4b7dad5b246
2016-11-15 20:32:51 -05:00
Marc Khouzam
334777eb6e Update version to 9.2.0
Change-Id: I36ad4218b20b8ea70584c89f5be45c757bf4c714
2016-11-14 23:50:05 -05:00
Marc Khouzam
cd559dafaf Update version to 9.1.0
This commit used the script releng/scripts/ChangeFeaturesVersion.sh

Change-Id: I8274a6e8dd5c0f1e450f07952e138b265a441a62
2016-08-17 10:11:57 -04:00
Marc Khouzam
9e1e981b4d Move the rest of the CDT plugins to java 8
This change was generated using the script:
releng/scripts/ChangeJavaVersion.sh

Change-Id: I2ad96dc682a5acb8529c3edec40de279c331b5a4
2016-06-22 14:51:43 -04:00
Mat Booth
08074f77aa Bug 459567 - Help missing for LLVM Managed Build
Include 'help' directory in build.properties

Change-Id: I6c86a5325a323c67a50166b70372c8a918aa8553
Signed-off-by: Mat Booth <mat.booth@redhat.com>
2016-05-24 10:48:45 -04:00
Doug Schaefer
0d7ee343e0 Add MSYS2 support for managed build. A few Qt cleanups on Windows.
Change-Id: I07ed0cb4a83996de194559570fedf9fb1b21b42d
2016-05-12 15:32:51 -04:00
Alex Blewitt
2356a29c70 Bug 492200 - Replace StringBuffer with StringBuilder
There are many opportunities for replacing `StringBuffer` with
`StringBuilder` provided that the type isn't visible from the
public API and is used only in internal methods. Replace these
where appropriate.

Change-Id: Ic2f50c5b6f3c3a4eae301bb3b40fb6faed235f79
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-21 22:17:03 -05:00
Alex Blewitt
2114f6b108 Bug 491984 - Replace .equals("") with .isEmpty()
In many cases a String's empty status is tested with `.equals("")`.
However, Java 1.6 added `.isEmpty()` which can be more efficient since
it compares the internal length parameter only for testing. Replace
code using the `.isEmpty()` variant instead.

Some tests for `"".equals(expr)` can be replaced with `expr.isEmpty()`
where it is already known that the `expr` is not null; however,
these have to be reviewed on a case-by-case basis.

Change-Id: I3c6af4d8b7638e757435914ac76cb3a67899a5fd
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-19 13:35:54 -04:00
Marc Khouzam
b745736775 Incremented CDT features version to 9.0.0
This includes bumping the standalone debugger to 9.0.0

Change-Id: I55fae1cec995b5f6865a5b174c004ed1b76e9bea
2016-01-18 16:37:47 -05:00
Marc Khouzam
f3ff649041 Fix copyright of all CDT plugins using the copyright tool from platform.
This commit does not add missing copyrights, just updates the date on
the existing ones.

Change-Id: I646f5afd533a1fcc539bdf2e0686b22f406ecf65
2016-01-03 20:38:31 -05:00
Marc Khouzam
bb61124897 Incremented CDT feature version to 8.8.0
Change-Id: Ib1189a08a5f0225fd676b682dc8a10477ad3acc5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-06-10 09:33:49 -04:00
Marc Khouzam
e820f872ad Incremented CDT feature version to 8.7.0
Change-Id: Ife0feaaa9263d2b7797e31d628250bd26caff1b5
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-05-04 21:07:13 -04:00
Jeff Johnston
61200ab252 Fix CLang Toolchain enablement
- Fix LlvmEnvironmentVariableSupplier.getDirIfLlvmFound method
  which was not bothering to look for llvm-ar in the user's path
  because it would only set its internal llvmPath variable if
  directories ended in '/' or if a subdir was provided which is
  not the case for it being called from LlvmToolChainSupported
- set the llvmPath to the candidatePath at the beginning so the
  test will be performed

Change-Id: I4b93fb3e569c32cff580c57dbedbe730dbbe057e
2015-04-13 13:01:14 -04:00
Marc Khouzam
4781f20495 Move some leftover plugins from Java 5 to Java 7.
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
2015-03-25 13:42:20 -04:00
Sergey Prigogin
693185186e Cosmetics. 2015-01-06 21:02:42 -08:00
Sergey Prigogin
ce73d736bd Fixed an NPE. 2015-01-06 16:41:30 -08:00
Sergey Prigogin
252eaf4c0f Incremented CDT feature version to 8.6.0.
Change-Id: Ic90c8e6a68d21e5b90ec3fac997da6a95a29bedf
Signed-off-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Reviewed-on: https://git.eclipse.org/r/39066
Tested-by: Hudson CI
2015-01-06 19:40:38 -05:00
Marc Khouzam
6004528ff6 Update to new CDT Logo
Change-Id: Iac76b204027efa01c8f848050a36d05022ecdf86
Signed-off-by: Marc Khouzam <marc.khouzam@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/38363
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Tested-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2014-12-16 13:29:12 -05:00
Alexander Kurtakov
0bf6cec447 Put LLVM preference page in CPluginPreferencePage category.
Prevents LLVM page being top level and makes LLVM threated more like
XLC.

Change-Id: I189f9fb00f256c9721d95b7a163284db4e31d370
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/30296
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-23 09:53:58 -04:00
Alexander Kurtakov
a03c0e1ef2 Reduce unused parameter to warning.
This allows compiling in the IDE and not fail because of exception not
used in catch block.

Change-Id: I162645b25162d80b4447d87edabc4d436d6d9d2f
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
Reviewed-on: https://git.eclipse.org/r/30295
Tested-by: Hudson CI
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
2014-07-23 09:53:07 -04:00
Sergey Prigogin
d8154bd340 Inremented branding plugin version to 8.5 2014-07-21 17:39:01 -07:00
Sergey Prigogin
1d166260a8 Bumped up CDT version to 8.4.
Change-Id: I1229344feaaed4a3551ceb7b1ef1410545048b55
Reviewed-on: https://git.eclipse.org/r/20908
Reviewed-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
IP-Clean: Sergey Prigogin <eclipse.sprigogin@gmail.com>
Tested-by: Sergey Prigogin <eclipse.sprigogin@gmail.com>
2014-01-21 17:35:29 -05:00
Andrew Gvozdev
6856d55b68 bug 416628: "Export" of entries of language settings providers to referencing projects - added provider to do that 2013-09-08 08:09:33 -04:00
Andrew Gvozdev
652ce4748e Fixed parent pom version to reference 2013-08-27 15:16:24 -04:00
Andrew Gvozdev
e288c29596 bug 414832: "LLVM with GCC" toolchains contain duplicate compiler tool 2013-08-16 21:31:47 -04:00
Andrew Gvozdev
0592f0ad62 bug 414990: Support C frontend (+ dialects) in LLVM toolchain 2013-08-16 18:22:22 -04:00
Andrew Gvozdev
1e7dab2588 Bug 413771: Dialect category and options for language standards for LLVM toolchains 2013-08-12 13:09:10 -04:00
Andrew Gvozdev
ad9c3fb0e1 Bug 413771: Retrofit LLVM toolchain with language settings providers 2013-08-12 13:08:58 -04:00
Marc-Andre Laperle
ad080ac26c Bug 406162 - A text field is added to the LLVM preference page after
adding an include directory

Remove the Text control. It doesn't look like it was being used in any
way.

Change-Id: Ib9266678c1211309979b96c2e8cda6087c759254
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/14532
2013-07-16 01:13:15 -04:00
Marc-Andre Laperle
7dd2b7922d Bug 409915 - LLVM support throws NPE
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2013-06-08 20:04:53 -04:00
Doug Schaefer
5f4d0a13d9 Bug 409477 - fix clang linker to call clang instead of llvm-ld.
Also fixed binary parser on Mac.

llvm-ld doesn't exist in newer llvm implementations. From what I can
tell, clang now just calls the real linker after running and massaging
the bc files.

Changed to call clang and clang++ drivers at link time. Had to fix
some of the options to make it work. Just a stop gap since there are
more issues to resolve but at least it's enough to get working.

Change-Id: I54b78e85b16a77549a5be9d282bc6f47f723947d
Reviewed-on: https://git.eclipse.org/r/13515
Reviewed-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
IP-Clean: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-by: Doug Schaefer <dschaefer@qnx.com>
IP-Clean: Doug Schaefer <dschaefer@qnx.com>
Tested-by: Doug Schaefer <dschaefer@qnx.com>
2013-06-03 22:53:46 -04:00
Marc-Andre Laperle
898e6a676a Bug 405909 - LLVM plugin refreshes resources when bp is inserted in java
Change-Id: Iad9082d59d188714bed6f6e110c32a631e65450f
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
Reviewed-on: https://git.eclipse.org/r/13468
2013-06-03 10:59:43 -04:00
Doug Schaefer
eb663099f5 Clean up more of the legal files for the new features LLVM and Qt. 2013-05-30 13:33:39 -04:00
Marc-Andre Laperle
fd5ee15baa Change some deprecation errors to warnings in llvm plugins 2013-05-07 23:20:39 -04:00
Doug Schaefer
993bf8d6aa Add llvm to the build. 2013-03-03 23:48:27 -05:00
Doug Schaefer
b4ccbb2748 Bug 338553 - import plugins from llvm4eclipse. Just importing everything
they had in svn.
2013-03-03 22:50:09 -05:00