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

13769 commits

Author SHA1 Message Date
Nathan Ridge
d87b844e12 Bug 545360 - Completion in namespace alias
Change-Id: Ica4955409780f4d5000356ffe5d56dc0ce787ee7
2019-03-21 01:50:14 -04:00
Marc-Andre Laperle
040372be48 Build with Eclipse 2019-03 dependencies
CDT nows defaults to targetting Eclipse 4.11 along with dependencies in the
Eclipse 2019-03 simultaenous release.

Once consequence is that 32-bit and ppc64 fragments are removed.

Change-Id: I032fedb27a4e5086f10051b3b2ca9c9c59c3b965
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2019-03-18 20:44:27 -04:00
Jeff Johnston
65d40fbacf Bug 545463 - Docker Build occasionally shows unknown includes in editor
- add checks in CBuildConfiguration so that a scanner info that has
  no include paths stored should be treated as no scanner info and
  the data should be fetched again

Change-Id: I6820c56304aed568a58b6058145e912d71fa33c1
2019-03-15 19:33:03 -04:00
Karsten Thoms
55c3c3e80a Fix typo in Javadoc
Change-Id: I0a310cc8f955674cfbccedfbc4e60c02e274b7c5
Signed-off-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-03-08 13:58:28 +01:00
Marco Stornelli
3113871624 Bug 543947: Fix exception while formatting macro
Change-Id: If3e1a4da919c4e7f78ca4506e97ea1f6f37f7c8c
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-06 19:08:17 +01:00
Marco Stornelli
f28b158828 Bug 540252: Fix formatting operator< with explicit instantiation
A space must be forced in this special case even if preferences
say something different.

Change-Id: Ie43b988139913f87590f4f1460d28e79f9bd7ef8
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 13:52:07 -05:00
Felix Morgner
659432f7e2 Bug 544535: Buttons in "Explore Macro Expansion" are not active
Refresh the toolbar buttons after registering the command handlers, to
make sure that they are active.

Change-Id: Ibee71a54fff7be0325257d25247e4e73f8b09b2e
Task-Url: https://bugs.eclipse.org/bugs/show_bug.cgi?id=544535
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2019-03-04 16:17:23 +00:00
Marco Stornelli
5ac0c37e6b Bug 406231: Fix exceptions while formatting template id in macro
Fix a couple of exceptions in formatter flow during operations on
template id in macro.

Change-Id: I768c29e1bd24b1336423b298a22b4016eb96e9c3
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 08:09:25 -05:00
Marco Stornelli
04cc77cf2a Bug 278903 - Do not format any code in inactive regions
Not active regions of code may not be formatted.

Change-Id: I3796bd84bf4101cec55ef9f35f9703e8bc46092e
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-03-04 05:41:56 -05:00
Jonah Graham
cdc99feef2 [releng] Bump version to 9.8.0
Change-Id: I3861d4c5d0eecaf9dd370f269a655e666b60561a
2019-03-01 13:25:21 +00:00
Hannes Vogt
1370c76c38 Bug 544681 - Support for template<auto...>
Change-Id: I059d69ee86603c1aed95eeed1be61b915df6e3ed
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-03-01 01:46:08 -05:00
Nathan Ridge
4a35647d1f Bug 544509 - Evaluation of negative integer cast to unsigned
Change-Id: I683045870eca5f1b013afddbc0938df2aef779c2
2019-02-28 20:45:43 -05:00
Hannes Vogt
d42c60b651 Bug 543038 - Addition to brace elision for aggregate init
- getNestedType for typedefs
- check aggregate initialization in EvalTypeID

Change-Id: I04ab2088c85373007312f7a419eb508ab53f69c8
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-02-25 17:25:04 -05:00
Toni Suter
182de94259 Bug 544470. Fix code formatting of switch with controller declaration
Change-Id: I0d18b5767503e6bb3d137c9950b023f5c5084bd8
Signed-off-by: Toni Suter <tsuter@hsr.ch>
2019-02-22 10:01:29 -05:00
Felix Morgner
2272a74f38 Bug 520117: [C++14] Return type deduction deduces wrong type for
parenthesized expressions in return

