-
Notifications
You must be signed in to change notification settings - Fork 14.3k
[Clang] Make the SizeType, SignedSizeType and PtrdiffType be named sugar types instead of built-in types #143653
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
base: main
Are you sure you want to change the base?
Changes from all commits
9628219
33f05ab
7e2593e
bcc45f0
9d6235b
85cbd4a
210fe3b
ddd73d8
6e207dd
1519032
41f1433
fc57313
c702c18
4b62452
3ab170b
c26bb5f
b53c418
46a8ede
aabc866
f5acec2
6d427d3
b487226
a60ff6e
17ef365
dd2a256
0bbc668
895efce
9ed218e
a60f96d
faf82b1
a10bd96
6a473e0
9b9b90a
a753834
816fef9
e8420f0
2d1cb40
1274282
6b8f27d
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 | ||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
@@ -2767,6 +2767,10 @@ class DependentBitIntTypeLoc final | |||||||||||||||||||||||||
: public InheritingConcreteTypeLoc<TypeSpecTypeLoc, DependentBitIntTypeLoc, | ||||||||||||||||||||||||||
DependentBitIntType> {}; | ||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
class PredefinedSugarTypeLoc final | ||||||||||||||||||||||||||
: public InheritingConcreteTypeLoc<TypeSpecTypeLoc, PredefinedSugarTypeLoc, | ||||||||||||||||||||||||||
PredefinedSugarType> {}; | ||||||||||||||||||||||||||
Comment on lines
+2770
to
+2772
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. These should ideally never be used in practice, as a PredefinedSugarType is never written in source code. 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. llvm-project/clang/include/clang/AST/TypeLoc.h Lines 49 to 53 in f90025e
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. Yeah, but for the current uses of PredefinedSugarType in this patch, we should never have to produce these TypeLocs, since this type is never written in source code. It would be interesting to watch for this. I suspect that if we end up producing it, it would be because of some workaround somewhere, where some function expects a TypeLoc / TypeSourceInfo and we just produce a trivial one. Likewise, serializing these TypeLocs seems also to be unnecessary. 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. llvm-project/clang/include/clang/AST/RecursiveASTVisitor.h Lines 722 to 728 in 25d52fb
|
||||||||||||||||||||||||||
|
||||||||||||||||||||||||||
class ObjCProtocolLoc { | ||||||||||||||||||||||||||
ObjCProtocolDecl *Protocol = nullptr; | ||||||||||||||||||||||||||
SourceLocation Loc = SourceLocation(); | ||||||||||||||||||||||||||
|
Uh oh!
There was an error while loading. Please reload this page.