diff options
Diffstat (limited to 'clang/include/clang/Sema/AttributeList.h')
-rw-r--r-- | clang/include/clang/Sema/AttributeList.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/clang/include/clang/Sema/AttributeList.h b/clang/include/clang/Sema/AttributeList.h index 909f4a2e613..1ff3fe6c516 100644 --- a/clang/include/clang/Sema/AttributeList.h +++ b/clang/include/clang/Sema/AttributeList.h @@ -46,10 +46,12 @@ struct AvailabilityChange { }; /// \brief Wraps an identifier and optional source location for the identifier. -/// It is expected that these will be created from the ASTContext memory pool. struct IdentifierLoc { SourceLocation Loc; IdentifierInfo *Ident; + + static IdentifierLoc *create(ASTContext &Ctx, SourceLocation Loc, + IdentifierInfo *Ident); }; /// \brief A union of the various pointer types that can be passed to an |