Skip to content

Commit 2fe1c1d

Browse files
committed
[#227] Refactor ClangdConfigurationManager
- make methods protected since they aren't part of the interface anymore. fixes #227
1 parent 03354bf commit 2fe1c1d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

bundles/org.eclipse.cdt.lsp.clangd/src/org/eclipse/cdt/lsp/clangd/ClangdConfigurationFileManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ public void handleEvent(CProjectDescriptionEvent event, MacroResolver macroResol
7878
* In the following example clangd uses the compile_commands.json file in the Debug folder:
7979
* <pre>CompileFlags: {CompilationDatabase: Debug}</pre>
8080
*
81-
* @param project managed C/C++ project
81+
* @param project C/C++ project
8282
* @param newCProjectDescription new CProject description
8383
* @param macroResolver helper to resolve macros in the CWD path of the builder
8484
*/
85-
public void setCompilationDatabasePath(IProject project, ICProjectDescription newCProjectDescription,
85+
protected void setCompilationDatabasePath(IProject project, ICProjectDescription newCProjectDescription,
8686
MacroResolver macroResolver) {
8787
if (project != null && newCProjectDescription != null) {
8888
if (enableSetCompilationDatabasePath(project)) {
@@ -111,7 +111,7 @@ public void setCompilationDatabasePath(IProject project, ICProjectDescription ne
111111
* @param project
112112
* @return true if the database path should be written to .clangd file in the project root.
113113
*/
114-
public boolean enableSetCompilationDatabasePath(IProject project) {
114+
protected boolean enableSetCompilationDatabasePath(IProject project) {
115115
return Optional.ofNullable(LspPlugin.getDefault()).map(LspPlugin::getCLanguageServerProvider)
116116
.map(provider -> provider.isEnabledFor(project)).orElse(Boolean.FALSE);
117117
}

0 commit comments

Comments
 (0)