This patchset fixes 520117 and adjusts the value category of expressions
of kind E1.E2 to be standard (DR616) compliant.

Change-Id: I9a5cde805f2d0b39a2d263dbc3dcbefd3ba21930
Signed-off-by: Felix Morgner <fmorgner@hsr.ch>
2019-02-22 03:29:05 -05:00
Hannes Vogt
0757b45da5 Bug 543038 - Implement brace elision for aggregate initialization
Change-Id: I72e92c8c196bf201c8edfde64598a7318d2fdfeb
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-02-19 18:38:05 -05:00
Marco Stornelli
a6d06902b1 Bug 496249: Tags for disabling/enabling CDT code formatter
Change-Id: I4389c61612da6a4ee0011a49d6aeed7b52152436
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-02-19 20:49:58 +00:00
Marco Stornelli
8fe6bbb70e Bug 544516: Format edited lines as save action
Change-Id: I988eb34c433aa121ce2afb1da51984ab4fb24b09
Signed-off-by: Marco Stornelli <marco.stornelli@gmail.com>
2019-02-17 19:08:29 +00:00
Nathan Ridge
9290546e2f Bug 543819 - NPE in EvalFunctionSet.isEquivalentTo()
Change-Id: I4f443f95c1a9bff7150abec323ab8afc576d5f00
2019-02-01 22:54:53 -05:00
Hannes Vogt
e5466b8204 Bug 543913 - False negative in ctor with wrong arguments
Change-Id: I3a9c692383c5c9d8c465d9ecbc66463b39d5199d
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2019-02-01 07:18:02 +01:00
Jonah Graham
934fa19482 Bug 540978: Rename identifiers and some other places to o.e.cdt.lsp
Change-Id: I6edbbb2cf103010bbc67ea0140bfec694652a685
2019-01-04 13:07:38 +00:00
Jonah Graham
a7f1eb27e9 [releng] increment service segment by 100
Following https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment

Change-Id: I57f2b230e2190fc81cbdff5284f7b5e07db865d9
2018-12-22 09:10:26 +00:00
Alexander Kurtakov
a4c21ac717 Fix warnings about non-vararg override for vararg method.
Change-Id: I8b4aadf9e1357e1a0203c92bba9e4495f668e787
Signed-off-by: Alexander Kurtakov <akurtako@redhat.com>
2018-12-21 22:02:55 +02:00
Jonah Graham
76cc07a4cd [releng] Bump version numbers for plug-ins changed since branch point
Following https://wiki.eclipse.org/Version_Numbering#When_to_change_the_service_segment

Change-Id: I019f2f6bcf11e5e4fb17960dc28a1fb2fac6ace0
2018-12-20 08:37:56 +00:00
Hannes Vogt
945e48a40c Bug 542448 - Return ProblemBindings in list initialization
- Return ProblemBinding if conversion from init list failed
- In conversion: don't allow implicit conversion with explicit ctor

Change-Id: I3145b89df778a035ced9999aff4d8a4164eac17f
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-12-15 02:12:33 -05:00
Christian Walther
0f75bfc383 Bug 542676 - Headless build missing some console output
The ConsoleOutputStream method added in 6e1b9b4 must be overridden here,
otherwise text sent to it does not appear along with the other console
output.

Change-Id: I1a3803ffb8962140537b877f0df328a4037b4dfb
Signed-off-by: Christian Walther <walther@indel.ch>
2018-12-11 17:24:32 +01:00
Jonah Graham
677cc2cf63 [releng] Bump version to 9.7.0
Change-Id: Icaa0b6acf73e3a19e0d102fa8ae784e631d8743a
2018-12-10 13:50:44 +00:00
Christian Walther
f2f92ab404 Bug 335344 - External settings lost after changing language IDs, take 2
The original fix (a733900) only fixed part of the problem: It worked for
the case where a complete CExternalSetting was removed and replaced by a
different one, but not in the case where individual entries from a
CExternalSetting were moved to a different one, but others remained
(and, in both cases, the two CExternalSettings applied to the same
ICLanguageSetting).

