[clangd] zap a few warnings

This commit is contained in:
Sam McCall 2020-12-18 16:34:34 +01:00
parent c46c7c9bcf
commit 95c7b6cadb
3 changed files with 4 additions and 1 deletions

View file

@ -143,6 +143,7 @@ class DumpVisitor : public RecursiveASTVisitor<DumpVisitor> {
TEMPLATE_ARGUMENT_KIND(Declaration);
TEMPLATE_ARGUMENT_KIND(Template);
TEMPLATE_ARGUMENT_KIND(TemplateExpansion);
TEMPLATE_ARGUMENT_KIND(UncommonValue);
#undef TEMPLATE_ARGUMENT_KIND
}
llvm_unreachable("Unhandled ArgKind enum");

View file

@ -1069,6 +1069,7 @@ public:
case TemplateArgument::Pack:
case TemplateArgument::Type:
case TemplateArgument::Expression:
case TemplateArgument::UncommonValue:
break; // Handled by VisitType and VisitExpression.
};
return RecursiveASTVisitor::TraverseTemplateArgumentLoc(A);

View file

@ -152,7 +152,8 @@ public:
});
}
llvm::unique_function<bool(llvm::StringRef) const> indexedFiles() const {
llvm::unique_function<bool(llvm::StringRef) const>
indexedFiles() const override {
// FIXME: For now we always return "false" regardless of whether the file
// was indexed or not. A possible implementation could be based on
// the idea that we do not want to send a request at every