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

25991 commits

Author SHA1 Message Date
William Riley
f3ca365140 Bug 540367 - Increment version numbers
Change-Id: I4a355170a7075f0a98ba3c1a5131c235c89b07d2
2018-10-23 11:20:31 -04:00
Hannes Vogt
e61ba5a731 Bug 529656 - Error if docker build failed
If the build command in a container build terminates with non zero exit
code (e.g. make command not found) an error is displayed.

Change-Id: Ib6349aa6c22c1a3bb9c0d2920110bc69773f8da1
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-10-22 11:10:26 -04:00
Evgueni Driouk
1fa5f7d6e5 Bug 540369 - HeadlessBuilder: change private to protected
Change-Id: Ib8ca36aa50ce6060d4f8fb14f5b74c3662bc8862
Signed-off-by: Evgueni Driouk <Evgueni.Driouk@arm.com>
2018-10-22 09:51:01 -04:00
Christian Walther
ebc9420473 Bug 534423 - Sort configurations in the Exclude from build dialog
Sort the configuration list in the same order as used by the project
property pages (case-insensitive nonlocalized), almost the same order as
used in the Project > Build Configurations > Set Active menu
(case-sensitive nonlocalized), not in the internal order coming from the
.cproject file.

Change-Id: Ia05bd163043f762dd96da4c69d409ecee9accb8c
Signed-off-by: Christian Walther <walther@indel.ch>
2018-10-22 06:16:24 -04:00
Jeff Johnston
c9eee479b4 Bug 540085 - Deadlock in ToolChainManager init
- modify ContainerGCCToolChainProvider.init so that the
  CBuildConfigurationManager.recheckConfigs() call is done
  within a separate job so the init() call will return
  without causing deadlock
- do the same for ContainerTargetTypeProvider
- modify CBuildConfigurationManager initProviders() method to
  be synchronized

Change-Id: I4ca9371fb340887233872b6d315621a24450fb2b
2018-10-12 13:14:52 -04:00
Marc-Andre Laperle
efbda46cba Bug 389577 - False positive "Unused static function"
Add handling of constructor/destructor attributes and some improvement
when functions were previously declared but not defined as used.

Change-Id: I7537bc87c6c4bc5b294d8e15fe5b42c92b3f2974
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-11 22:43:20 -04:00
Hannes Vogt
8492296d24 Bug 538069 - Save non-type template parameter...
... of template template parameter in index.
Fixes false positive "Invalid template arguments".

Change-Id: I82cd9aece8f03142cbdcf5d1058113684c29d6fe
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-10-11 22:24:45 +02:00
Bassem Girgis
ae8442fd6d Bug 519311 Handle delegating constructor in class template
- Fixed delegating constructor resolution for templated classes in
ClassMembersInitializationChecker
- Added a unit test for this bug

Change-Id: Idb072ec05e66e0f10af53db8258459ad14f7f329
Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2018-10-10 00:09:22 -04:00
Bassem Girgis
9c04b1bcf7 Bug 519473 Fixed member function calling with references
Change-Id: I86d1dfacb6f842be688bfdaf2a6a0faf0ffade09
Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2018-10-09 23:57:48 -04:00
Marc-Andre Laperle
631ee3a6fb releng: Stop building 32-bit stand-alone debugger products
Since the Eclipse Platform 4.10 is dropping support for 32-bit,
it doesn't make sense to still build these and it will ultimately
fail once we start building against 4.10.

Change-Id: Ia83a93b99092b7a3378ed95607411da5835118a6
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-09 17:44:50 -04:00
Torbjörn Svensson
aef0eaee8c Bug 539882: Applicability calculator should be called with option category
In some situations, it's convenient to create option categories on the
abstract tool and use an option applicability calculator to hide the
option category if no option is added to the category in an extending
instance of the tool.
To make the decision, the calculator needs to know what category is
to be checked.

Change-Id: Id4a269ee583f1f3dee88dee797ba89a0e92d1a42
Signed-off-by: Torbjörn Svensson <torbjorn.svensson@st.com>
2018-10-09 05:47:15 -04:00
Marc-Andre Laperle
ae78fde323 releng: Use features instead of Eclipse product in target/targlet
In order to work around
https://bugs.eclipse.org/bugs/show_bug.cgi?id=539902

