summaryrefslogtreecommitdiffstats
path: root/clang-tools-extra/clangd/AST.h
diff options
context:
space:
mode:
Diffstat (limited to 'clang-tools-extra/clangd/AST.h')
-rw-r--r--clang-tools-extra/clangd/AST.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/clang-tools-extra/clangd/AST.h b/clang-tools-extra/clangd/AST.h
index b106e06f8d9..3850ab4f6b4 100644
--- a/clang-tools-extra/clangd/AST.h
+++ b/clang-tools-extra/clangd/AST.h
@@ -116,6 +116,11 @@ NestedNameSpecifierLoc getQualifierLoc(const NamedDecl &ND);
// (i.e. vector<T*> rather than vector<type-parameter-0-0 *>.
QualType declaredType(const TypeDecl *D);
+/// Retrieves the deduced type at a given location (auto, decltype).
+/// Retuns None unless Loc starts an auto/decltype token.
+/// It will return the underlying type.
+llvm::Optional<QualType> getDeducedType(ASTContext &, SourceLocation Loc);
+
} // namespace clangd
} // namespace clang
OpenPOWER on IntegriCloud