Home
last modified time | relevance | path

Searched refs:hasSize (Results 1 – 10 of 10) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/performance/
H A DFasterStringFindCheck.cpp64 expr(ignoringParenCasts(stringLiteral(hasSize(1)).bind("literal"))); in registerMatchers()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/readability/
H A DRedundantStringInitCheck.cpp84 hasArgument(0, ignoringParenImpCasts(stringLiteral(hasSize(0))))); in registerMatchers()
H A DContainerSizeEmptyCheck.cpp157 stringLiteral(hasSize(0)), cxxConstructExpr(isDefaultConstruction()), in registerMatchers()
/llvm-project-15.0.7/clang/lib/Analysis/FlowSensitive/Models/
H A DUncheckedOptionalAccessModel.cpp142 hasArgument(0, stringLiteral(hasSize(0)))) in isValueOrStringEmptyCall()
165 ComparesToSame(stringLiteral(hasSize(0))), in isValueOrNotEqX()
/llvm-project-15.0.7/clang/unittests/ASTMatchers/
H A DASTMatchersNodeTest.cpp1546 EXPECT_TRUE(matches("int a[42];", constantArrayType(hasSize(42)))); in TEST_P()
1547 EXPECT_TRUE(matches("int b[2*21];", constantArrayType(hasSize(42)))); in TEST_P()
1548 EXPECT_TRUE(notMatches("int c[41], d[43];", constantArrayType(hasSize(42)))); in TEST_P()
2575 Finder.addDynamicMatcher(constantArrayType(hasSize(42)), nullptr)); in TEST()
H A DASTMatchersNarrowingTest.cpp2401 StatementMatcher Literal = stringLiteral(hasSize(4)); in TEST_P()
2415 StatementMatcher Literal = stringLiteral(hasSize(4)); in TEST_P()
/llvm-project-15.0.7/clang/lib/ASTMatchers/Dynamic/
H A DRegistry.cpp353 REGISTER_MATCHER(hasSize); in RegistryMaps()
/llvm-project-15.0.7/clang/include/clang/ASTMatchers/
H A DASTMatchersInternal.h2150 static bool hasSize(const Ty &Node, unsigned int N) {
2156 inline bool HasSizeMatcher<StringLiteral>::hasSize(
H A DASTMatchers.h6836 AST_POLYMORPHIC_MATCHER_P(hasSize, in AST_POLYMORPHIC_MATCHER_P() argument
6840 return internal::HasSizeMatcher<NodeType>::hasSize(Node, N); in AST_POLYMORPHIC_MATCHER_P()
/llvm-project-15.0.7/clang/unittests/AST/
H A DASTImporterTest.cpp709 hasUnqualifiedDesugaredType(constantArrayType(hasSize(7)))))))))); in TEST_P()