]> granicus.if.org Git - clang/commit
CXXRecordDecl and RecordDecl:
authorTed Kremenek <kremenek@apple.com>
Tue, 2 Sep 2008 20:13:32 +0000 (20:13 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 2 Sep 2008 20:13:32 +0000 (20:13 +0000)
commitdf91eca19bd9738abd9a3b84791f39750e27ad36
tree85318f27df0ad31bdcba99303cfabbb3a9a66089
parentb4eaf9cf5f79c86a3f7564f4dfdea57f165ca45c
CXXRecordDecl and RecordDecl:
- Change constructor and create methods to accept a CXXRecordDecl* (RecordDecl*)
  instead of a ScopedDecl* for PrevDecl.  This causes the type checking
  to be more tight and doesn't break any code.

RecordDecl:

- Don't use the NextDeclarator field in ScopedDecl to represent the previous
  declaration. This is a conflated use of the NextDeclarator field, which will
  be removed anyway when DeclGroups are fully implemented.

- Instead, represent (a soon to be implemented) chain of RecordDecls using a
  NextDecl field.  The last RecordDecl in the chain is always the 'defining'
  RecordDecl that owns the FieldDecls.  The other RecordDecls in the chain
  are forward declarations.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55640 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/Decl.h
include/clang/AST/DeclCXX.h
lib/AST/Decl.cpp
lib/AST/DeclCXX.cpp