]> granicus.if.org Git - clang/commit
[NFCI]Create CommonAttributeInfo Type as base type of *Attr and ParsedAttr.
authorErich Keane <erich.keane@intel.com>
Fri, 13 Sep 2019 17:39:31 +0000 (17:39 +0000)
committerErich Keane <erich.keane@intel.com>
Fri, 13 Sep 2019 17:39:31 +0000 (17:39 +0000)
commit063c2472faf6c009cbff5853273c9eff14cb9160
tree16f876986d482ea80afe5900f9ffd168aeeb61c1
parentff6d4b99884f00b21ab70231801f8b156f5d738a
[NFCI]Create CommonAttributeInfo Type as base type of *Attr and ParsedAttr.

In order to enable future improvements to our attribute diagnostics,
this moves info from ParsedAttr into CommonAttributeInfo, then makes
this type the base of the *Attr and ParsedAttr types. Quite a bit of
refactoring took place, including removing a bunch of redundant Spelling
Index propogation.

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

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@371875 91177308-0d34-0410-b5e6-96231b3b80d8
30 files changed:
include/clang/AST/Attr.h
include/clang/Basic/Attr.td
include/clang/Basic/AttributeCommonInfo.h [new file with mode: 0644]
include/clang/Lex/Preprocessor.h
include/clang/Sema/ParsedAttr.h
include/clang/Sema/Sema.h
include/clang/Serialization/ASTBitCodes.h
lib/CodeGen/CGOpenMPRuntimeNVPTX.cpp
lib/Lex/PPDirectives.cpp
lib/Lex/PPLexerChange.cpp
lib/Lex/Pragma.cpp
lib/Parse/ParseDecl.cpp
lib/Parse/ParseDeclCXX.cpp
lib/Parse/ParseExprCXX.cpp
lib/Parse/ParsePragma.cpp
lib/Parse/Parser.cpp
lib/Sema/ParsedAttr.cpp
lib/Sema/SemaAttr.cpp
lib/Sema/SemaDecl.cpp
lib/Sema/SemaDeclAttr.cpp
lib/Sema/SemaDeclCXX.cpp
lib/Sema/SemaObjCProperty.cpp
lib/Sema/SemaOpenMP.cpp
lib/Sema/SemaStmtAttr.cpp
lib/Sema/SemaTemplateInstantiate.cpp
lib/Sema/SemaTemplateInstantiateDecl.cpp
lib/Sema/SemaType.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
utils/TableGen/ClangAttrEmitter.cpp