Searched refs:IfStmt (Results 1 - 25 of 32) sorted by relevance

12

/external/clang/lib/Tooling/
H A DRefactoringCallbacks.cpp68 if (const IfStmt *Node = Result.Nodes.getStmtAs<IfStmt>(Id)) {
/external/clang/lib/StaticAnalyzer/Checkers/
H A DIdenticalExprChecker.cpp50 bool VisitIfStmt(const IfStmt *I);
107 bool FindIdenticalExprVisitor::VisitIfStmt(const IfStmt *I) {
121 while (const IfStmt *I2 = dyn_cast_or_null<IfStmt>(Else)) {
397 const IfStmt *IStmt1 = cast<IfStmt>(Stmt1);
398 const IfStmt *IStmt2 = cast<IfStmt>(Stmt2);
/external/clang/lib/Analysis/
H A DBodyFarm.cpp246 IfStmt *If = new (C) IfStmt(C, SourceLocation(), nullptr, UO, CS);
326 // Construct the body of the IfStmt.
350 new (C) IfStmt(C, SourceLocation(), nullptr, Comparison, Body,
H A DConsumed.cpp949 void splitVarStateForIf(const IfStmt * IfNode, const VarTestResult &Test,
1274 if (const IfStmt *IfNode =
1275 dyn_cast_or_null<IfStmt>(CurrBlock->getTerminator().getStmt())) {
H A DCFG.cpp382 CFGBlock *VisitIfStmt(IfStmt *I);
1417 return VisitIfStmt(cast<IfStmt>(S));
2027 CFGBlock *CFGBuilder::VisitIfStmt(IfStmt *I) {
2139 // Finally, if the IfStmt contains a condition variable, add it and its
3833 const VarDecl *var = cast<IfStmt>(stmt)->getConditionVariable();
3927 void VisitIfStmt(IfStmt *I) {
4407 E = cast<IfStmt>(Terminator)->getCond();
/external/clang/unittests/AST/
H A DASTTypeTraitsTest.cpp42 EXPECT_TRUE(DNT<Stmt>().isBaseOf(DNT<IfStmt>(), &Distance));
/external/clang/lib/AST/
H A DStmtPrinter.cpp68 void PrintRawIfStmt(IfStmt *If);
178 void StmtPrinter::PrintRawIfStmt(IfStmt *If) {
203 } else if (IfStmt *ElseIf = dyn_cast<IfStmt>(Else)) {
213 void StmtPrinter::VisitIfStmt(IfStmt *If) {
H A DParentMap.cpp189 return DirectChild == cast<IfStmt>(P)->getCond();
H A DStmt.cpp822 IfStmt::IfStmt(const ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond, function in class:IfStmt
832 VarDecl *IfStmt::getConditionVariable() const {
840 void IfStmt::setConditionVariable(const ASTContext &C, VarDecl *V) {
H A DStmtProfile.cpp116 void StmtProfiler::VisitIfStmt(const IfStmt *S) {
/external/clang/lib/ARCMigrate/
H A DTransEmptyStatementsAndDealloc.cpp97 bool VisitIfStmt(IfStmt *S) {
H A DTransforms.cpp272 bool VisitIfStmt(IfStmt *S) {
/external/clang/include/clang/ASTMatchers/
H A DASTMatchers.h890 const internal::VariadicDynCastAllOfMatcher<Stmt, IfStmt> ifStmt;
2372 IfStmt, ForStmt, WhileStmt, DoStmt, ConditionalOperator),
2386 AST_MATCHER_P(IfStmt, hasThen, internal::Matcher<Stmt>, InnerMatcher) {
2398 AST_MATCHER_P(IfStmt, hasElse, internal::Matcher<Stmt>, InnerMatcher) {
2447 AST_MATCHER_P(IfStmt, hasConditionVariableStatement,
2370 AST_POLYMORPHIC_MATCHER_P( hasCondition, AST_POLYMORPHIC_SUPPORTED_TYPES_5( IfStmt, ForStmt, WhileStmt, DoStmt, ConditionalOperator), internal::Matcher<Expr>, InnerMatcher) argument
/external/clang/lib/CodeGen/
H A DCodeGenPGO.cpp243 IfStmt,
334 return PGOHash::IfStmt;
652 void VisitIfStmt(const IfStmt *S) {
H A DCGStmt.cpp130 case Stmt::IfStmtClass: EmitIfStmt(cast<IfStmt>(*S)); break;
474 void CodeGenFunction::EmitIfStmt(const IfStmt &S) {
/external/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp402 HandleBranch(cast<IfStmt>(Term)->getCond(), Term, B, Pred);
H A DBugReporter.cpp469 if (cast<IfStmt>(Parent)->getCond() != S)
1928 return cast<IfStmt>(S)->getCond() == Cond;
2110 isa<IfStmt>(s1Start) || isa<ObjCForCollectionStmt>(s1Start) ||
H A DBugReporterVisitors.cpp1229 Cond = cast<IfStmt>(Term)->getCond();
/external/chromium_org/v8/tools/gcmole/
H A Dgcmole.cc877 VISIT(IfStmt);
1032 DECL_VISIT_STMT(IfStmt) {
/external/clang/include/clang/AST/
H A DStmt.h865 /// IfStmt - This represents an if/then/else.
867 class IfStmt : public Stmt { class in namespace:clang
875 IfStmt(const ASTContext &C, SourceLocation IL, VarDecl *var, Expr *cond,
880 explicit IfStmt(EmptyShell Empty) : Stmt(IfStmtClass, Empty) { } function in class:clang::IfStmt
893 /// If this IfStmt has a condition variable, return the faux DeclStmt
H A DDataRecursiveASTVisitor.h1910 DEF_TRAVERSE_STMT(IfStmt, {})
H A DRecursiveASTVisitor.h1927 DEF_TRAVERSE_STMT(IfStmt, {})
/external/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp728 const IfStmt *IS = cast<IfStmt>(Term);
/external/clang/unittests/ASTMatchers/
H A DASTMatchersTest.cpp1994 TEST(IfStmt, ChildTraversalMatchers) {
3218 new VerifyIdIsBoundTo<IfStmt>("if", 6)));
4232 new VerifyAncestorHasChildIsEqual<IfStmt>()));
/external/clang/lib/Serialization/
H A DASTReaderStmt.cpp184 void ASTStmtReader::VisitIfStmt(IfStmt *S) {
2075 S = new (Context) IfStmt(Empty);

Completed in 1011 milliseconds

12