[PATCH] D155460: [clang][clangd][c++20] Improve support of type constraints in TemplateTypeParms.
Jens Massberg via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 17 06:50:48 PDT 2023
massberg created this revision.
massberg added a reviewer: sammccall.
Herald added subscribers: kadircet, arphaman, kristof.beyls.
Herald added a project: All.
massberg requested review of this revision.
Herald added subscribers: cfe-commits, MaskRay, ilya-biryukov.
Herald added projects: clang, clang-tools-extra.
Consider type constraints of TemplateTypeParmDecls in FindTarget.
To this end TemplateTypeParmTypeLoc:getLocalSourceRange() now also includes
the whole constraint if there is any.
In clangd this enables that Hover now works for type constraints of auto function parameters and
template parameters.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D155460
Files:
clang-tools-extra/clangd/FindTarget.cpp
clang-tools-extra/clangd/unittests/FindTargetTests.cpp
clang-tools-extra/clangd/unittests/HoverTests.cpp
clang/include/clang/AST/TypeLoc.h
clang/lib/AST/TypeLoc.cpp
clang/unittests/AST/SourceLocationTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D155460.541003.patch
Type: text/x-patch
Size: 9625 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230717/1e103da9/attachment.bin>
More information about the cfe-commits
mailing list