From: Douglas Gregor Date: Wed, 2 Mar 2011 15:13:50 +0000 (+0000) Subject: Eliminate some unused getQualifierRange() member functions. We deal in nested-name... X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=46bb4f1a3ac9517406887939612eb8df4b7be006;p=clang Eliminate some unused getQualifierRange() member functions. We deal in nested-name-specifier locations now. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@126842 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/AST/DeclCXX.h b/include/clang/AST/DeclCXX.h index 45108c37e0..869ab3b153 100644 --- a/include/clang/AST/DeclCXX.h +++ b/include/clang/AST/DeclCXX.h @@ -2045,12 +2045,6 @@ public: return QualifierLoc.getNestedNameSpecifier(); } - /// \brief Retrieve the source range of the nested-name-specifier - /// that qualifies the name. - SourceRange getQualifierRange() const { - return QualifierLoc.getSourceRange(); - } - DeclarationNameInfo getNameInfo() const { return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc); } @@ -2176,12 +2170,6 @@ public: return QualifierLoc.getNestedNameSpecifier(); } - /// \brief Retrieve the source range of the nested-name-specifier - /// that qualifies the name. - SourceRange getQualifierRange() const { - return QualifierLoc.getSourceRange(); - } - DeclarationNameInfo getNameInfo() const { return DeclarationNameInfo(getDeclName(), getLocation(), DNLoc); } @@ -2249,13 +2237,6 @@ public: return QualifierLoc.getNestedNameSpecifier(); } - /// \brief Retrieve the source range of the nested-name-specifier - /// that qualifies the name. - SourceRange getQualifierRange() const { - return QualifierLoc.getSourceRange(); - } - - // FIXME: DeclarationNameInfo static UnresolvedUsingTypenameDecl * Create(ASTContext &C, DeclContext *DC, SourceLocation UsingLoc, SourceLocation TypenameLoc, NestedNameSpecifierLoc QualifierLoc, diff --git a/include/clang/AST/ExprCXX.h b/include/clang/AST/ExprCXX.h index c904d9785c..df044ec078 100644 --- a/include/clang/AST/ExprCXX.h +++ b/include/clang/AST/ExprCXX.h @@ -2185,7 +2185,7 @@ class CXXDependentScopeMemberExpr : public Expr { /// member stores the resolves of name lookup in the context of the member /// access expression, to be used at instantiation time. /// - /// FIXME: This member, along with the Qualifier and QualifierRange, could + /// FIXME: This member, along with the QualifierLoc, could /// be stuck into a structure that is optionally allocated at the end of /// the CXXDependentScopeMemberExpr, to save space in the common case. NamedDecl *FirstQualifierFoundInScope;