]> granicus.if.org Git - clang/commit
[modules] Add an assert for redeclarations that we never added to their redecl
authorRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 27 Jul 2015 05:40:23 +0000 (05:40 +0000)
committerRichard Smith <richard-llvm@metafoo.co.uk>
Mon, 27 Jul 2015 05:40:23 +0000 (05:40 +0000)
commitcca9227074a2b4c96c1140248c7c8a908b52014f
treefeef962a1c73e81b1af1f727d2a0e59af898d7d6
parent6a65e26a37e6865b4b0d2ad7ac90bb09bd8501c9
[modules] Add an assert for redeclarations that we never added to their redecl
chain and fix the cases where it fires.

 * Handle the __va_list_tag as a predefined decl. Previously we failed to merge
   sometimes it because it's not visible to name lookup. (In passing, remove
   redundant __va_list_tag typedefs that we were creating for some ABIs. These
   didn't affect the mangling or representation of the type.)

 * For Decls derived from Redeclarable that are not in fact redeclarable
   (implicit params, function params, ObjC type parameters), remove them from
   the list of expected redeclarable decls.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@243259 91177308-0d34-0410-b5e6-96231b3b80d8
include/clang/AST/ASTContext.h
include/clang/Serialization/ASTBitCodes.h
lib/AST/ASTContext.cpp
lib/Serialization/ASTCommon.h
lib/Serialization/ASTReader.cpp
lib/Serialization/ASTReaderDecl.cpp
lib/Serialization/ASTWriter.cpp
test/Misc/ast-dump-color.cpp