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

26153 commits

Author SHA1 Message Date
Marc-Andre Laperle
35d0e13240 Bug 514459 - StackOverflow in PDOMCPPVariable.getInitialValue
Change-Id: Iaee32f03a4fa821979fca1e1ca7b2b272bac1737
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-05-26 11:47:09 -04:00
Alexander Kurtakov
fb61407d48 Rebuild help bundles with 4.7milestones repo.
This is needed so the lucene indexes generated are used in Oxygen. The
current lucene 3 indexes shipped are just ignored by the platform as
lucene 6 can't load them and the data is reindexed.

Change-Id: Ic171dee653c05230f0454f4e736160f02c7eefc0
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2017-05-26 15:18:40 +03:00
Nathan Ridge
4412c851ab Bug 516686 - ArrayIndexOutOfBoundsException in CPPASTLiteralExpression.computeStringLiteralSize()
Change-Id: I45ce05315c57847bf8ae784b2fe7569a72716894
2017-05-25 20:52:22 -04:00
Nathan Ridge
b0cfef83db Bug 516685 - ClassCastException in CPPTemplates.createInstance()
Change-Id: I9b4ca25afa60a6ed3a79411cc5daa27add3e9cba
2017-05-25 20:51:01 -04:00
Doug Schaefer
0880413e98 Bug 516836 Terminal support for Arduino.
Add Arduino Serial Monitor as a Terminal Connector type. It uses the
Terminal's new cdtserial connector for communication and adds a
config panel that lets you pick the Arduino remote connection to
auto select the serial port. Also switched the Arduino launch
to fetch the serial port out of the global registry to pause and
resume the port while launching. The Terminal does not use the
remote connection to get the serial port.

Note: also adding the terminal as a dependency for builds. Yes,
further adds to our build cycle, but we're dealing with it so far
with o.e.remote.

Change-Id: I5a7cc9ffbf8ae60cd86e0e5440547d12202acbac
2017-05-23 16:41:00 -04:00
Vincent Guignot
e74222b86c Bug 516227: solib-search-path with space fails
If the solib-search-path path contains a space, CDT adds doubles quote
to escape the space (in MIStandardParameterAdjustable class) . But Gdb
client doesn’t understand the double quotes path.
This patch do not add double quotes when the path contains spaces.

Change-Id: I080be17023647dfac2b00296cdd54c7f9499102a
Signed-off-by: Vincent Guignot <vincent.guignot@ingenico.com>
2017-05-23 04:47:59 -04:00
Nathan Ridge
3147cc4732 Bug 516627 - Add support for generic lambdas
Change-Id: I2e8d16cfe2dc58b77e36fa7a6957506c90b7e75a
2017-05-22 13:39:55 -04:00
Nathan Ridge
f579acd381 Add some more commonly used types to SemanticTestBase.CommonCPPTypes
Change-Id: Ifec1e26f9e5a31651229e50002dfcb2d67b1379d
2017-05-22 13:39:29 -04:00
Nathan Ridge
9aa8aca96b Factor out an AST2CPPTestBase base class for C++ AST2 tests
Change-Id: I923fa1559a0cca584ff3a601d59ac71c0e491c49
2017-05-22 13:38:53 -04:00
Jonah Graham
7f8440b6b2 Bug 516813: don't mark all targets as secondary
Change-Id: I9da30b0504f1f89e927b9f735fc98a09bfea08b5
2017-05-17 14:34:09 +01:00
Jonah Graham
b48696a6ea Bug 314428: add missing copyright header and format file
Change-Id: I79883240c004485787879383ee29663444ccf8ba
2017-05-17 13:39:47 +01:00
Doug Schaefer
822e0d0505 Bug 516407 Set Agent and make package.json downloads more robust
The ESP8266 URL started reject connections. Turns out setting the
User-Agent property on the connection fixes that. I also made this
more robust from download failures so that at least other packages
can be downloaded. Finally, I removed the ESP8266 URL from the
defaults.

Change-Id: Ib2ea5667ba490ae660883a30b3049c3d736cfdb7
2017-05-16 21:39:41 -04:00
Doug Schaefer
43e62924a1 Bug 498171 Propagate scanner info fix for Arduino.
Change-Id: I3ed23049f0364d8fe989f1fa0d8a9b7b47378f32
2017-05-16 20:57:17 -04:00
Doug Schaefer
4b2e1e5b41 Add a registry of open Serial Ports.
This will be used by components that need to pause an open serial
port to run some other functionality over the port. For example,
Arduino needs to pause the port to run the bootloader. This removes
the need for Serial ports to use o.e.remote.

