Model type attributes as regular Attrs.
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 13 Aug 2018 22:07:09 +0000 (22:07 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 13 Aug 2018 22:07:09 +0000 (22:07 +0000)
commitf79178635abeec3bf958a08eb760d6db911ee3c1
treec9cf488faba0e90cec9623aefe73c907dff70aad
parentcade635c77004ddfabe97a0bbefefcf90d322ed8
Model type attributes as regular Attrs.

Specifically, AttributedType now tracks a regular attr::Kind rather than
having its own parallel Kind enumeration, and AttributedTypeLoc now
holds an Attr* instead of holding an ad-hoc collection of Attr fields.

Differential Revision: https://reviews.llvm.org/D50526

llvm-svn: 339623
25 files changed:
clang/include/clang/AST/ASTContext.h
clang/include/clang/AST/Attr.h
clang/include/clang/AST/Type.h
clang/include/clang/AST/TypeLoc.h
clang/include/clang/Basic/Attr.td
clang/include/clang/Sema/Sema.h
clang/include/clang/Serialization/ASTReader.h
clang/include/clang/Serialization/ASTWriter.h
clang/lib/ARCMigrate/TransGCAttrs.cpp
clang/lib/ARCMigrate/Transforms.cpp
clang/lib/AST/ASTContext.cpp
clang/lib/AST/Type.cpp
clang/lib/AST/TypeLoc.cpp
clang/lib/AST/TypePrinter.cpp
clang/lib/Sema/SemaDecl.cpp
clang/lib/Sema/SemaExpr.cpp
clang/lib/Sema/SemaInit.cpp
clang/lib/Sema/SemaObjCProperty.cpp
clang/lib/Sema/SemaType.cpp
clang/lib/Sema/TreeTransform.h
clang/lib/Serialization/ASTReader.cpp
clang/lib/Serialization/ASTReaderDecl.cpp
clang/lib/Serialization/ASTWriter.cpp
clang/lib/StaticAnalyzer/Core/CheckerHelpers.cpp
clang/utils/TableGen/ClangAttrEmitter.cpp