[PATCH] D145034: [Clang][Sema] Preparations to fix handling of out-of-line definitions of constrained templates
Alexander Shaposhnikov via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 28 23:38:39 PST 2023
alexander-shaposhnikov created this revision.
alexander-shaposhnikov added reviewers: rsmith, aaron.ballman.
alexander-shaposhnikov created this object with visibility "All Users".
Herald added a project: All.
alexander-shaposhnikov requested review of this revision.
Herald added a project: clang.
Herald added a subscriber: cfe-commits.
This diff starts fixing our handling of out-of-line definitions of constrained templates.
Initially it was motivated by https://github.com/llvm/llvm-project/issues/49620 .
The current diff doesn't fully address those issues, more changes are required to make things work for the case where
multiple template parameter lists are attached to the declaration, this will be done in a follow-up diff.
Test plan:
1/ ninja check-all
2/ Bootstrapped Clang passes all the tests
3/ Internal testing (built a few large projects (that use templates extensively) with the bootstrapped version of Clang)
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D145034
Files:
clang/include/clang/Sema/DeclSpec.h
clang/lib/Parse/ParseDecl.cpp
clang/lib/Parse/ParseDeclCXX.cpp
clang/lib/Sema/SemaCXXScopeSpec.cpp
clang/test/CXX/temp/temp.decls/temp.class.spec/temp.class.spec.mfunc/p1-neg.cpp
clang/test/SemaTemplate/concepts-out-of-line-def.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D145034.501382.patch
Type: text/x-patch
Size: 7614 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230301/1cc461c6/attachment.bin>
More information about the cfe-commits
mailing list