Also update the target to make it closer to the Oomph setup.

Change-Id: Ie581ea499d7cd0956780717f3a34e0762f868c0d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-08 15:23:56 -04:00
Marc-Andre Laperle
a8d5ba9e20 releng: Add some missing dependencies to Oomph setup
Change-Id: Icfce69bc5c98f13e520035270085503907a92c68
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-08 15:23:56 -04:00
Marc-Andre Laperle
d537c6030c Bug 486036 - Toggle Function Definition does not work when comment is involved
Change-Id: I77a2c2fe0607ce098da4a4e7679fc3999ea7ebbf
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-06 11:36:37 -04:00
Jonah Graham
dac83cdde6 [releng] Proper URL for platform with milestones being removed
Change-Id: I2b67587169afc6cfe458547ae70fa4df5b04f536
2018-10-06 15:57:08 +01:00
Marc-Andre Laperle
0cb3188339 Bug 539641 - [lldb] Pending breakpoints do not work
lldb-mi doesn't implement "-gdb-set breakpoint pending"
so instead we always use "-break-insert -f" to always use pending breakpoints.
Once the -gdb-set is implemented in lldb-mi, we can remove this.
See also https://reviews.llvm.org/D52953

Change-Id: Id07da58e0530898401d2f7285c44c97b38637542
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-06 00:16:51 -04:00
Bassem Girgis
8d8324ae14 Bug 536201 Add a highlighting for enum classes
Change-Id: I6b16efbbb268f9fdc4a884e96c30192dd64c5db1
Signed-off-by: Bassem Girgis <brgirgis@gmail.com>
2018-10-04 10:47:06 -05:00
Jeff Johnston
ceb44294ad Bug 535903 - buildMesonProject test is unstable
- fix previous fix to refresh the lines after each second
  of waiting for build to finish

Change-Id: Ieb6e5d7885603c0e160ffe8bc19f4a30646620ab
2018-10-03 18:16:02 -04:00
Marc-Andre Laperle
0b73bea05a Bug 518271 - NPE when using Toggle function on a function containing a lambda expression
Change-Id: I441a627b0759655e865724bf5110fdb7dd8d5a50
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-10-02 20:55:48 -04:00
Hansruedi Patzen
467dd174c3 Bug 539535: Disable default UDL highlighting
Checking every UDL as a default turned out to be more resource intensive
than expected. It further is only really needed if the special
operator""if is used. This patch disables this highlighting per default
and creates a new highlighting preference entry to allow users change
UDL colors independently.

Change-Id: I83bdb69e70546d1e618b5c7c947777da579c8847
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-10-02 18:01:20 -04:00
Jeff Johnston
9b3ccf516f Bug 535903 - buildMesonProject test is unstable
- add wait for final String which may be delayed due to
  scanner info refresh

Change-Id: Ib5c001b03cfb93335bf7b6dea2ef10a95e0bf856
2018-10-02 17:11:33 -04:00
Nathan Ridge
0593f0b3af Bug 539307 - Have Codan test suites open files in C editor, not Generic Editor
Change-Id: Icce2cfafe8e516ddad6abc30505bd4c67b062f47
2018-09-30 20:25:57 -04:00
Marc-Andre Laperle
467aab5559 Bug 539307 - Set correct project nature in Codan tests to fix wrong content type
When the lsp4e-cpp plugin is present, two content types are associated with
.cpp extension. The lsp4e-cpp one is chosen because it happens to be first.
Normally, the CDT C++ content type gets its priority boosted when the C++
project nature is present. Some Codan tests run on .cpp files but without
the C++ project nature so the files are of wrong content type and the tests
fail. Once the nature is fixed, some tests were failing because they should
run on C files but loadCode was not loading them as C++ files because of the
project nature.

Change-Id: I61b77d409e81c3cf78e60adf0c77a9bf976ac9d5
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-30 19:26:25 -04:00
Nathan Ridge
956ce6b2dc Bug 539535 - Refactor CPPSemantics.findOverloadedOperator() so that if something goes wrong during one of the member or non-member lookups, the other is still performed
Change-Id: I34c1321a0aa943ee82d1e6c45cf33d97e2f5b5ca
2018-09-30 19:06:01 -04:00
Nathan Ridge
dcc09f1975 Bug 539535 - Originate an accurate lookup point in CPPASTFieldReference.createEvaluation()
Change-Id: I8030d5b304a61d7235a8ca92cf99de2d9a9aff68
2018-09-30 19:05:40 -04:00
Marc-Andre Laperle
fde7476a1a Bug 508610 - [lldb] Arguments tab has no effect
"-gdb-set args" is not implemented in lldb-mi, use -exec-arguments instead.
See also https://bugs.llvm.org/show_bug.cgi?id=38834

