diff options
| author | Douglas Gregor <dgregor@apple.com> | 2009-05-30 06:31:56 +0000 | 
|---|---|---|
| committer | Douglas Gregor <dgregor@apple.com> | 2009-05-30 06:31:56 +0000 | 
| commit | 3bc6e4c72aa91604812b1a387b435a84c0489d4f (patch) | |
| tree | 8641951f48bea9eafb12c5b12e125b0a4a666953 /clang/lib/Sema/SemaDeclCXX.cpp | |
| parent | 2d042f1cf42297dbd9cf7ae9ef558a74dfc0be9e (diff) | |
| download | bcm5719-llvm-3bc6e4c72aa91604812b1a387b435a84c0489d4f.tar.gz bcm5719-llvm-3bc6e4c72aa91604812b1a387b435a84c0489d4f.zip | |
Printing for using directives, e.g.,
  using namespace std::debug;
Extended UsingDirectiveDecl to store the nested-name-specifier that
precedes the nominated namespace.
llvm-svn: 72614
Diffstat (limited to 'clang/lib/Sema/SemaDeclCXX.cpp')
| -rw-r--r-- | clang/lib/Sema/SemaDeclCXX.cpp | 8 | 
1 files changed, 6 insertions, 2 deletions
| diff --git a/clang/lib/Sema/SemaDeclCXX.cpp b/clang/lib/Sema/SemaDeclCXX.cpp index 0bf97f560d5..cd722fe1693 100644 --- a/clang/lib/Sema/SemaDeclCXX.cpp +++ b/clang/lib/Sema/SemaDeclCXX.cpp @@ -1711,8 +1711,12 @@ Sema::DeclPtrTy Sema::ActOnUsingDirective(Scope *S,      while (CommonAncestor && !CommonAncestor->Encloses(CurContext))        CommonAncestor = CommonAncestor->getParent(); -    UDir = UsingDirectiveDecl::Create(Context, CurContext, UsingLoc, -                                      NamespcLoc, IdentLoc, +    UDir = UsingDirectiveDecl::Create(Context,  +                                      CurContext, UsingLoc, +                                      NamespcLoc,  +                                      SS.getRange(), +                                      (NestedNameSpecifier *)SS.getScopeRep(), +                                      IdentLoc,                                        cast<NamespaceDecl>(NS),                                        CommonAncestor);      PushUsingDirective(S, UDir); | 