Change-Id: Idb14598541ccf4e87c702cf2e5442335c64a6c65
2017-05-15 16:06:39 -04:00
Doug Schaefer
47b1581eb7 Bug 516318 Remove the old MBS Qt5 template
We only support Qt projects with Core Build using the new wizard
in the C/C++ Projects wizard.

Change-Id: I3e99e064b85fcf6f60923812c67c6dbe6b90e3ae
2017-05-15 13:54:08 -04:00
Felix Morgner
ca1ab7f52d Bug 491957. Preferences & save action for choosing const alignment
Conflicts:
	core/org.eclipse.cdt.core/META-INF/MANIFEST.MF
	core/org.eclipse.cdt.core/pom.xml
	core/org.eclipse.cdt.ui.tests/ui/org/eclipse/cdt/ui/tests/text/TextTestSuite.java
	core/org.eclipse.cdt.ui/pom.xml

Change-Id: I061fa28d2e0b37f6d00232ad619f23b892e13ce6
Signed-off-by: Mario Meili <mmeili@hsr.ch>
Signed-off-by: Benny Gaechter <benny.gaechter@hsr.ch>
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2017-05-15 02:59:54 -04:00
Nathan Ridge
619da2a170 Bug 408470 - Add partial support for C++14 return type deduction
Out-of-line definitions where the definition is in a different file
than the declaration are not supported yet.

Change-Id: I3631bdb3e08abe2aab266065c7858c66170fb570
2017-05-14 13:48:36 -04:00
Nathan Ridge
fb847a82ce Bug 408470 - Introduce SemanticTestBase to serve as a common base class for AST and index tests
This allows reusing more code, such as CommonCPPTypes and
BindingAssertionHelper, between the two test suites.

Change-Id: I8203191fc3a10565add0ae1bd25c98f743cd1e64
2017-05-14 02:08:24 -04:00
Nathan Ridge
4e760d8690 Bug 408470 - Define some more common C++ types in AST2TestBase
Change-Id: I794439a2d68f7b744afdef80b1f92a09996f95d2
2017-05-14 01:41:52 -04:00
Nathan Ridge
08ea44c0af Bug 408470 - Move the variable template tests into the new cxx14 subpackage
Change-Id: I45a598d6cf920860a6f08d25e8921cbf310734a8
2017-05-14 00:29:08 -04:00
Nathan Ridge
1f2198a8bf Bug 408470 - Move C++14 constexpr tests into cxx14.constexpr subpackage
Change-Id: If9ac633020e568a0e4218a2ad358ee21eb1cffd7
2017-05-13 23:43:31 -04:00
Nathan Ridge
f9e4f1077a Bug 408470 - Add a missing message for a problem type
Change-Id: Ic2d6db5d961bbfe403edc61113c1ffacf30228f3
2017-05-13 23:13:51 -04:00
Nathan Ridge
88e19bfee6 Bug 408470 - Introduce static ProblemType instances for more problem types
Change-Id: Ib025e61aaf70f68bfe655527add2c441b9f647d7
2017-05-13 14:29:38 -04:00
Nathan Ridge
882f8e95a9 Bug 516291 - Improve propagattion of instantiate failures through EvalFunctionCall and EvalComma
Change-Id: Ieafe15a88c3838d15aaaf9043199ae2caf1c31db
2017-05-12 23:28:30 -04:00
Nathan Ridge
9b809b0ad7 Bug 516291 - If a function call has dependent arguments, resolve the function name as a CPPDeferredFunction even if there is only one viable candidate
This ensures that, when instantiating the function call, we get into
EvalFunctionSet.resolveFunction(), and check that the function is
actually callable with the instantiated argument types, and error out
if it isn't (which is important for SFINAE purposes).

Change-Id: Ia01755bc1a830fded1f61658f4beef875cc0b029
2017-05-12 23:28:11 -04:00
Nathan Ridge
9c0d9fec08 Bug 516290 - Correct computation of decltype(expr) for dependent expressions
Change-Id: Iabc49563e85e8649a94a77210eb066253925ea3c
2017-05-12 22:49:23 -04:00
Jonah Graham
b564575d51 Bug 314428: speedup build console - limit UI thread
Re-wrote the BuildConsolePartitioner to do as many operations as possible
in the non-UI thread and only to update the UI thread in batches.

