config root man

Current Path : /compat/linux/proc/68247/root/usr/src/contrib/llvm/tools/clang/include/clang/Analysis/Visitors/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //compat/linux/proc/68247/root/usr/src/contrib/llvm/tools/clang/include/clang/Analysis/Visitors/CFGRecStmtVisitor.h

//==- CFGRecStmtVisitor - Recursive visitor of CFG statements ---*- C++ --*-==//
//
//                     The LLVM Compiler Infrastructure
//
// This file is distributed under the University of Illinois Open Source
// License. See LICENSE.TXT for details.
//
//===----------------------------------------------------------------------===//
//
// This file implements the template class CFGRecStmtVisitor, which extends
// CFGStmtVisitor by implementing a default recursive visit of all statements.
//
//===----------------------------------------------------------------------===//

#ifndef LLVM_CLANG_ANALYSIS_CFG_REC_STMT_VISITOR_H
#define LLVM_CLANG_ANALYSIS_CFG_REC_STMT_VISITOR_H

#include "clang/Analysis/Visitors/CFGStmtVisitor.h"

namespace clang {
template <typename ImplClass>
class CFGRecStmtVisitor : public CFGStmtVisitor<ImplClass,void> {
public:

  void VisitStmt(Stmt *S) {
    static_cast< ImplClass* >(this)->VisitChildren(S);
  }
  
  void VisitCompoundStmt(CompoundStmt *S) {
    // Do nothing.  Everything in a CompoundStmt is inlined
    // into the CFG.
  }
  
  void VisitConditionVariableInit(Stmt *S) {
    assert(S == this->getCurrentBlkStmt());
    VarDecl *CondVar = 0;
    switch (S->getStmtClass()) {
#define CONDVAR_CASE(CLASS) \
case Stmt::CLASS ## Class:\
CondVar = cast<CLASS>(S)->getConditionVariable();\
break;
        CONDVAR_CASE(IfStmt)
        CONDVAR_CASE(ForStmt)
        CONDVAR_CASE(SwitchStmt)
        CONDVAR_CASE(WhileStmt)
#undef CONDVAR_CASE
      default:
        llvm_unreachable("Infeasible");
    }    
    static_cast<ImplClass*>(this)->Visit(CondVar->getInit());
  }

  // Defining operator() allows the visitor to be used as a C++ style functor.
  void operator()(Stmt *S) { static_cast<ImplClass*>(this)->BlockStmt_Visit(S);}
};

} // end namespace clang

#endif

Man Man