]> granicus.if.org Git - clang/commit
Several improvement to Sema::ParseRecordBody()...
authorSteve Naroff <snaroff@apple.com>
Fri, 14 Sep 2007 22:20:54 +0000 (22:20 +0000)
committerSteve Naroff <snaroff@apple.com>
Fri, 14 Sep 2007 22:20:54 +0000 (22:20 +0000)
commit74216648a51e3aee7e59c27e1f1e5c132c024830
treed291962ffe24c393d8687e1c93b4df85ab5155e5
parentb04a02184c5ec8745ea8a639fbdff2293fe0ae96
Several improvement to Sema::ParseRecordBody()...

- Adding a safer prologue. The previous prologue would accept a null and therefore assume we had an interface (which was incorrect).
- Fixed FieldDecl's classof method. This allowed me to simplify some unnecessary casting.
- When diagnosing errors, make sure the FieldDecl/EnclosingDecl are marked as invalid. In addition, don't delete the field...rather, add all fields to the enclosing decl. Memory management can/should be done elsewhere. This code was never "upgraded" to the recently added invalid decl strategy.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41964 91177308-0d34-0410-b5e6-96231b3b80d8
Sema/SemaDecl.cpp
clang.xcodeproj/project.pbxproj
include/clang/AST/Decl.h