Key changes:
- The UI thread "pulls" changes when it is ready, this means that many
  lines of output are updated in one go. This compares to the "push" that
  the non-UI thread used to do. The previous code pushed a change to the
  UI thread on every line of build output.
- The limit on console size is now soft, rather than recalcuating the
  entire document on each line (i.e. add line at bottom, remove line
  from top) the document is truncated to the limit size as it reaches
  2x the limit size. This calculation is also done more effeciently by
  tracking the number of lines each partition contains rather than
  recalculating them.
- Folded most of the implementation of BuildConsolePartition into
  BuildConsolePartitioner. This is because the partioner has a global
  view and is much more efficient at determining if adjacent partitions
  can be combined. In addition, rather than having the complexity of
  splitting partitions that were too long, instead make sure we don't
  create such partitions in the first place.

Change-Id: I47543db3fef754e779684cae44d3316982f1bc0a
2017-05-12 11:51:08 -04:00
Jonah Graham
f14ee6a61d Bug 314428: speedup build console - better handle duplicate markers
This changes the algorithm used to handle duplicate markers when build
is running.

Change-Id: I8d8b61edd80ae4da4c0e0eea3806b0efecb570e0
2017-05-12 11:50:08 -04:00
Jeff Johnston
88c6da2e40 Add seccomp:unconfined option when debugging using a Container
- current Docker daemons don't allow ptrace in the default
  seccomp profile so specify "seccomp:unconfined" when
  kicking off the gdbserver

Change-Id: I742a99221c897a553a46bc768e713d74b1fda22e
2017-05-11 21:35:56 -04:00
Nathan Ridge
b10156e36d Bug 516284 - Binding of const class rvalue to T& parameter
Change-Id: Ieb7293c20ba78611097a3d751be16fddb25f3627
2017-05-11 20:48:15 -04:00
Jonah Graham
d3ecfbd4f1 Bug 516461: use file contents to determine content type when debugging
Change-Id: I019db17522ba7eb7df979943d69df0041562eb94
2017-05-11 13:32:18 +01:00
Jonah Graham
cea32dfe7b Bug 516461: use user's/content-type editor selection
This fix applies during debugging:
1) If a user has overridden the default editor to open an IFile with,
ensure that decision is respected by the breakpoints window.
2) If a user has put a breakpoint in an external file, open the same
editor as would be opened by File > Open File

Change-Id: Id32419f1197e3a8eaebf8fad176a884464cbcf85
2017-05-11 13:31:58 +01:00
Jonah Graham
9f4feda520 Bug 516461: Make getEditorId from IDE available
See https://bugs.eclipse.org/bugs/show_bug.cgi?id=516470
This code will be removed one Bug 516470 is resolved and
available.

Change-Id: I0ba4ce121ce94c9ab31b715fbac3c92e61d9c991
2017-05-11 13:25:47 +01:00
Nathan Ridge
a0aeb9153d Bug 516385 - Only use as much space as needed for PDOMCPPAliasTemplate and PDOMCPPAliasTemplateInstance records
Change-Id: Ib8e0de13c49f715806d8c29cb4e8cf07182d5f50
2017-05-11 02:32:23 -04:00
Nathan Ridge
1594835cc6 Bug 508637 - Encode the CDT version in the value of the __CDT_PARSER__ macro
Change-Id: Ic8b571da6cf47297bb615843fab8a8d971c7c2a7
2017-05-11 02:30:12 -04:00
Jonah Graham
2f3dbb123a Bug 515296: Create all CSourceNotFound controls unconditionally
When the editor is first opened, if it is not opened on something
that resolves isDebugElement = true, the set of controls to be visible
is different. This change ensures that the same editor can be reused
between isDebugElement = true and isDebugElement = false cases.

Change-Id: I153433de1716c8c8eeffd6ec49d0b1422b04921e
2017-05-09 14:34:25 +01:00
Jonah Graham
fb8e792478 Bug 515296: Collapse empty space when buttons are not visible
With the new "Preferences" button in CSourceNotFoundEditor always
visible, under some conditions (e.g. when no debug info available)
there would be a large gap due to invisible buttons. This change
does a relayout / exclude when the visibility of the buttons
change.

Change-Id: I68ae8665c286eb41f37fa823b3d3168175140ba3
2017-05-09 14:33:05 +01:00
Jonah Graham
c167eeeb1e Bug 515296: Cosmetics.
Change-Id: Ida4c6b477a7fec2d5a5696f456ed5ce993ba6ece
2017-05-09 13:49:35 +01:00
Yannick Mayeur
832f7f5a47 Bug 515296: Changed the message when only Address
When the Source Not Found Editor opens with only an address, the message
is changed, to confuse the user less.

