[cfe-commits] r73589 - /cfe/trunk/include/clang/AST/DeclTemplate.h
Anders Carlsson
andersca at mac.com
Tue Jun 16 17:35:11 PDT 2009
Author: andersca
Date: Tue Jun 16 19:35:01 2009
New Revision: 73589
URL: http://llvm.org/viewvc/llvm-project?rev=73589&view=rev
Log:
Remove all non-const getters from TemplateArgumentList.
Modified:
cfe/trunk/include/clang/AST/DeclTemplate.h
Modified: cfe/trunk/include/clang/AST/DeclTemplate.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DeclTemplate.h?rev=73589&r1=73588&r2=73589&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DeclTemplate.h (original)
+++ cfe/trunk/include/clang/AST/DeclTemplate.h Tue Jun 16 19:35:01 2009
@@ -696,13 +696,6 @@
}
/// \brief Retrieve the template argument at a given index.
- TemplateArgument &get(unsigned Idx) {
- assert(Idx < NumArguments && "Invalid template argument index");
- return getFlatArgumentList()[Idx];
- }
-
- /// \brief Retrieve the template argument at a given index.
- TemplateArgument &operator[](unsigned Idx) { return get(Idx); }
const TemplateArgument &operator[](unsigned Idx) const { return get(Idx); }
/// \brief Retrieve the number of template arguments in this
@@ -714,9 +707,6 @@
unsigned flat_size() const { return NumArguments; }
/// \brief Retrieve the flattened template argument list.
- TemplateArgument *getFlatArgumentList() {
- return Arguments.getPointer();
- }
const TemplateArgument *getFlatArgumentList() const {
return Arguments.getPointer();
}
More information about the cfe-commits
mailing list