~blep/llvm/clang-win32

« back to all changes in this revision

Viewing changes to lib/AST/DeclCXX.cpp

  • Committer: rjmccall
  • Date: 2009-08-11 21:13:21 UTC
  • Revision ID: vcs-imports@canonical.com-20090811211321-7xioucqiv0w7nq8v
Add a FriendClassDecl type for holding declarations of friend types in 
the AST, and create such declarations.

Show diffs side-by-side

added added

removed removed

Lines of Context:
743
743
  return !isa<OverloadedFunctionDecl>(D) || Iter == Other.Iter;
744
744
}
745
745
 
746
 
FriendFunctionDecl *FriendFunctionDecl::Create(ASTContext &C,DeclContext *DC,
 
746
FriendFunctionDecl *FriendFunctionDecl::Create(ASTContext &C,
 
747
                                               DeclContext *DC,
747
748
                                               SourceLocation L,
748
749
                                               DeclarationName N, QualType T,
749
750
                                               bool isInline,
750
751
                                               SourceLocation FriendL) {
751
752
  return new (C) FriendFunctionDecl(DC, L, N, T, isInline, FriendL);
752
753
}
753
 
                                               
 
754
 
 
755
FriendClassDecl *FriendClassDecl::Create(ASTContext &C, DeclContext *DC,
 
756
                                         SourceLocation L, QualType T,
 
757
                                         SourceLocation FriendL) {
 
758
  return new (C) FriendClassDecl(DC, L, T, FriendL);
 
759
}                                               
754
760
 
755
761
LinkageSpecDecl *LinkageSpecDecl::Create(ASTContext &C,
756
762
                                         DeclContext *DC,