Skip to content

Commit 95c7b6c

Browse files
committed
[clangd] zap a few warnings
1 parent c46c7c9 commit 95c7b6c

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

clang-tools-extra/clangd/DumpAST.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class DumpVisitor : public RecursiveASTVisitor<DumpVisitor> {
143143
TEMPLATE_ARGUMENT_KIND(Declaration);
144144
TEMPLATE_ARGUMENT_KIND(Template);
145145
TEMPLATE_ARGUMENT_KIND(TemplateExpansion);
146+
TEMPLATE_ARGUMENT_KIND(UncommonValue);
146147
#undef TEMPLATE_ARGUMENT_KIND
147148
}
148149
llvm_unreachable("Unhandled ArgKind enum");

clang-tools-extra/clangd/FindTarget.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1069,6 +1069,7 @@ class ExplicitReferenceCollector
10691069
case TemplateArgument::Pack:
10701070
case TemplateArgument::Type:
10711071
case TemplateArgument::Expression:
1072+
case TemplateArgument::UncommonValue:
10721073
break; // Handled by VisitType and VisitExpression.
10731074
};
10741075
return RecursiveASTVisitor::TraverseTemplateArgumentLoc(A);

clang-tools-extra/clangd/index/remote/Client.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,8 @@ class IndexClient : public clangd::SymbolIndex {
152152
});
153153
}
154154

155-
llvm::unique_function<bool(llvm::StringRef) const> indexedFiles() const {
155+
llvm::unique_function<bool(llvm::StringRef) const>
156+
indexedFiles() const override {
156157
// FIXME: For now we always return "false" regardless of whether the file
157158
// was indexed or not. A possible implementation could be based on
158159
// the idea that we do not want to send a request at every

0 commit comments

Comments
 (0)