[clang-tools-extra] r340816 - [clangd] Remove unused parameter. NFC
Ilya Biryukov via cfe-commits
cfe-commits at lists.llvm.org
Tue Aug 28 04:04:07 PDT 2018
Author: ibiryukov
Date: Tue Aug 28 04:04:07 2018
New Revision: 340816
URL: http://llvm.org/viewvc/llvm-project?rev=340816&view=rev
Log:
[clangd] Remove unused parameter. NFC
Modified:
clang-tools-extra/trunk/clangd/XRefs.cpp
Modified: clang-tools-extra/trunk/clangd/XRefs.cpp
URL: http://llvm.org/viewvc/llvm-project/clang-tools-extra/trunk/clangd/XRefs.cpp?rev=340816&r1=340815&r2=340816&view=diff
==============================================================================
--- clang-tools-extra/trunk/clangd/XRefs.cpp (original)
+++ clang-tools-extra/trunk/clangd/XRefs.cpp Tue Aug 28 04:04:07 2018
@@ -77,8 +77,7 @@ class DeclarationAndMacrosFinder : publi
Preprocessor &PP;
public:
- DeclarationAndMacrosFinder(raw_ostream &OS,
- const SourceLocation &SearchedLocation,
+ DeclarationAndMacrosFinder(const SourceLocation &SearchedLocation,
ASTContext &AST, Preprocessor &PP)
: SearchedLocation(SearchedLocation), AST(AST), PP(PP) {}
@@ -163,8 +162,8 @@ struct IdentifiedSymbol {
};
IdentifiedSymbol getSymbolAtPosition(ParsedAST &AST, SourceLocation Pos) {
- auto DeclMacrosFinder = DeclarationAndMacrosFinder(
- llvm::errs(), Pos, AST.getASTContext(), AST.getPreprocessor());
+ auto DeclMacrosFinder = DeclarationAndMacrosFinder(Pos, AST.getASTContext(),
+ AST.getPreprocessor());
index::IndexingOptions IndexOpts;
IndexOpts.SystemSymbolFilter =
index::IndexingOptions::SystemSymbolFilterKind::All;
@@ -324,7 +323,7 @@ class DocumentHighlightsFinder : public
const ASTContext *
public:
- DocumentHighlightsFinder(raw_ostream &OS, ASTContext &AST, Preprocessor &PP,
+ DocumentHighlightsFinder(ASTContext &AST, Preprocessor &PP,
std::vector<const Decl *> &Decls)
: Decls(Decls), AST(AST) {}
std::vector<DocumentHighlight> takeHighlights() {
@@ -389,7 +388,7 @@ std::vector<DocumentHighlight> findDocum
std::vector<const Decl *> SelectedDecls = Symbols.Decls;
DocumentHighlightsFinder DocHighlightsFinder(
- llvm::errs(), AST.getASTContext(), AST.getPreprocessor(), SelectedDecls);
+ AST.getASTContext(), AST.getPreprocessor(), SelectedDecls);
index::IndexingOptions IndexOpts;
IndexOpts.SystemSymbolFilter =
More information about the cfe-commits
mailing list