Home
last modified time | relevance | path

Searched refs:StringLiteral (Results 1 – 25 of 83) sorted by relevance

1234

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
DStringLiteral.java23 public final class StringLiteral { class
25 public static StringLiteral forValue(String value) { in forValue()
26 return new StringLiteral(value, stringLiteral(value)); in forValue()
72 private StringLiteral(String value, String literal) { in StringLiteral() method in StringLiteral
94 } else if (obj instanceof StringLiteral) { in equals()
95 return this.value.equals(((StringLiteral) obj).value); in equals()
DAnnotationWriter.java47 memberMap.put(name, toStringWritable(StringLiteral.forValue(value))); in setMember()
DSnippet.java157 StringLiteral.forValue(message));
/external/icu/tools/srcgen/currysrc/src/main/java/com/google/currysrc/processors/
DModifyStringLiterals.java23 import org.eclipse.jdt.core.dom.StringLiteral;
46 public boolean visit(StringLiteral node) { in process()
51 StringLiteral newLiteral = node.getAST().newStringLiteral(); in process()
/external/clang/lib/Sema/
DSemaStmtAsm.cpp148 StringLiteral **Constraints = in ActOnGCCAsmStmt()
149 reinterpret_cast<StringLiteral**>(constraints.data()); in ActOnGCCAsmStmt()
150 StringLiteral *AsmString = cast<StringLiteral>(asmString); in ActOnGCCAsmStmt()
151 StringLiteral **Clobbers = reinterpret_cast<StringLiteral**>(clobbers.data()); in ActOnGCCAsmStmt()
168 StringLiteral *Literal = Constraints[i]; in ActOnGCCAsmStmt()
247 StringLiteral *Literal = Constraints[i]; in ActOnGCCAsmStmt()
337 StringLiteral *Literal = Clobbers[i]; in ActOnGCCAsmStmt()
386 StringLiteral *Literal = Constraints[ConstraintIdx]; in ActOnGCCAsmStmt()
DSemaAttr.cpp414 StringLiteral *SegmentName, in ActOnPragmaMSSeg()
416 PragmaStack<StringLiteral *> *Stack = in ActOnPragmaMSSeg()
417 llvm::StringSwitch<PragmaStack<StringLiteral *> *>(PragmaName) in ActOnPragmaMSSeg()
433 int SectionFlags, StringLiteral *SegmentName) { in ActOnPragmaMSSection()
438 StringLiteral *SegmentName) { in ActOnPragmaMSInitSeg()
/external/clang/include/clang/AST/
DStmt.h48 class StringLiteral; variable
1545 StringLiteral *AsmStr;
1548 StringLiteral **Constraints;
1549 StringLiteral **Clobbers;
1557 IdentifierInfo **names, StringLiteral **constraints, Expr **exprs,
1558 StringLiteral *asmstr, unsigned numclobbers,
1559 StringLiteral **clobbers, SourceLocation rparenloc);
1570 const StringLiteral *getAsmString() const { return AsmStr; } in getAsmString()
1571 StringLiteral *getAsmString() { return AsmStr; } in getAsmString()
1572 void setAsmString(StringLiteral *E) { AsmStr = E; } in setAsmString()
[all …]
DMangle.h34 class StringLiteral; variable
94 virtual bool shouldMangleStringLiteral(const StringLiteral *SL) = 0;
114 virtual void mangleStringLiteral(const StringLiteral *SL, raw_ostream &) = 0;
DExprObjC.h33 ObjCStringLiteral(StringLiteral *SL, QualType T, SourceLocation L) in ObjCStringLiteral()
40 StringLiteral *getString() { return cast<StringLiteral>(String); } in getString()
41 const StringLiteral *getString() const { return cast<StringLiteral>(String); } in getString()
42 void setString(StringLiteral *S) { String = S; } in setString()
DDecl.h45 class StringLiteral; variable
3404 StringLiteral *AsmString;
3406 FileScopeAsmDecl(DeclContext *DC, StringLiteral *asmstring, in FileScopeAsmDecl()
3411 StringLiteral *Str, SourceLocation AsmLoc,
3423 const StringLiteral *getAsmString() const { return AsmString; } in getAsmString()
3424 StringLiteral *getAsmString() { return AsmString; } in getAsmString()
3425 void setAsmString(StringLiteral *Asm) { AsmString = Asm; } in setAsmString()
/external/clang/lib/AST/
DStmt.cpp423 StringLiteral **Constraints, in setOutputsAndInputsAndClobbers()
427 StringLiteral **Clobbers, in setOutputsAndInputsAndClobbers()
444 this->Constraints = new (C) StringLiteral*[NumExprs]; in setOutputsAndInputsAndClobbers()
448 this->Clobbers = new (C) StringLiteral*[NumClobbers]; in setOutputsAndInputsAndClobbers()
687 StringLiteral **constraints, Expr **exprs, in GCCAsmStmt()
688 StringLiteral *asmstr, unsigned numclobbers, in GCCAsmStmt()
689 StringLiteral **clobbers, SourceLocation rparenloc) in GCCAsmStmt()
701 Constraints = new (C) StringLiteral*[NumExprs]; in GCCAsmStmt()
704 Clobbers = new (C) StringLiteral*[NumClobbers]; in GCCAsmStmt()
DExpr.cpp450 StringLiteral *SL) in PredefinedExpr()
457 StringLiteral *PredefinedExpr::getFunctionName() { in getFunctionName()
458 return cast_or_null<StringLiteral>(FnName); in getFunctionName()
813 int StringLiteral::mapCharByteWidth(TargetInfo const &target,StringKind k) { in mapCharByteWidth()
837 StringLiteral *StringLiteral::Create(const ASTContext &C, StringRef Str, in Create()
846 void *Mem = C.Allocate(sizeof(StringLiteral)+ in Create()
848 llvm::alignOf<StringLiteral>()); in Create()
849 StringLiteral *SL = new (Mem) StringLiteral(Ty); in Create()
862 StringLiteral *StringLiteral::CreateEmpty(const ASTContext &C, in CreateEmpty()
864 void *Mem = C.Allocate(sizeof(StringLiteral)+ in CreateEmpty()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DIdenticalExprChecker.cpp480 const StringLiteral *StringLit1 = cast<StringLiteral>(Stmt1); in isIdenticalStmt()
481 const StringLiteral *StringLit2 = cast<StringLiteral>(Stmt2); in isIdenticalStmt()
DChrootChecker.cpp113 const StringLiteral* Str = StrRegion->getStringLiteral(); in Chdir()
DCStringChecker.cpp140 const StringLiteral *getCStringLiteral(CheckerContext &C,
755 const StringLiteral *strLit = cast<StringRegion>(MR)->getStringLiteral(); in getCStringLength()
806 const StringLiteral *CStringChecker::getCStringLiteral(CheckerContext &C, in getCStringLiteral()
1833 const StringLiteral *s1StrLiteral = getCStringLiteral(C, state, s1, s1Val); in evalStrcmpCommon()
1834 const StringLiteral *s2StrLiteral = getCStringLiteral(C, state, s2, s2Val); in evalStrcmpCommon()
2038 if (!isa<StringLiteral>(Init)) in checkPreStmt()
DCheckSecuritySyntaxOnly.cpp444 const StringLiteral *strArg = in checkCall_mkstemp()
445 dyn_cast<StringLiteral>(CE->getArg((unsigned)ArgSuffix.first) in checkCall_mkstemp()
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DFactoryGenerator.java36 import dagger.internal.codegen.writer.StringLiteral;
253 StringLiteral failMsg = in write()
254 StringLiteral.forValue(CANNOT_RETURN_NULL_FROM_NON_NULLABLE_PROVIDES_METHOD); in write()
DAbstractComponentWriter.java51 import dagger.internal.codegen.writer.StringLiteral;
395 StringLiteral.forValue( in addBuilderMethods()
916 StringLiteral failMsg = in initializeFactoryForContributionBinding()
917 StringLiteral.forValue(CANNOT_RETURN_NULL_FROM_NON_NULLABLE_COMPONENT_METHOD); in initializeFactoryForContributionBinding()
/external/clang/lib/Lex/
DModuleMap.cpp977 StringLiteral, enumerator
1179 StringLiteralParser StringLiteral(LToken, SourceMgr, LangOpts, *Target); in consumeToken() local
1180 if (StringLiteral.hadError) in consumeToken()
1184 unsigned Length = StringLiteral.GetStringLength(); in consumeToken()
1186 memcpy(Saved, StringLiteral.GetString().data(), Length); in consumeToken()
1190 Tok.Kind = MMToken::StringLiteral; in consumeToken()
1264 if (Tok.is(MMToken::Identifier) || Tok.is(MMToken::StringLiteral)) { in parseModuleId()
1585 if (!Tok.is(MMToken::StringLiteral)) { in parseExternModuleDecl()
1758 if (!Tok.is(MMToken::StringLiteral)) { in parseHeaderDecl()
1894 if (!Tok.is(MMToken::StringLiteral)) { in parseUmbrellaDirDecl()
[all …]
/external/dagger2/compiler/src/test/java/dagger/internal/codegen/
DModuleFactoryGeneratorTest.java20 import dagger.internal.codegen.writer.StringLiteral;
48 private static final StringLiteral NPE_LITERAL =
49 StringLiteral.forValue(ErrorMessages.CANNOT_RETURN_NULL_FROM_NON_NULLABLE_PROVIDES_METHOD);
DComponentProcessorTest.java22 import dagger.internal.codegen.writer.StringLiteral;
44 private static final StringLiteral NPE_LITERAL =
45 StringLiteral.forValue(ErrorMessages.CANNOT_RETURN_NULL_FROM_NON_NULLABLE_COMPONENT_METHOD);
/external/clang/lib/CodeGen/
DCodeGenModule.h66 class StringLiteral; variable
766 ConstantAddress GetAddrOfConstantCFString(const StringLiteral *Literal);
771 ConstantAddress GetAddrOfConstantString(const StringLiteral *Literal);
774 llvm::Constant *GetConstantArrayFromStringLiteral(const StringLiteral *E);
778 GetAddrOfConstantStringFromLiteral(const StringLiteral *S,
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
DMemRegion.h743 const StringLiteral* Str;
746 StringRegion(const StringLiteral* str, const MemRegion* sreg) in StringRegion()
750 const StringLiteral* Str,
755 const StringLiteral* getStringLiteral() const { return Str; } in getStringLiteral()
1201 const StringRegion *getStringRegion(const StringLiteral* Str);
/external/clang/lib/Parse/
DParsePragma.cpp545 StringLiteral *SegmentName = cast<StringLiteral>(StringResult.get()); in HandlePragmaMSSection()
654 StringLiteral *SegmentName = nullptr; in HandlePragmaMSSegment()
667 SegmentName = cast<StringLiteral>(StringResult.get()); in HandlePragmaMSSegment()
706 StringLiteral *SegmentName = nullptr; in HandlePragmaMSInitSeg()
724 cast<StringLiteral>(Actions.ActOnStringLiteral(Toks, nullptr).get()); in HandlePragmaMSInitSeg()
731 SegmentName = cast<StringLiteral>(StringResult.get()); in HandlePragmaMSInitSeg()
/external/clang/lib/StaticAnalyzer/Core/
DSValBuilder.cpp265 const StringLiteral *SL = cast<StringLiteral>(E); in getConstantVal()

1234