File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -2996,11 +2996,29 @@ class TypeAliasDecl : public GenericTypeDecl {
2996
2996
// / Retrieve a sugared interface type containing the structure of the interface
2997
2997
// / type before any semantic validation has occured.
2998
2998
Type getStructuralType () const ;
2999
-
2999
+
3000
+ // / Whether the typealias forwards perfectly to its underlying type.
3001
+ // /
3002
+ // / If true, this typealias was created by ClangImporter to preserve source
3003
+ // / compatibility with a previous language version's name for a type. Many
3004
+ // / checks in Sema look through compatibility aliases even when they would
3005
+ // / operate on other typealiases.
3006
+ // /
3007
+ // / \warning This has absolutely nothing to do with the Objective-C
3008
+ // / \c compatibility_alias keyword.
3000
3009
bool isCompatibilityAlias () const {
3001
3010
return Bits.TypeAliasDecl .IsCompatibilityAlias ;
3002
3011
}
3003
3012
3013
+ // / Sets whether the typealias forwards perfectly to its underlying type.
3014
+ // /
3015
+ // / Marks this typealias as having been created by ClangImporter to preserve
3016
+ // / source compatibility with a previous language version's name for a type.
3017
+ // / Many checks in Sema look through compatibility aliases even when they
3018
+ // / would operate on other typealiases.
3019
+ // /
3020
+ // / \warning This has absolutely nothing to do with the Objective-C
3021
+ // / \c compatibility_alias keyword.
3004
3022
void markAsCompatibilityAlias (bool newValue = true ) {
3005
3023
Bits.TypeAliasDecl .IsCompatibilityAlias = newValue;
3006
3024
}
You can’t perform that action at this time.
0 commit comments