Home
last modified time | relevance | path

Searched refs:stringLiteral (Results 1 – 25 of 35) sorted by relevance

12

/external/javapoet/src/test/java/com/squareup/javapoet/
DUtilTest.java59 @Test public void stringLiteral() { in stringLiteral() method in UtilTest
60 stringLiteral("abc"); in stringLiteral()
61 stringLiteral("♦♥♠♣"); in stringLiteral()
62 stringLiteral("€\\t@\\t$", "€\t@\t$", " "); in stringLiteral()
63 stringLiteral("abc();\\n\"\n + \"def();", "abc();\ndef();", " "); in stringLiteral()
64 stringLiteral("This is \\\"quoted\\\"!", "This is \"quoted\"!", " "); in stringLiteral()
65 stringLiteral("e^{i\\\\pi}+1=0", "e^{i\\pi}+1=0", " "); in stringLiteral()
68 void stringLiteral(String string) { in stringLiteral() method in UtilTest
69 stringLiteral(string, string, " "); in stringLiteral()
72 void stringLiteral(String expected, String value, String indent) { in stringLiteral() method in UtilTest
/external/llvm-project/clang-tools-extra/clang-tidy/bugprone/
DStringLiteralWithEmbeddedNulCheck.cpp31 Finder->addMatcher(stringLiteral(containsNul()).bind("strlit"), this); in registerMatchers()
38 ignoringParenImpCasts(stringLiteral(containsNul()).bind("truncated")); in registerMatchers()
DSuspiciousMissingCommaCheck.cpp88 stringLiteral(isConcatenatedLiteral(MaxConcatenatedTokens)).bind("str"); in registerMatchers()
DStringConstructorCheck.cpp68 const auto BoundStringLiteral = stringLiteral().bind("str"); in registerMatchers()
DSizeofExpressionCheck.cpp130 hasInitializer(ignoringParenImpCasts(stringLiteral()))); in registerMatchers()
DNotNullTerminatedResultCheck.cpp669 ignoringImpCasts(anyOf(stringLiteral().bind(SrcExprName), in registerMatchers()
670 hasDescendant(stringLiteral().bind(SrcExprName)), in registerMatchers()
/external/libxkbcommon/src/
Ddarray.h125 #define darray_append_lit(arr, stringLiteral) do { \ argument
126 darray_append_items(arr, stringLiteral, sizeof(stringLiteral)); \
/external/clang/unittests/AST/
DASTImporterTest.cpp112 stringLiteral( in TEST()
121 stringLiteral( in TEST()
130 stringLiteral( in TEST()
418 stringLiteral( in TEST()
/external/llvm-project/clang/unittests/AST/
DDataCollectionTest.cpp151 ASSERT_TRUE(isStmtHashEqual(stringLiteral().bind("id"), R"(char x[] = "0";)", in TEST()
153 ASSERT_FALSE(isStmtHashEqual(stringLiteral().bind("id"), R"(char x[] = "0";)", in TEST()
DStructuralEquivalenceTest.cpp1651 auto t = makeWrappedStmts("\"a\"", "\"a\"", Lang_CXX03, stringLiteral()); in TEST_F()
1656 auto t = makeWrappedStmts("\"a\"", "\"b\"", Lang_CXX03, stringLiteral()); in TEST_F()
1661 auto t = makeWrappedStmts("\"a\"", "\"aa\"", Lang_CXX03, stringLiteral()); in TEST_F()
/external/llvm-project/clang-tools-extra/clang-tidy/misc/
DStaticAssertCheck.cpp31 hasOperatorName("!"), hasUnaryOperand(ignoringImpCasts(stringLiteral()))); in registerMatchers()
42 hasEitherOperand(ignoringImpCasts(stringLiteral().bind("assertMSG"))), in registerMatchers()
/external/boringssl/src/util/fipstools/acvp/acvptool/
Dinteractive.go336 type stringLiteral struct { struct
341 func (s stringLiteral) String() (string, error) { argument
345 func (stringLiteral) Index(_ string) (Object, error) { argument
349 func (stringLiteral) Search(_ acvp.Query) (Object, error) { argument
353 func (s stringLiteral) Action(action string, args []string) error { argument
430 return stringLiteral{e, e.parseStringLiteral(node)}, nil
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DAddAnnotation.java393 StringLiteral stringLiteral = rewrite.getAST().newStringLiteral(); in createAnnotationValue() local
394 stringLiteral.setLiteralValue((String) value); in createAnnotationValue()
395 return stringLiteral; in createAnnotationValue()
/external/llvm-project/clang-tools-extra/clang-tidy/cppcoreguidelines/
DProBoundsArrayToPointerDecayCheck.cpp62 unless(hasSourceExpression(ignoringParens(stringLiteral())))) in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/abseil/
DFasterStrsplitDelimiterCheck.cpp62 expr(ignoringParenCasts(stringLiteral(lengthIsOne()).bind("Literal"))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/performance/
DFasterStringFindCheck.cpp64 expr(ignoringParenCasts(stringLiteral(hasSize(1)).bind("literal"))); in registerMatchers()
/external/llvm-project/clang-tools-extra/clang-tidy/modernize/
DRawStringLiteralCheck.cpp121 stringLiteral(unless(hasParent(predefinedExpr()))).bind("lit"), this); in registerMatchers()
DUseDefaultMemberInitCheck.cpp200 anyOf(stringLiteral(), characterLiteral(), integerLiteral(), in registerMatchers()
/external/llvm-project/llvm/test/Transforms/ObjCARC/
Dinert-global.ll18 ; CHECK-LABEL: define %0* @stringLiteral()
22 define %0* @stringLiteral() {
/external/dagger2/java/dagger/internal/codegen/javapoet/
DCodeBlocks.java123 public static CodeBlock stringLiteral(String toWrap) { in stringLiteral() method in CodeBlocks
/external/llvm-project/clang-tools-extra/clang-tidy/readability/
DRedundantStringInitCheck.cpp92 hasArgument(0, ignoringParenImpCasts(stringLiteral(hasSize(0))))); in registerMatchers()
DContainerSizeEmptyCheck.cpp72 ignoringImpCasts(stringLiteral(hasSize(0))), in registerMatchers()
/external/llvm-project/clang/unittests/ASTMatchers/
DASTMatchersNodeTest.cpp898 StatementMatcher Literal = stringLiteral(); in TEST_P()
910 EXPECT_TRUE(matches("const wchar_t *s = L\"string\";", stringLiteral())); in TEST_P()
1051 has(stringLiteral())))); in TEST_P()
1509 implicitCastExpr(hasSourceExpression(stringLiteral()))))); in TEST_P()
1513 ignoringParens(stringLiteral())))))); in TEST_P()
DASTMatchersTraversalTest.cpp1979 matches(Code, traverse(TK_AsIs, stringLiteral(hasParent(implicitCastExpr( in TEST()
1983 stringLiteral(hasParent(initListExpr()))))); in TEST()
2007 0, ignoringImplicit(stringLiteral())))))))))))))); in TEST()
2018 0, ignoringImplicit(stringLiteral()))))) in TEST()
2026 hasInitializer(stringLiteral()))))))); in TEST()
2033 hasArgument(1, stringLiteral()))))))); in TEST()
/external/javapoet/
DCHANGELOG.md222 * New: `StringLiteral` type which encapsulates the behavior of `stringLiteral`.
281 * Fix: `stringLiteral` now correctly handles escapes and control characters.

12