Skip to content

Commit

Permalink
[eclipse-cdt#314] fix broken API
Browse files Browse the repository at this point in the history
MyClangdOptionsDefaults has to implement ClangdOptionsDefaults instead
of extending the now non-API class BuiltinClangdOptionsDefaults

fixes eclipse-cdt#314
  • Loading branch information
ghentschke committed May 13, 2024
1 parent 6572f54 commit d985f97
Showing 1 changed file with 37 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,51 @@

import java.util.List;

import org.eclipse.cdt.lsp.clangd.BuiltinClangdOptionsDefaults;
import org.eclipse.cdt.lsp.clangd.ClangdOptionsDefaults;
import org.osgi.service.component.annotations.Component;

@Component(service = ClangdOptionsDefaults.class, property = { "service.ranking:Integer=100" })
public class MyClangdOptionsDefaults extends BuiltinClangdOptionsDefaults {
public class MyClangdOptionsDefaults implements ClangdOptionsDefaults {

@Override
public List<String> additionalOptions() {
return List.of("--header-insertion=never", "--default-config");
}

@Override
public String clangdPath() {
// TODO Auto-generated method stub
return null;
}

@Override
public boolean useTidy() {
// TODO Auto-generated method stub
return false;
}

@Override
public boolean useBackgroundIndex() {
// TODO Auto-generated method stub
return false;
}

@Override
public String completionStyle() {
// TODO Auto-generated method stub
return null;
}

@Override
public boolean prettyPrint() {
// TODO Auto-generated method stub
return false;
}

@Override
public String queryDriver() {
// TODO Auto-generated method stub
return null;
}

}

0 comments on commit d985f97

Please sign in to comment.