diff options
author | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-02-18 17:21:07 +0300 |
---|---|---|
committer | Simon Pilgrim <llvm-dev@redking.me.uk> | 2022-02-18 17:45:51 +0300 |
commit | c24e197aaad5333717a27f6e4346f97da84821ed (patch) | |
tree | 559a0dc25f4afeaa0df51718517b8601c3aac4da /clang-tools-extra | |
parent | 00ab91b70d21f72af59e4e198c6dc819452405af (diff) |
[clangd] getHover - pass FormatStyle argument by const reference
Reported by coverity
Diffstat (limited to 'clang-tools-extra')
-rw-r--r-- | clang-tools-extra/clangd/Hover.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang-tools-extra/clangd/Hover.cpp b/clang-tools-extra/clangd/Hover.cpp index dda5ad36e9b8..8b2201841140 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, - format::FormatStyle Style, + const format::FormatStyle &Style, const SymbolIndex *Index) { PrintingPolicy PP = getPrintingPolicy(AST.getASTContext().getPrintingPolicy()); |