Skip to content

Commit

Permalink
fix: fixing NPE and empty clangd file (#971)
Browse files Browse the repository at this point in the history
  • Loading branch information
sigmaaa authored May 28, 2024
1 parent 9c3dd8a commit ace15be
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,8 @@ private Map<String, Object> createOrGetExistingYamlStructure(Object obj)

private void updateCompileFlagsSection(Map<String, Object> compileFlags, String buildFolderName)
{
compileFlags.put("CompilationDatabase", buildFolderName.isEmpty() ? "build" : buildFolderName); //$NON-NLS-1$ //$NON-NLS-2$
compileFlags.put("CompilationDatabase", //$NON-NLS-1$
buildFolderName == null || buildFolderName.isEmpty() ? "build" : buildFolderName); //$NON-NLS-1$
compileFlags.put("Remove", Arrays.asList("-m*", "-f*")); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$
}

Expand Down

0 comments on commit ace15be

Please sign in to comment.