Change-Id: I1dcc9fae80d20975b00d2d356469ddda8c2d8d2b
Signed-off-by: Yannick Mayeur <yannick.mayeur@gmail.com>
Signed-off-by: Jonah Graham <jonah@kichwacoders.com>
Also-by: Pierre Sachot <sachot.pierre@laposte.net>
Also-by: Jonah Graham <jonah@kichwacoders.com>
2017-05-09 11:39:06 +01:00
Nathan Ridge
60503efc58 Bug 512932 - Improve type checking of GCC builtins
Specifically, this patch:

  - Adds support for a new builtin, __builtin_assume_aligned.

  - Models __builtin_constant_p as a function instead of a macro.
    This inhibits constexpr evaluation, but allows for correct
    type-checking.

  - Diagnoses misuses of known builtins, instead of ingoring them like
    unknown builtins.

Change-Id: Ie5a26f2010dc5b19e6f32a8c6a1237fe88da393e
2017-05-08 23:04:17 -04:00
Jeff Johnston
ca29390671 Bug 459197 - C++ Unit Testing does not work with QT5
- change default behaviour on unknown tag to be just to log
  the unknown tag instead of throwing exception

Change-Id: Ia8880622ec3791ba546384edf536951b2c8c1edc
2017-05-08 17:52:18 -04:00
Jeff Johnston
26f81215ac Fix sonar plug-in version due to problem with most recent version.
Change-Id: Id4d6c41019adc633aeef668c89af9f9c1995e832
2017-05-08 17:03:07 -04:00
Rolf Bislin
a583190f52 Bug 514685 - codan: handle fallthrough attribute
and provide quickfix for adding fallthrough attribute
and add JUnit Tests
and add StandardAttributes class

Change-Id: I8cf0238771dc92bd1784b9dfb35a680d078b1db6
Depends-On: Ic09aa96f896b0a5dd998156e05930704775f695b
Signed-off-by: Rolf Bislin <romibi@bluewin.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-05-08 13:25:15 -04:00
Thomas Corbat
0f27b20848 Bug 516298 - Improved recognition of [[noreturn]] attribute
Change-Id: I275f0ee38045600c104d5ed7e2c14fec04eac046
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-05-08 13:23:13 -04:00
Rolf Bislin
fb898b6088 Bug 514684 - call writeAttributes on more Statements
and added JUnit tests

Change-Id: Ic1638e9d125f1897bddd6ef9d4a91f3186ad9dc6
Signed-off-by: Rolf Bislin <romibi@bluewin.ch>
Signed-off-by: Thomas Corbat <tcorbat@hsr.ch>
2017-05-08 13:22:37 -04:00
Jeff Johnston
ec4e410c8b Bug 459197 - C++ Unit Testing does not work with QT5
- remove "-flush" from 
  QtTestsRunnerProvider.getAdditionalLaunchParameters which does
  not work on Qt5
- add support in QtXmlLogHandler to support QtBuild and Duration
  nodes (for Duration node store the duration time in the model)
- fix typo in QtTestsRunnerMessages.properties file

Change-Id: I3ae8a8cba6870857f2a779e317465573387c0dee
2017-05-08 11:07:46 -04:00
Marc-Andre Laperle
9280202a2a Update outdated Maven plugin
Change-Id: I292e8ddf64db660f89535f5fe9e8e0b6792bd214
Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
2017-05-08 10:05:39 -04:00
Jonah Graham
655e32bfa9 Bug 516300: Display extension message when creating marker message
Change-Id: I6024d09646fd3f9d828a71f048fcb93fd34ef579
2017-05-08 07:20:30 -04:00
Jonah Graham
2e71430043 Bug 516300: Fix API errors with Eclipse 4.7
- Adding default methods can now be ignored
- Adding fields is now an error but we probably want to ignore this
because it is quite restrictive

This is the same API settings as was applied to org.eclipse.cdt.dsf.gdb
in 02a04cebad

Change-Id: I31559a8a3644c61e415dfbdf6dda3c66fb1d42ea
2017-05-08 06:09:19 -04:00
romibi
5d9dd823fa Bug 514684 - call writeAttributes on more Statements
and added JUnit tests

Change-Id: Ic09aa96f896b0a5dd998156e05930704775f695b
Signed-off-by: romibi <romibi@bluewin.ch>
2017-05-08 02:39:13 -04:00