summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Liu <ioeric@google.com>2018-07-03 14:51:23 +0000
committerEric Liu <ioeric@google.com>2018-07-03 14:51:23 +0000
commit9338a8838afe3620538c44186d2eb6f25d2213a7 (patch)
tree363bf8194a328cd4e9430304da50459cc5c1627f
parenteb5b79b461786aa6810811512c4a6144b4dc3428 (diff)
downloadbcm5719-llvm-9338a8838afe3620538c44186d2eb6f25d2213a7.tar.gz
bcm5719-llvm-9338a8838afe3620538c44186d2eb6f25d2213a7.zip
[clangd] Use default format style and fallback style. NFC
llvm-svn: 336203
-rw-r--r--clang-tools-extra/clangd/CodeComplete.cpp6
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.");
OpenPOWER on IntegriCloud