-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[Clang] Reapply CWG2369 "Ordering between constraints and substitution" #122423
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 19 commits
56bacf4
df75005
ea9dd82
4943c26
ec143c1
5134b1b
7270bac
671976d
0a517fd
b32afd2
8423cef
04be7cc
da25c55
cbf10c2
debef50
633e396
70acf05
778d2a9
a74e14a
e3eab96
58af4e8
aae2d55
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -522,6 +522,12 @@ enum class TemplateSubstitutionKind : char { | |
llvm::PointerUnion<Decl *, DeclArgumentPack *> * | ||
findInstantiationOf(const Decl *D); | ||
|
||
/// Similar to \p findInstantiationOf(), but it wouldn't assert if the | ||
/// instantiation was not found within the current instantiation scope. This | ||
/// is helpful for on-demand declaration instantiation. | ||
llvm::PointerUnion<Decl *, DeclArgumentPack *> * | ||
findInstantiationUnsafe(const Decl *D); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Instead of Finally, as interface, is there a reason these are returning a pointer to a pointer union? Seems oen should return by value, the other in an There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I renamed it to
It's pre-existing, we track the instantiated decls and packs together within a map. Refactoring the interface (either the return type or the name) would bring a lot of churn, for which I think merits a separate PR. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yep, I'm ok cleaning that interface up in a follow up. Was just curious because it is very much a 'smell'. |
||
|
||
void InstantiatedLocal(const Decl *D, Decl *Inst); | ||
void InstantiatedLocalPackArg(const Decl *D, VarDecl *Inst); | ||
void MakeInstantiatedLocalArgPack(const Decl *D); | ||
|
Uh oh!
There was an error while loading. Please reload this page.