CodeCompleteResult Output;
auto RecorderOwner = llvm::make_unique<CompletionRecorder>(Opts, [&]() {
assert(Recorder && "Recorder is not set");
- // FIXME(ioeric): needs more consistent style support in clangd server.
auto Style =
- format::getStyle("file", SemaCCInput.FileName, "LLVM",
- SemaCCInput.Contents, SemaCCInput.VFS.get());
+ format::getStyle(format::DefaultFormatStyle, SemaCCInput.FileName,
+ format::DefaultFallbackStyle, SemaCCInput.Contents,
+ SemaCCInput.VFS.get());
if (!Style) {
log("Failed to get FormatStyle for file" + SemaCCInput.FileName + ": " +
llvm::toString(Style.takeError()) + ". Fallback is LLVM style.");