Change-Id: I1c9db9020effe92dae6ec13e458c3eaf165f920a
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-28 00:09:22 -04:00
Marc-Andre Laperle
18c2d84781 Bug 503298 - [lldb] Remove workaround for executable not being absolute
The underlying issue was fixed in CDT in commit 783787a.
Also, even if that code changes under the rug, lldb might be fixed to handle
the working directory anyway.
See https://bugs.llvm.org/show_bug.cgi?id=30265

Change-Id: I8654ec6c601b49fbfb8258c1a80b95c84021410d
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-28 00:06:46 -04:00
Hansruedi Patzen
920f5e3a7f Bug 512822: "Launch failed. Binary not found" even after building
Builds upon https://git.eclipse.org/r/#/c/92129/ but also uses the hints
to only read the file if necessary. I further reverted some of
the changes done with the patch for 'Bug 510987 - Properly support PIE
executables as build output' since the binary will now be seen as an
executable anyway.

Change-Id: I075fef67f3b101ddbc64786dcbc2ca41cc114e25
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-09-27 14:20:38 -04:00
Nathan Ridge
45a30f5967 Bug 539145 - Avoid NPE in CaseBreakQuickFixFallthroughAttribute.validPositionForFallthrough()
Change-Id: I8a53691f91411bf88f95112d99c1967b1238515a
2018-09-27 13:31:34 -04:00
Nathan Ridge
acca2b3b6e Bug 539145 - Avoid opening an editor during CaseBreakQuickFixFallthroughAttribute.isApplicable()
Change-Id: I82c5b345cfb017680d06f3caeff0c9839780ee68
2018-09-27 13:31:26 -04:00
John Dallaway
87cd426861 Bug 539455: Report debug command errors via status handler
Change-Id: I4c3abbb660e426580ce8f836e6e19a897fbaeefe
Signed-off-by: John Dallaway <john@dallaway.org.uk>
2018-09-27 12:33:07 +01:00
Marc-Andre Laperle
70a03a862e Bug 518273 - Toggle function should remove the override keyword when moving out of class
Change-Id: I7ad80262c7f9b98d3ae9b23ae2b45bf0c94ccf99
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-26 19:24:36 -04:00
Christian Walther
c6abbfb6d3 Bug 525705 - Fix Spawner.waitFor(pid) returning prematurely
On Windows XP, waitFor(pid) would return -1 immediately instead of
waiting for the process to exit. This caused starting a debug session to
be stuck at "Initializing debugger services 62%" because the GDB it was
trying to talk to was terminated immediately after being started.

Binaries built with MSVC10 tools and `nmake /f Makefile_x86_64.mk
/NOLOGO spawner`.

Change-Id: I532f63c7a5facdf867ed94945b0cd26b4177c3bd
Signed-off-by: Christian Walther <walther@indel.ch>
2018-09-26 16:10:31 -04:00
Marc-Andre Laperle
55245c4252 Bug 510833 - [lldb] IllegalStateException in LLDBProcesses$LLDBMIThreadDMData starting session
Re-arrange the code to prevent done() from being called twice.

Change-Id: I25737e9b6a7c188db62381695562046e326cacd0
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-26 00:33:23 -04:00
Nathan Ridge
b803d1030c Bug 538615 - GNU-style attribute preceding standard attribute specifier
Change-Id: I8f736ab354b07fb14cba35dec10c8b6d96917d70
2018-09-24 21:24:11 -04:00
Nathan Ridge
732c4874ee Bug 539076 - Substitution of alias template for template template parameter
Change-Id: Ide5a6858560b0aae1efd391215bc229bef5421e7
2018-09-24 21:23:23 -04:00
Marc-Andre Laperle
e2e9325bb4 lldb: Add new version info in the comments
Change-Id: Iff6c0a335d23b6d6a611d498f3803ecaace53233
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-09-22 01:07:28 -04:00
Jeff Johnston
72ec4daaa5 Bug 538994 - cdtdebug: argv parameters are wrapper by double-quotes
- modify cdtdebug.sh to use arrays to gather up options and then
  to use "${options[@]}" in the final string so each option is
  properly quoted if necessary

