Author: ioeric
Date: Tue Jul  3 07:51:23 2018
New Revision: 336203

URL: http://llvm.org/viewvc/llvm-project?rev=336203&view=rev
Log:
[clangd] Use default format style and fallback style. NFC

Modified:
    clang-tools-extra/trunk/clangd/CodeComplete.cpp

Modified: clang-tools-extra/trunk/clangd/CodeComplete.cpp
URL: 
http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/CodeComplete.cpp?rev=336203&r1=336202&r2=336203&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/CodeComplete.cpp (original)
+++ clang-tools-extra/trunk/clangd/CodeComplete.cpp Tue Jul  3 07:51:23 2018
@@ -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.");


_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to