diff options
Diffstat (limited to 'clang-tools-extra/clangd/CodeComplete.cpp')
| -rw-r--r-- | clang-tools-extra/clangd/CodeComplete.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/clang-tools-extra/clangd/CodeComplete.cpp b/clang-tools-extra/clangd/CodeComplete.cpp index 248c96b36db..7e07c3f781c 100644 --- a/clang-tools-extra/clangd/CodeComplete.cpp +++ b/clang-tools-extra/clangd/CodeComplete.cpp @@ -955,10 +955,10 @@ public: 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."); |

