llvm-project/clang/lib/AST
Sean Callanan 81d577c5c9 This patch (thanks to Doug Gregor) fixes a
problem where Clang was setting the
hasExternalVisibleDecls() bit for all
DeclContexts it imported.  This caused Clang
to make unnecessary calls to
findExternalVisibleDecls() when an external
AST source was installed.

In fact, Clang sometimes interpreted a failure
by one of these spurious calls to find a
Decl as meaning the Decl didn't exist, even
though findExternalLexicalDecls() did locate
that decl.  This produced amusing errors of
the form:

-
error: no member named 'b' in 'A'; did you
mean 'b'?
-

Now, if hasExternalVisibleDecls() or
hasExternalLexicalDecls() should be set, the
external AST source must do so itself.

llvm-svn: 135824
2011-07-22 23:46:03 +00:00
..
APValue.cpp Define DiagnosticBuilder<<APValue so it's easy to include APValues in 2011-07-18 16:43:53 +00:00
ASTConsumer.cpp Reintroduce the ASTConsumer/ASTUnit fix from r110610, it has nothing to do with the breakage. 2010-08-11 18:52:41 +00:00
ASTContext.cpp Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin. 2011-07-22 02:08:32 +00:00
ASTDiagnostic.cpp Apply patch from Richard Trieu to fix PR9548: 2011-07-11 17:49:21 +00:00
ASTImporter.cpp This patch (thanks to Doug Gregor) fixes a 2011-07-22 23:46:03 +00:00
AttrImpl.cpp Generate Attr subclasses with TableGen. 2010-08-18 23:23:40 +00:00
CMakeLists.txt Unbreak CMake build 2011-02-28 14:32:11 +00:00
CXXABI.h Move isNearlyEmpty out into the ASTContext so it can be called from CodeGen as well. 2010-11-25 01:51:53 +00:00
CXXInheritance.cpp Support for C++11 (non-template) alias declarations. 2011-04-15 14:24:37 +00:00
Decl.cpp Don't crash when codegen'ing an empty redecl of a function in C99 mode, when 2011-07-18 07:11:55 +00:00
DeclBase.cpp Augment the interface of ExternalASTSource::FindExternalLexicalDecls() 2011-07-15 21:46:17 +00:00
DeclCXX.cpp Correctly set up the list of virtual base classes for a CXXRecordDecl. Previously we got the source range wrong for everything in the virtual bases list. 2011-07-12 23:49:11 +00:00
DeclFriend.cpp Support C++ friend declarations for PCH. 2010-06-29 22:47:00 +00:00
DeclGroup.cpp I lied. Kill off a few more Destroy methods 2010-07-25 18:32:30 +00:00
DeclObjC.cpp Move this ObjCImplementationDecl member function into libAST 2011-07-22 04:15:06 +00:00
DeclPrinter.cpp Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
DeclTemplate.cpp Implement support for C++0x alias templates. 2011-05-05 21:57:07 +00:00
DeclarationName.cpp Introduce the notion of instantiation dependence into Clang's AST. A 2011-07-01 01:22:09 +00:00
DumpXML.cpp Implement Objective-C Related Result Type semantics. 2011-06-11 01:09:30 +00:00
Expr.cpp Silliness with commas, as reported at http://blog.regehr.org/archives/558 . As it turns out, this is my fault for not noticing this was an issue when I was looking at this a long time ago. :( 2011-07-13 02:05:57 +00:00
ExprCXX.cpp Teach CXXUnresolvedConstructExpr when it should be an 2011-07-08 15:50:43 +00:00
ExprClassification.cpp Create a new expression node, SubstNonTypeTemplateParmExpr, 2011-07-15 05:09:51 +00:00
ExprConstant.cpp Use the new APFloat::convertToInt(APSInt) function to simplify uses of 2011-07-15 17:03:07 +00:00
ExternalASTSource.cpp Augment the interface of ExternalASTSource::FindExternalLexicalDecls() 2011-07-15 21:46:17 +00:00
InheritViz.cpp Revert 123553, as sys::fs::unique_file is not finished yet. 2011-03-01 19:50:49 +00:00
ItaniumCXXABI.cpp fix a bunch of comment typos found by codespell. Patch by 2011-04-15 05:22:18 +00:00
ItaniumMangle.cpp Create a new expression node, SubstNonTypeTemplateParmExpr, 2011-07-15 05:09:51 +00:00
Makefile BUILD_ARCHIVE is the default for libraries, no need to set it. 2010-07-18 00:14:47 +00:00
Mangle.cpp Implement support for C++11 in-class initialization of non-static data members. 2011-06-11 17:19:42 +00:00
MicrosoftCXXABI.cpp fix a bunch of comment typos found by codespell. Patch by 2011-04-15 05:22:18 +00:00
MicrosoftMangle.cpp Implement a new type node, UnaryTransformType, designed to represent a 2011-05-24 22:41:36 +00:00
NestedNameSpecifier.cpp Introduce the notion of instantiation dependence into Clang's AST. A 2011-07-01 01:22:09 +00:00
ParentMap.cpp Automatic Reference Counting. 2011-06-15 23:02:42 +00:00
RecordLayout.cpp Convert RecordLayout::Alignment to CharUnits from bit units. No change in 2011-02-15 02:32:40 +00:00
RecordLayoutBuilder.cpp Add a const overload for ObjCInterfaceDecl::all_declared_ivar_begin. 2011-07-22 02:08:32 +00:00
Stmt.cpp In ARC, reclaim all return values of retainable type, not just those 2011-07-07 06:58:02 +00:00
StmtDumper.cpp Add an optional field attached to a DeclRefExpr which points back to the 2011-05-01 23:48:14 +00:00
StmtIterator.cpp Support for C++11 (non-template) alias declarations. 2011-04-15 14:24:37 +00:00
StmtPrinter.cpp Create a new expression node, SubstNonTypeTemplateParmExpr, 2011-07-15 05:09:51 +00:00
StmtProfile.cpp Create a new expression node, SubstNonTypeTemplateParmExpr, 2011-07-15 05:09:51 +00:00
StmtViz.cpp Adapt to the DOTGraphTraits changes in LLVM. 2009-11-30 14:16:05 +00:00
TemplateBase.cpp Introduce the notion of instantiation dependence into Clang's AST. A 2011-07-01 01:22:09 +00:00
TemplateName.cpp Introduce the notion of instantiation dependence into Clang's AST. A 2011-07-01 01:22:09 +00:00
Type.cpp In ARC mode, consider Objective-C lifetime types (object pointers and 2011-07-12 17:28:52 +00:00
TypeLoc.cpp Make yet another placeholder type, this one marking that an expression is a bound 2011-04-26 20:42:42 +00:00
TypePrinter.cpp Rename objc_lifetime -> objc_ownership, and modify diagnostics to talk about 'ownership', not 'lifetime'. 2011-06-24 00:08:59 +00:00