This commit
- adds a test for the additional condition, which would previously fail
- reverts the previous fix, which is made redundant by the new one
- fixes both cases by applying removals before additions with
ICSettingEntry granularity per ICLanguageSetting rather than for whole
CExternalSettings.

Change-Id: I1b1ee7443b83189c29e458eef12be9cad6b3965d
Signed-off-by: Christian Walther <walther@indel.ch>
2018-12-10 11:42:44 +01:00
Hannes Vogt
2fc42590fb Bug 541717 - Partial ordering and DR1395
- As of [temp.func.order] p5 only parameters for which there are explicit
arguments should be considered.
- Implement [temp.deduct.partial] p11 (resolution of DR1395).

Change-Id: I56262229a6fe4717c22aac814aa9ea42eb37a10d
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-12-08 11:15:40 +01:00
Nathan Ridge
089d7e1d61 Bug 541549 - Pack expansion expression in type of alias template
Alias templates can be instantiated with dependent arguments, which
can themselves contain a pack expansion, so we need to take care
that pack expansion expressions are instantiated correctly.

This was previously fixed for pack expansions of types and template
arguments in bug 486971.

The patch also fixes a bug in CPPTypedef.getType() where alias
declarations weren't handled correctly. (This bug would only occur
during debugging as normally the type would be computed via setType().

Change-Id: Ie70a923fc9dd0f177b7bfb429b8f1387966b416d
2018-12-05 14:34:40 -05:00
Nathan Ridge
3ee513f324 Bug 541584 - Support alias templates in Open Element
Change-Id: I43565b165bd98112ef63e01bc2576a93855f8891
2018-12-05 13:44:30 -05:00
Marc-Andre Laperle
efb9ddbb63 Remove a few internal, deprecated methods
Change-Id: I073f7770a594ec226f7adf5d5022960a298608c7
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-12-03 23:12:24 -05:00
Marc-Andre Laperle
597b0dd83e Remove WorkingCopyInfo class (internal, unused and deprecated)
Change-Id: If883af97139c4b00f93a99c76a8fdd6e6cb0ec59
Signed-off-by: Marc-Andre Laperle <malaperle@gmail.com>
2018-12-02 13:51:58 -05:00
Nathan Ridge
f5322a32d3 Rename instantiateCommaSeparatedSubexpressions() to instantiateExpressions()
instantiateCommaSeparatedSubexpressions() is a clunky name, and in C++17
(with fold expressions) the function will no longer be limited to comma-
separated expressions.

Change-Id: Id242f58bb291e79cefe2b28db12dbde4bafba4ed
2018-12-01 01:15:24 -05:00
Hannes Vogt
8f9e8f045c Bug 541474 - Disambiguate function with default argument
Take number of explicitly passed arguments into account.

Change-Id: If85f072d8b18f3fd1ca28f3c5688e864b0ffb4cd
Signed-off-by: Hannes Vogt <hannes@havogt.de>
2018-11-29 18:36:25 -05:00
Nathan Ridge
586ccf790b Bug 541670 - constexpr implies toplevel const
Change-Id: I318a9293d12eeecb7f49bfba1acb849109fab666
2018-11-29 17:40:20 -05:00
Nathan Ridge
9e44f3634a Bug 540758 - Substitution of enclosing template parameters into expansion pattern
Change-Id: Ib31db579c7d5a9be2f64fe992abac48c0e2b136a
2018-11-29 17:25:43 -05:00
Nathan Ridge
2f678054ff Bug 540741 - Parameter pack in argument of alias template instance that's not present in the target type
Change-Id: Ic5a5d0b25d88bac4074cb78aec17a1311a51d75d
2018-11-27 00:47:56 -05:00
Nathan Ridge
f94490939f Remove temporary statement added for debugging
Change-Id: Ib09141c840eb18cccfcbcf497597e22f3fcd4e02
2018-11-25 23:26:26 -05:00
Nathan Ridge
d085e955c7 Bug 540991 - Handle ICPPASTTypeTransformationSpecifier in CModelBuilder2
Change-Id: Ie87c89388d052cdaffb80163af666c3910da3b4a
2018-11-24 15:53:17 -05:00
Nathan Ridge
86b8f21623 Bug 540549 - Have all template parameter bindings implement ICPPUnknownBinding
Change-Id: If09679f2d56c987175a8d85514da37840ac71205
2018-11-24 15:52:34 -05:00
Nathan Ridge
1bb3bb5768 Remove unnecessary cast to ASTCompletionNode in DOMCompletionProposalComputer
Change-Id: Ib0b631d6d679da77660b9a8797c042bb7ef8ede1
2018-11-24 13:55:15 -05:00
Nathan Ridge
636fe00de6 Bug 541118 - NPE in AbstractIndexerTask.getOffset
Change-Id: I7ce30369abfb31dbdcc87e4fe9d36ea35e48ad79
2018-11-24 13:54:21 -05:00
Jonah Graham
3859b78b71 Bug 540373: Cleanup warnings in tests
- Remove redundant super-interfaces
- Remove redundant null checks
- Remove redundant instanceof checks

