r203948 - NFC: remove unused variables from r203938, r203942, and r203947
Duncan P. N. Exon Smith
dexonsmith at apple.com
Fri Mar 14 10:19:41 PDT 2014
Author: dexonsmith
Date: Fri Mar 14 12:19:40 2014
New Revision: 203948
URL: http://llvm.org/viewvc/llvm-project?rev=203948&view=rev
Log:
NFC: remove unused variables from r203938, r203942, and r203947
Modified:
cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h
cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
Modified: cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h?rev=203948&r1=203947&r2=203948&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/DataRecursiveASTVisitor.h Fri Mar 14 12:19:40 2014
@@ -1412,7 +1412,6 @@ bool DataRecursiveASTVisitor<Derived>::T
template<typename Derived>
bool DataRecursiveASTVisitor<Derived>::TraverseClassInstantiations(
ClassTemplateDecl *D) {
- ClassTemplateDecl::spec_iterator end = D->spec_end();
for (auto *SD : D->specializations()) {
switch (SD->getSpecializationKind()) {
// Visit the implicit instantiations with the requested pattern.
@@ -1459,7 +1458,6 @@ DEF_TRAVERSE_DECL(ClassTemplateDecl, {
template <typename Derived>
bool DataRecursiveASTVisitor<Derived>::TraverseVariableInstantiations(
VarTemplateDecl *D) {
- VarTemplateDecl::spec_iterator end = D->spec_end();
for (auto *SD : D->specializations()) {
switch (SD->getSpecializationKind()) {
// Visit the implicit instantiations with the requested pattern.
@@ -1508,7 +1506,6 @@ DEF_TRAVERSE_DECL(
template<typename Derived>
bool DataRecursiveASTVisitor<Derived>::TraverseFunctionInstantiations(
FunctionTemplateDecl *D) {
- FunctionTemplateDecl::spec_iterator end = D->spec_end();
for (auto *FD : D->specializations()) {
switch (FD->getTemplateSpecializationKind()) {
case TSK_Undeclared:
Modified: cfe/trunk/include/clang/AST/RecursiveASTVisitor.h
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/include/clang/AST/RecursiveASTVisitor.h?rev=203948&r1=203947&r2=203948&view=diff
==============================================================================
--- cfe/trunk/include/clang/AST/RecursiveASTVisitor.h (original)
+++ cfe/trunk/include/clang/AST/RecursiveASTVisitor.h Fri Mar 14 12:19:40 2014
@@ -1500,7 +1500,6 @@ bool RecursiveASTVisitor<Derived>::Trave
template<typename Derived> \
bool RecursiveASTVisitor<Derived>::TraverseTemplateInstantiations( \
TMPLDECLKIND##TemplateDecl *D) { \
- TMPLDECLKIND##TemplateDecl::spec_iterator end = D->spec_end(); \
for (auto *SD : D->specializations()) { \
switch (SD->getSpecializationKind()) { \
/* Visit the implicit instantiations with the requested pattern. */ \
@@ -1530,7 +1529,6 @@ DEF_TRAVERSE_TMPL_INST(Var)
template<typename Derived>
bool RecursiveASTVisitor<Derived>::TraverseTemplateInstantiations(
FunctionTemplateDecl *D) {
- FunctionTemplateDecl::spec_iterator end = D->spec_end();
for (auto *FD : D->specializations()) {
switch (FD->getTemplateSpecializationKind()) {
case TSK_Undeclared:
More information about the cfe-commits
mailing list