hanchenye-llvm-project/clang/lib
Sean Callanan 95e74be193 I added a new function to DeclContext called
addDeclInternal().  This function suppresses any
calls to FindExternalVisibleDeclsByName() while
a Decl is added to a DeclContext.  This behavior
is required for the ASTImporter, because in the
case of the LLDB client the ASTImporter would be
called recursively to import the visible decls,
which leads to assertions because the recursive
call is seeing partially-formed types.

I also modified the ASTImporter to use
addDeclInternal() in all places where it would
otherwise use addDecl().  This fix should not
affect the rest of Clang, passes Clang's
testsuite, and fixes several serious LLDB bugs.

llvm-svn: 142634
2011-10-21 02:57:43 +00:00
..
ARCMigrate Further refine the diagnostic categories for ARC diagnostics. Addresses <rdar://problem/10245086>. 2011-10-20 05:07:47 +00:00
AST I added a new function to DeclContext called 2011-10-21 02:57:43 +00:00
Analysis More metaprogramming with builtin types. 2011-10-18 22:28:37 +00:00
Basic Further refine the diagnostic categories for ARC diagnostics. Addresses <rdar://problem/10245086>. 2011-10-20 05:07:47 +00:00
CodeGen Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is 2011-10-21 02:32:14 +00:00
Driver Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is 2011-10-21 02:32:14 +00:00
Frontend Take DW_AT_comp_dir from $PWD when it's present and starts with a '/'. This is 2011-10-21 02:32:14 +00:00
FrontendTool Parse LLVM command line arguments after plugins have been loaded 2011-10-10 01:23:06 +00:00
Headers Add _mm_comige_sd to emmintrin.h, since I apparently forgot to do this in r138769. 2011-10-06 20:31:50 +00:00
Index Change operator<< for raw_ostream and NamedDecl to take a reference instead of a pointer. 2011-10-14 18:45:37 +00:00
Lex Add a __has_feature check for arc_cf_code_audited. 2011-10-18 21:18:53 +00:00
Parse 'extern template' is a C++11 feature. Add an Extension for C++98 (this matches 2011-10-20 18:35:58 +00:00
Rewrite objc rewriter: Restore objc_msgSend_stret/objc_msgSendSuper_stret declaration 2011-10-11 23:02:37 +00:00
Sema Add -Wc++98-compat diagnostics for jumps which bypass initialization of non-POD 2011-10-20 21:42:12 +00:00
Serialization Keep track when a ObjC interface/protocol was initially created as a forward reference. 2011-10-17 19:48:06 +00:00
StaticAnalyzer [analyzer] Move predecessor into the NodeBuilder context. 2011-10-18 23:06:48 +00:00
CMakeLists.txt
Makefile