/external/clang/unittests/AST/ |
D | ASTImporterTest.cpp | 197 has(integerLiteral( in TEST() 199 has(integerLiteral( in TEST() 201 has(integerLiteral( in TEST() 231 has(integerLiteral(equals(1), hasType(asString("int"))))))))))); in TEST() 312 integerLiteral(equals(4))))))), in TEST() 330 hasTrueExpression(integerLiteral(equals(1))), in TEST() 332 unaryOperator(hasUnaryOperand(integerLiteral(equals(5)))) in TEST() 351 hasSourceExpression(integerLiteral(equals(1))))), in TEST() 355 integerLiteral(equals(1))))), in TEST() 358 hasUnaryOperand(integerLiteral(equals(5))))) in TEST() [all …]
|
/external/llvm-project/clang/unittests/ASTMatchers/ |
D | GtestMatchersTest.cpp | 112 gtestAssert(GtestCmp::Eq, integerLiteral(equals(1010)), in TEST() 113 integerLiteral(equals(4321))))); in TEST() 138 gtestExpect(GtestCmp::Eq, integerLiteral(equals(1010)), in TEST() 139 integerLiteral(equals(4321))))); in TEST()
|
D | ASTMatchersTraversalTest.cpp | 1231 withInitializer(integerLiteral(equals(0))))))); in TEST() 1233 withInitializer(integerLiteral(equals(1))))))); in TEST() 1335 hasOperands(integerLiteral(equals(1)), integerLiteral(equals(2)))); in TEST() 1510 arraySubscriptExpr(hasIndex(integerLiteral(equals(1)))))); in TEST() 1513 arraySubscriptExpr(hasIndex(integerLiteral(equals(1)))))); in TEST() 1516 arraySubscriptExpr(hasIndex(integerLiteral(equals(0)))))); in TEST() 1577 switchStmt(hasCondition(integerLiteral(equals(42)))); in TEST() 1752 integerLiteral()))))), in TEST() 1795 expr(ignoringElidableConstructorCall(integerLiteral())), in TEST() 1969 varDecl(hasInitializer(integerLiteral(equals(3))))))); in TEST() [all …]
|
D | ASTMatchersNodeTest.cpp | 929 StatementMatcher HasIntLiteral = integerLiteral(); in TEST_P() 947 hasUnaryOperand(integerLiteral(equals(10)))))); in TEST_P() 1004 hasDescendant(integerLiteral(equals(2))))), in TEST_P() 1007 hasDescendant(integerLiteral(equals(2))))), in TEST_P() 1010 hasDescendant(integerLiteral(equals(0)))))))))); in TEST_P() 1111 hasSourceExpression((integerLiteral(equals(1)))))))), in TEST_P() 1112 hasFalseExpression(integerLiteral(equals(0))))); in TEST_P() 1118 opaqueValueExpr(hasSourceExpression((integerLiteral(equals(4)))))), in TEST_P() 1119 hasFalseExpression(integerLiteral(equals(5)))); in TEST_P() 1374 matches("int i[1] = {42, [0] = 43};", integerLiteral(equals(42)))); in TEST_P()
|
/external/clang/unittests/ASTMatchers/ |
D | ASTMatchersTraversalTest.cpp | 670 withInitializer(integerLiteral(equals(0))))))); in TEST() 672 withInitializer(integerLiteral(equals(1))))))); in TEST() 911 arraySubscriptExpr(hasIndex(integerLiteral(equals(1)))))); in TEST() 914 arraySubscriptExpr(hasIndex(integerLiteral(equals(1)))))); in TEST() 917 arraySubscriptExpr(hasIndex(integerLiteral(equals(0)))))); in TEST() 978 switchStmt(hasCondition(integerLiteral(equals(42)))); in TEST() 1111 integerLiteral(equals(0))))))); in TEST() 1129 integerLiteral()))))); in TEST() 1132 integerLiteral()))))); in TEST() 1135 integerLiteral()))))); in TEST() [all …]
|
D | ASTMatchersNodeTest.cpp | 651 StatementMatcher HasIntLiteral = integerLiteral(); in TEST() 730 has(integerLiteral( in TEST() 737 has(integerLiteral( in TEST() 744 has(integerLiteral( in TEST() 810 hasSourceExpression((integerLiteral(equals(1)))))))), in TEST() 811 hasFalseExpression(integerLiteral(equals(0)))); in TEST() 817 hasSourceExpression((integerLiteral(equals(4)))))), in TEST() 818 hasFalseExpression(integerLiteral(equals(5)))); in TEST() 1015 matches("int i[1] = {42, [0] = 43};", integerLiteral(equals(42)))); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/ |
D | UseBoolLiteralsCheck.cpp | 34 has(ignoringParenImpCasts(integerLiteral().bind("literal"))), in registerMatchers() 47 integerLiteral().bind("literal"))), in registerMatchers() 49 integerLiteral().bind("literal")))))), in registerMatchers()
|
D | UseDefaultMemberInitCheck.cpp | 200 anyOf(stringLiteral(), characterLiteral(), integerLiteral(), in registerMatchers() 202 hasUnaryOperand(integerLiteral())), in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/ |
D | PosixReturnCheck.cpp | 38 hasRHS(integerLiteral(equals(0)))) in registerMatchers() 47 hasRHS(integerLiteral(equals(0)))) in registerMatchers() 57 hasUnaryOperand(integerLiteral())))) in registerMatchers()
|
D | StringConstructorCheck.cpp | 58 const auto ZeroExpr = expr(ignoringParenImpCasts(integerLiteral(equals(0)))); in registerMatchers() 62 hasUnaryOperand(integerLiteral(unless(equals(0))))))); in registerMatchers() 64 integerLiteral(isBiggerThan(LargeLengthThreshold)))); in registerMatchers() 117 integerLiteral().bind("int")))))) in registerMatchers()
|
D | SizeofExpressionCheck.cpp | 84 const auto IntegerExpr = ignoringParenImpCasts(integerLiteral()); in registerMatchers() 86 anyOf(integerLiteral(), unaryOperator(hasUnaryOperand(IntegerExpr)), in registerMatchers() 97 sizeOfExpr(has(ignoringParenImpCasts(expr(integerLiteral(equals(0))))))); in registerMatchers() 166 expr(ignoringParenImpCasts(integerLiteral(equals(0)))); in registerMatchers() 191 integerLiteral(equals(0)), in registerMatchers() 192 integerLiteral(isBiggerThan(0x80000)))))) in registerMatchers()
|
D | SuspiciousMemsetUsageCheck.cpp | 48 hasArgument(1, integerLiteral().bind("num-fill")), in registerMatchers() 57 integerLiteral()))), in registerMatchers()
|
D | MisplacedOperatorInStrlenInAllocCheck.cpp | 32 hasRHS(ignoringParenImpCasts(integerLiteral(equals(1))))) in registerMatchers() 39 hasRHS(ignoringParenImpCasts(integerLiteral(equals(1)))))), in registerMatchers()
|
D | SuspiciousStringCompareCheck.cpp | 154 anyOf(integerLiteral(unless(equals(0))), in registerMatchers() 157 has(ignoringParenImpCasts(integerLiteral(unless(equals(0)))))), in registerMatchers()
|
D | TerminatingContinueCheck.cpp | 24 anyOf(cxxBoolLiteral(equals(false)), integerLiteral(equals(0)), in registerMatchers()
|
D | BadSignalToKillThreadCheck.cpp | 24 hasArgument(1, integerLiteral().bind("integer-literal"))) in registerMatchers()
|
/external/llvm-project/clang/unittests/AST/ |
D | DataCollectionTest.cpp | 132 isStmtHashEqual(integerLiteral().bind("id"), "int x = 0;", "int x = 0;")); in TEST() 134 isStmtHashEqual(integerLiteral().bind("id"), "int x = 0;", "int x =00;")); in TEST() 136 isStmtHashEqual(integerLiteral().bind("id"), "int x = 0;", "int x = 1;")); in TEST()
|
/external/llvm-project/clang-tools-extra/clang-tidy/performance/ |
D | NoIntToPtrCheck.cpp | 21 unless(hasSourceExpression(integerLiteral()))) in registerMatchers()
|
/external/llvm-project/clang/lib/StaticAnalyzer/Core/ |
D | LoopUnrolling.cpp | 89 integerLiteral().bind("boundNum")))) in simpleCondition() 146 integerLiteral().bind("initNum"))), in forLoopMatcher() 151 integerLiteral().bind("initNum")))))), in forLoopMatcher()
|
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/ |
D | DurationFactoryScaleCheck.cpp | 124 integerLiteral(equals(0)), floatLiteral(equals(0.0)), in registerMatchers() 127 anyOf(integerLiteral(), floatLiteral())))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/readability/ |
D | ContainerSizeEmptyCheck.cpp | 47 anyOf(integerLiteral(equals(1)), in registerMatchers() 48 integerLiteral(equals(0)))))) in registerMatchers()
|
D | StringCompareCheck.cpp | 45 integerLiteral(equals(0)).bind("zero"))) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/ |
D | SignedBitwiseCheck.cpp | 35 unless(integerLiteral())) in registerMatchers()
|
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/ |
D | TransformerClangTidyCheckTest.cpp | 75 makeRule(integerLiteral(), change(cat("LIT")), cat("no message")), in IntLitCheck() 226 RewriteRule Rule = transformer::makeRule(integerLiteral(), change(cat("5")), in rule()
|
/external/clang/unittests/Tooling/ |
D | RefactoringCallbacksTest.cpp | 64 expectRewritten(Code, Expected, id("id", expr(integerLiteral())), in TEST()
|