]> granicus.if.org Git - clang/commit
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)
commita3402fe23c88f2d0c17a4795cd7902ab35df15e7
treef9e04bdf3b793320c3c9ef82eec73722f6852eb5
parent293b7c598947b73d71b24d2c7e665bfc26ae1e49
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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@339623 91177308-0d34-0410-b5e6-96231b3b80d8
25 files changed:
include/clang/AST/ASTContext.h
include/clang/AST/Attr.h
include/clang/AST/Type.h
include/clang/AST/TypeLoc.h
include/clang/Basic/Attr.td
include/clang/Sema/Sema.h
include/clang/Serialization/ASTReader.h
include/clang/Serialization/ASTWriter.h
lib/ARCMigrate/TransGCAttrs.cpp
lib/ARCMigrate/Transforms.cpp
lib/AST/ASTContext.cpp
lib/AST/Type.cpp
lib/AST/TypeLoc.cpp
lib/AST/TypePrinter.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaExpr.cpp
lib/Sema/SemaInit.cpp
lib/Sema/SemaObjCProperty.cpp
lib/Sema/SemaType.cpp
lib/Sema/TreeTransform.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
lib/StaticAnalyzer/Core/CheckerHelpers.cpp
utils/TableGen/ClangAttrEmitter.cpp