Author: Simon Pilgrim
Date: 2022-02-18T14:59:57Z
New Revision: 707157f24834e814243c90cf1f5f50c75f3abcb9

URL: 
https://github.com/llvm/llvm-project/commit/707157f24834e814243c90cf1f5f50c75f3abcb9
DIFF: 
https://github.com/llvm/llvm-project/commit/707157f24834e814243c90cf1f5f50c75f3abcb9.diff

LOG: Revert rGc24e197aaad5333717a27f6e4346f97da84821ed "[clangd] getHover - 
pass FormatStyle argument by const reference"

There are a number of buildbot build failures on non MSVC compilers

Added: 
    

Modified: 
    clang-tools-extra/clangd/Hover.cpp

Removed: 
    


################################################################################
diff  --git a/clang-tools-extra/clangd/Hover.cpp 
b/clang-tools-extra/clangd/Hover.cpp
index 8b22018411404..dda5ad36e9b89 100644
--- a/clang-tools-extra/clangd/Hover.cpp
+++ b/clang-tools-extra/clangd/Hover.cpp
@@ -963,7 +963,7 @@ void maybeAddCalleeArgInfo(const SelectionTree::Node *N, 
HoverInfo &HI,
 } // namespace
 
 llvm::Optional<HoverInfo> getHover(ParsedAST &AST, Position Pos,
-                                   const format::FormatStyle &Style,
+                                   format::FormatStyle Style,
                                    const SymbolIndex *Index) {
   PrintingPolicy PP =
       getPrintingPolicy(AST.getASTContext().getPrintingPolicy());


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

Reply via email to