Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
| clang/lib/Sema/SemaExpr.cpp | ||
|---|---|---|
| 5931 | This feels very fragile, and I know is missing at least one case. Is there a better way to reliably get at the typedef's attributes from here? | |
| clang/lib/Sema/SemaExpr.cpp | ||
|---|---|---|
| 5931 | Fundamentally, the way canonical types work in C and C++ means that you shouldn't be trying to dig attributes out of typedefs. If it's a property of the type, it should be stored as a member of the FunctionType, like we do with calling conventions etc. | |
This feels very fragile, and I know is missing at least one case. Is there a better way to reliably get at the typedef's attributes from here?