1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 17:35:35 +02:00

Give lsp4e-cpp access to some CDT internals

This avoids either littering lsp4e-cpp code with "restriction"
warnings, or suppressing them (which can hide useful warnings).

It seems pointless to expose the relevant internals as public APIs
since lsp4e-cpp is conceptually an internal consumer.

Change-Id: I9d8c70570682fa86b2369445a812af14de4930e6
This commit is contained in:
Nathan Ridge 2018-08-23 16:50:01 -04:00
parent e69f72a488
commit 3679b7cd90
4 changed files with 2 additions and 5 deletions

View file

@ -22,7 +22,7 @@ Export-Package: org.eclipse.cdt.internal.corext;x-internal:=true,
org.eclipse.cdt.internal.ui.dialogs;x-internal:=true,
org.eclipse.cdt.internal.ui.dialogs.cpaths;x-internal:=true,
org.eclipse.cdt.internal.ui.dnd;x-internal:=true,
org.eclipse.cdt.internal.ui.editor;x-friends:="org.eclipse.cdt.codan.ui,org.eclipse.cdt.codan.ui.cxx,org.eclipse.cdt.dsf.ui",
org.eclipse.cdt.internal.ui.editor;x-friends:="org.eclipse.cdt.codan.ui,org.eclipse.cdt.codan.ui.cxx,org.eclipse.cdt.dsf.ui,org.eclipse.lsp4e.cpp.language",
org.eclipse.cdt.internal.ui.editor.asm;x-internal:=true,
org.eclipse.cdt.internal.ui.filters;x-internal:=true,
org.eclipse.cdt.internal.ui.help;x-internal:=true,
@ -50,7 +50,7 @@ Export-Package: org.eclipse.cdt.internal.corext;x-internal:=true,
org.eclipse.cdt.internal.ui.resources,
org.eclipse.cdt.internal.ui.search;x-internal:=true,
org.eclipse.cdt.internal.ui.search.actions;x-internal:=true,
org.eclipse.cdt.internal.ui.text;x-friends:="org.eclipse.cdt.codan.ui.cxx,org.eclipse.cdt.dsf.ui",
org.eclipse.cdt.internal.ui.text;x-friends:="org.eclipse.cdt.codan.ui.cxx,org.eclipse.cdt.dsf.ui,org.eclipse.lsp4e.cpp.language",
org.eclipse.cdt.internal.ui.text.asm;x-internal:=true,
org.eclipse.cdt.internal.ui.text.c.hover;x-internal:=true,
org.eclipse.cdt.internal.ui.text.contentassist;x-internal:=true,

View file

@ -15,7 +15,6 @@ import org.eclipse.cdt.ui.CUIPlugin;
* Class to re-use existing auto-indentation support of CEditor in Generic Editor of LSP4E-CPP.
*/
@SuppressWarnings("restriction")
public class AutoIndentStrategyCPP extends CAutoIndentStrategy {
public AutoIndentStrategyCPP() {

View file

@ -72,7 +72,6 @@ import org.eclipse.ui.editors.text.TextEditor;
* Hack-ish reconciler to get some colors in the generic editor using the C/C++
* Server.
*/
@SuppressWarnings("restriction")
public class PresentationReconcilerCPP extends CPresentationReconciler {
private CCommentScanner fSinglelineCommentScanner;

View file

@ -16,7 +16,6 @@ import org.eclipse.cdt.internal.ui.editor.SemanticHighlightings;
import org.eclipse.lsp4j.Range;
import org.eclipse.lsp4j.SymbolKind;
@SuppressWarnings("restriction")
public class HighlightSymbol {
private int stableId;
private ExtendedSymbolKindType parentKind;