Change-Id: Id7fec3bb0a6804f2124f837e1171f386ae5801f8
2018-09-18 16:37:15 -04:00
Nathan Ridge
7831931f3a Bug 539052 - Add support for __is_constructible type trait intrinsic
Change-Id: I582881808e19342bf55d62d6002365c3733ebf31
2018-09-18 09:56:29 -04:00
Manish Khurana
9d84c30b5a Bug 537102. Add use of position object for inactive code and semantic highlighting
Change-Id: Iaa68fdfc1b6f5141c1c750e5d8af9cc2f5df9bfc
Signed-off-by: Manish Khurana <mkmanishkhurana98@gmail.com>
2018-09-17 21:31:09 +05:30
Hansruedi Patzen
b8618b166a Bug 510152: ParserException in ASTAmbiguousNode.logAmbiguousNodeError
If the fOperand of an CPPASTUnaryExpression is an ASTAmbiguousNode
the fOperand.getEvaluation() call will always fail and log an error.

Change-Id: Ie17c2685636e8956bf4724c206092cf0370ff5d9
Signed-off-by: Hansruedi Patzen <hansruedi.patzen@hsr.ch>
2018-09-17 01:25:45 -04:00
Jonah Graham
5042be3a36 [releng] Update to newest jacoco-maven-plugin
Change-Id: Ib78d1805f4beaefc673aa47114f10bde91cfca33
2018-09-16 09:12:28 +01:00
Nathan Ridge
4549e7f39a Bug 538266 - NPE in QuickFixCreateNewClass.isApplicable()
Change-Id: If20b46da95f58e93ba46ea6f4386e841609f4159
2018-09-15 19:42:08 -04:00
Simeon Andreev
a8a29d195a Bug 538849 - Select Processes dialog filter field improvements
This change ensures that the Select Processes dialog remembers the
filter field input. This helps attaching to the same application without
having to input the filter text on each debug attach.

Furthermore with this change its possible to match a process name with
suffixes, without resorting to pattern matching symbols. E.g. match
"Eclipse" by typing "lipse".

Change-Id: I07a3bb1504f2f5e9626023d1097fcad78dfa9ac7
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-14 06:25:12 -04:00
Simeon Andreev
094543644b Bug 333034 - Select Processes dialog shows command line arguments
This change adds command line arguments to the information listed in the
"Select Processes" dialog, seen e.g. when attaching to a C++ application
to debug.

Change-Id: I18ab685f73cb1c16ed3ea935872f49afa1de9aab
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
2018-09-14 11:06:28 +01:00
Jeff Johnston
74eb81b0bb Bug 538958 - Meson project built in Container not indexing properly
- add synchronized keyword to the various scanner info collecting
  methods in ContainerGCCToolChain

Change-Id: I476e0c191379621d5ca8ef266c8590a0954ab4a5
(cherry picked from commit 55569e158c)
2018-09-12 15:10:18 -05:00
Jeff Johnston
109cd0c6aa Bug 536884 - Removing header cache should cause ScannerInfo refresh
- don't reset setting in shutdown() method as this clears the
  property prematurely for meson and cmake projects

Change-Id: I2dd2467427d00aeade335319ec2ceec9f6d7168d
2018-09-12 12:01:09 -04:00
Nathan Ridge
aeb6e38639 Bug 538517 - Proper handling of range-for with temporary as range expression
Change-Id: I41c0ab58810c656d2ed89c9f5110ebc559e29575
2018-09-10 23:22:26 -04:00
Nathan Ridge
2f57d76a20 Bug 538516 - Ensure the validation state is updated correctly on the C/C++ Language Servers Preference Page
Change-Id: Ic3bbbd437081213b40e5ae0cbc2816fa9369449a
2018-09-10 23:22:13 -04:00
Nathan Ridge
567243a752 Bug 538509 - Ensure a lookup point is always set during semantic highlighting
Change-Id: I121a07c8ef6bf9230e5447e266f5304b598f1a83
2018-09-10 23:21:27 -04:00