Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNathan Ridge2018-08-23 20:50:01 +0000
committerNathan Ridge2018-09-02 05:23:17 +0000
commit3679b7cd90f30acf4234e5c952530fdbef116acb (patch)
tree04b695d6506e5db0294e4632276d3adca070673b /lsp4e-cpp
parente69f72a48835e2ed7ab93b89d610c26612a90d3e (diff)
downloadorg.eclipse.cdt-3679b7cd90f30acf4234e5c952530fdbef116acb.tar.gz
org.eclipse.cdt-3679b7cd90f30acf4234e5c952530fdbef116acb.tar.xz
org.eclipse.cdt-3679b7cd90f30acf4234e5c952530fdbef116acb.zip
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
Diffstat (limited to 'lsp4e-cpp')
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/AutoIndentStrategyCPP.java1
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/PresentationReconcilerCPP.java1
-rw-r--r--lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/cquery/HighlightSymbol.java1
3 files changed, 0 insertions, 3 deletions
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/AutoIndentStrategyCPP.java b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/AutoIndentStrategyCPP.java
index 8289ef4133d..85ce0e58ad5 100644
--- a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/AutoIndentStrategyCPP.java
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/AutoIndentStrategyCPP.java
@@ -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() {
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/PresentationReconcilerCPP.java b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/PresentationReconcilerCPP.java
index 03a756ce3db..0d732647d3b 100644
--- a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/PresentationReconcilerCPP.java
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/PresentationReconcilerCPP.java
@@ -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;
diff --git a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/cquery/HighlightSymbol.java b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/cquery/HighlightSymbol.java
index 2eaeabcb60b..a78d30686ac 100644
--- a/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/cquery/HighlightSymbol.java
+++ b/lsp4e-cpp/org.eclipse.lsp4e.cpp.language/src/org/eclipse/lsp4e/cpp/language/cquery/HighlightSymbol.java
@@ -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;

Back to the top