diff options
author | Serge Pavlov <sepavloff@gmail.com> | 2016-08-08 04:02:15 +0000 |
---|---|---|
committer | Serge Pavlov <sepavloff@gmail.com> | 2016-08-08 04:02:15 +0000 |
commit | d931b9f20060ce3751614e889fa4629db13e9e66 (patch) | |
tree | 3282627d886c0e0376ef6a3079b4e0d3f0b9818c /clang/lib/Sema/SemaDecl.cpp | |
parent | 6af0a6bcfebd7eecf55f5451b4c2a9d2046737ec (diff) | |
download | bcm5719-llvm-d931b9f20060ce3751614e889fa4629db13e9e66.tar.gz bcm5719-llvm-d931b9f20060ce3751614e889fa4629db13e9e66.zip |
Pass information in a record instead of stack. NFC
Functions of Sema that work with building of nested name specifiers have too
many parameters (BuildCXXNestedNameSpecifier already expects 10 arguments).
With this change the information about identifier and its context is packed
into a structure, which is then passes to the semantic functions.
llvm-svn: 277976
Diffstat (limited to 'clang/lib/Sema/SemaDecl.cpp')
-rw-r--r-- | clang/lib/Sema/SemaDecl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clang/lib/Sema/SemaDecl.cpp b/clang/lib/Sema/SemaDecl.cpp index ea7a31dbc77..a18ef0c4cf3 100644 --- a/clang/lib/Sema/SemaDecl.cpp +++ b/clang/lib/Sema/SemaDecl.cpp @@ -781,8 +781,8 @@ Sema::ClassifyName(Scope *S, CXXScopeSpec &SS, IdentifierInfo *&Name, ObjCMethodDecl *CurMethod = getCurMethodDecl(); if (NextToken.is(tok::coloncolon)) { - BuildCXXNestedNameSpecifier(S, *Name, NameLoc, NextToken.getLocation(), - QualType(), false, SS, nullptr, false); + NestedNameSpecInfo IdInfo(Name, NameLoc, NextToken.getLocation()); + BuildCXXNestedNameSpecifier(S, IdInfo, false, SS, nullptr, false); } LookupResult Result(*this, Name, NameLoc, LookupOrdinaryName); |