Home
last modified time | relevance | path

Searched refs:integerLiteral (Results 1 – 25 of 53) sorted by relevance

123

/external/clang/unittests/AST/
DASTImporterTest.cpp197 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/
DGtestMatchersTest.cpp112 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()
DASTMatchersTraversalTest.cpp1231 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 …]
DASTMatchersNodeTest.cpp929 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/
DASTMatchersTraversalTest.cpp670 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 …]
DASTMatchersNodeTest.cpp651 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/
DUseBoolLiteralsCheck.cpp34 has(ignoringParenImpCasts(integerLiteral().bind("literal"))), in registerMatchers()
47 integerLiteral().bind("literal"))), in registerMatchers()
49 integerLiteral().bind("literal")))))), in registerMatchers()
DUseDefaultMemberInitCheck.cpp200 anyOf(stringLiteral(), characterLiteral(), integerLiteral(), in registerMatchers()
202 hasUnaryOperand(integerLiteral())), in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DPosixReturnCheck.cpp38 hasRHS(integerLiteral(equals(0)))) in registerMatchers()
47 hasRHS(integerLiteral(equals(0)))) in registerMatchers()
57 hasUnaryOperand(integerLiteral())))) in registerMatchers()
DStringConstructorCheck.cpp58 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()
DSizeofExpressionCheck.cpp84 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()
DSuspiciousMemsetUsageCheck.cpp48 hasArgument(1, integerLiteral().bind("num-fill")), in registerMatchers()
57 integerLiteral()))), in registerMatchers()
DMisplacedOperatorInStrlenInAllocCheck.cpp32 hasRHS(ignoringParenImpCasts(integerLiteral(equals(1))))) in registerMatchers()
39 hasRHS(ignoringParenImpCasts(integerLiteral(equals(1)))))), in registerMatchers()
DSuspiciousStringCompareCheck.cpp154 anyOf(integerLiteral(unless(equals(0))), in registerMatchers()
157 has(ignoringParenImpCasts(integerLiteral(unless(equals(0)))))), in registerMatchers()
DTerminatingContinueCheck.cpp24 anyOf(cxxBoolLiteral(equals(false)), integerLiteral(equals(0)), in registerMatchers()
DBadSignalToKillThreadCheck.cpp24 hasArgument(1, integerLiteral().bind("integer-literal"))) in registerMatchers()
/external/llvm-project/clang/unittests/AST/
DDataCollectionTest.cpp132 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/
DNoIntToPtrCheck.cpp21 unless(hasSourceExpression(integerLiteral()))) in registerMatchers()
/external/llvm-project/clang/lib/StaticAnalyzer/Core/
DLoopUnrolling.cpp89 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/
DDurationFactoryScaleCheck.cpp124 integerLiteral(equals(0)), floatLiteral(equals(0.0)), in registerMatchers()
127 anyOf(integerLiteral(), floatLiteral())))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DContainerSizeEmptyCheck.cpp47 anyOf(integerLiteral(equals(1)), in registerMatchers()
48 integerLiteral(equals(0)))))) in registerMatchers()
DStringCompareCheck.cpp45 integerLiteral(equals(0)).bind("zero"))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/hicpp/
DSignedBitwiseCheck.cpp35 unless(integerLiteral())) in registerMatchers()
/external/llvm-project/clang-tools-extra/unittests/clang-tidy/
DTransformerClangTidyCheckTest.cpp75 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/
DRefactoringCallbacksTest.cpp64 expectRewritten(Code, Expected, id("id", expr(integerLiteral())), in TEST()

123