Change-Id: I3e8adba818b58f8ae5b43682ace74812db5b9bb4
2018-11-24 11:32:04 +00:00
Jonah Graham
37ed2c406d Bug 540373: Update the compiler warnings/ignores
The previous alignment of all the warnings/ignores
led to too many warnings that weren't there before. This
commit relaxes them a bit.

The core/org.eclipse.cdt.core/.settings/org.eclipse.jdt.core.prefs
is still the "master" copy, with
releng/scripts/check_code_cleanliness.sh containing the
exceptions that apply to test plug-ins.

Change-Id: Ibd4e31ade0b42b31e7cbe5a94f06c6fc15183a56
2018-11-24 10:55:06 +00:00
Nathan Ridge
ac68d83566 Bug 541117 - NPE in CElementHyperlinkDetector.isLanguageKeyword
Change-Id: I4bd2155de5aa7a09cb9e68f57e1168bdaab76401
2018-11-24 02:09:32 -05:00
Jonah Graham
0c7b32c0dd Bug 541116 - fix whitespace
Change-Id: I8c345f0f4a531ecef78955512de488386c22fc7d
2018-11-23 17:26:38 +00:00
Nathan Ridge
240f017407 Bug 541116 - NPE in IndexToASTNameHelper.findMatchingASTName
Change-Id: I6440dd072841cfc7d9e8240024f7dee527954b57
2018-11-23 11:05:53 -05:00
Jonah Graham
3caea240a3 Bug 540373: Format some Java files that were missed
Some files which has other cleanups applied meant they needed to be
reformatted again. e.g. the removing of type parameters shortened
some lines of code that meant the wrapping changed.

Change-Id: I68ca09567b9530cc2a085c33923642b6de2ec77b
2018-11-23 13:59:46 +00:00
Jonah Graham
ff75ae80fa Bug 540373: Cleanup: Remove trailing whitespace in properties files
Command used:
# Remove space at eol in comments
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^(#.*)[ \t]+$/\1/' {} +
# Remove space at eol in blank lines
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/^[ \t]+$//' {} +
# Replace escaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\ $/\1\\u0020/' {} +
# Replace unescaped spaces at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\]) $/\1\\u0020/' {} +
# Replace escaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\\\t$/\1\\u0009/' {} +
# Replace unescaped tabs at eol with unicode
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/([^\\])\t$/\1\\u0009/' {} +
# Stage all changes
git add -A .
# trim any remaining whitespace and then identify and fixup
# manually
# Only dsf/org.eclipse.cdt.dsf.ui/src/org/eclipse/cdt/dsf/debug/ui/viewmodel/MessagesForDebugVM.properties
# needed this due to missing newline at end of the file
find .  ! -path "./.git/*" -type f -name *.properties -exec sed -i -E 's/[ \t]+$//' {} +

Change-Id: I858f16891fe001f4f7e62d5a4f904146e891cd39
2018-11-23 07:52:26 +00:00