Home
last modified time | relevance | path

Searched refs:StrVal (Results 1 – 13 of 13) sorted by relevance

/external/clang/lib/Lex/
DPragma.cpp218 std::string StrVal = getSpelling(StrTok); in Handle_Pragma() local
225 if (StrVal[0] == 'L') // Remove L prefix. in Handle_Pragma()
226 StrVal.erase(StrVal.begin()); in Handle_Pragma()
227 assert(StrVal[0] == '"' && StrVal[StrVal.size()-1] == '"' && in Handle_Pragma()
232 StrVal[0] = ' '; in Handle_Pragma()
235 StrVal[StrVal.size()-1] = '\n'; in Handle_Pragma()
238 for (unsigned i = 0, e = StrVal.size(); i != e-1; ++i) { in Handle_Pragma()
239 if (StrVal[i] == '\\' && in Handle_Pragma()
240 (StrVal[i+1] == '\\' || StrVal[i+1] == '"')) { in Handle_Pragma()
242 StrVal.erase(StrVal.begin()+i); in Handle_Pragma()
[all …]
/external/llvm/lib/AsmParser/
DLLLexer.cpp219 StrVal.assign(TokStart, CurPtr-1); in LexToken()
230 StrVal.assign(TokStart, CurPtr-1); in LexToken()
281 StrVal.assign(TokStart+2, CurPtr-1); in LexAt()
282 UnEscapeLexed(StrVal); in LexAt()
318 StrVal.assign(Start, CurPtr-1); in ReadString()
319 UnEscapeLexed(StrVal); in ReadString()
335 StrVal.assign(NameStart, CurPtr); in ReadVarName()
399 StrVal.assign(TokStart+1, CurPtr); // Skip ! in LexExclaim()
400 UnEscapeLexed(StrVal); in LexExclaim()
424 StrVal.assign(StartChar-1, CurPtr++); in LexIdentifier()
[all …]
DLLLexer.h39 std::string StrVal; variable
57 const std::string &getStrVal() const { return StrVal; } in getStrVal()
DLLParser.h61 std::string StrVal, StrVal2; member
81 return StrVal < RHS.StrVal;
DLLParser.cpp76 TheFn = M->getFunction(Fn.StrVal); in ValidateEndOfModule()
134 Res = PFS->GetBB(Refs[i].first.StrVal, Refs[i].first.Loc); in ResolveForwardRefBlockAddresses()
142 TheFn->getValueSymbolTable().lookup(Refs[i].first.StrVal)); in ResolveForwardRefBlockAddresses()
1662 FunctionID.StrVal = F.getName(); in FinishFunction()
1896 ID.StrVal = Lex.getStrVal(); in ParseValID()
1904 ID.StrVal = Lex.getStrVal(); in ParseValID()
2033 ParseStringConstant(ID.StrVal) || in ParseValID()
2447 V = PFS->GetVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue()
2455 V = InlineAsm::get(FTy, ID.StrVal, ID.StrVal2, ID.UIntVal&1, ID.UIntVal>>1); in ConvertValIDToValue()
2469 V = GetGlobalVal(ID.StrVal, Ty, ID.Loc); in ConvertValIDToValue()
/external/llvm/lib/TableGen/
DTGLexer.h56 Id, StrVal, VarName, CodeFragment enumerator
94 assert((CurCode == tgtok::Id || CurCode == tgtok::StrVal || in getCurStrVal()
DTGLexer.cpp233 return tgtok::StrVal; in LexString()
296 if (Tok != tgtok::StrVal) { in LexInclude()
DTGParser.cpp1205 case tgtok::StrVal: { in ParseSimpleValue()
1210 while (Lex.getCode() == tgtok::StrVal) { in ParseSimpleValue()
/external/llvm/lib/Target/CppBackend/
DCPPBackend.cpp235 std::string StrVal = ftostr(CFP->getValueAPF()); in printCFP() local
237 while (StrVal[0] == ' ') in printCFP()
238 StrVal.erase(StrVal.begin()); in printCFP()
242 if (((StrVal[0] >= '0' && StrVal[0] <= '9') || in printCFP()
243 ((StrVal[0] == '-' || StrVal[0] == '+') && in printCFP()
244 (StrVal[1] >= '0' && StrVal[1] <= '9'))) && in printCFP()
245 (CFP->isExactlyValue(atof(StrVal.c_str())))) { in printCFP()
247 Out << StrVal; in printCFP()
249 Out << StrVal << "f"; in printCFP()
253 << "ULL) /* " << StrVal << " */"; in printCFP()
[all …]
/external/llvm/lib/Analysis/
DConstantFolding.cpp484 APInt StrVal(NumBits, 0); in ConstantFoldLoadFromConstPtr() local
489 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
494 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
498 StrVal = (StrVal << 8) | SingleChar; in ConstantFoldLoadFromConstPtr()
501 Constant *Res = ConstantInt::get(CE->getContext(), StrVal); in ConstantFoldLoadFromConstPtr()
/external/llvm/lib/VMCore/
DAsmWriter.cpp727 SmallString<128> StrVal; in WriteConstantInternal() local
728 raw_svector_ostream(StrVal) << Val; in WriteConstantInternal()
734 if ((StrVal[0] >= '0' && StrVal[0] <= '9') || in WriteConstantInternal()
735 ((StrVal[0] == '-' || StrVal[0] == '+') && in WriteConstantInternal()
736 (StrVal[1] >= '0' && StrVal[1] <= '9'))) { in WriteConstantInternal()
738 if (APFloat(APFloat::IEEEdouble, StrVal).convertToDouble() == Val) { in WriteConstantInternal()
739 Out << StrVal.str(); in WriteConstantInternal()
/external/clang/lib/CodeGen/
DCGStmt.cpp1379 StringRef StrVal = Str->getString(); in getAsmSrcLocInfo() local
1380 if (!StrVal.empty()) { in getAsmSrcLocInfo()
1386 for (unsigned i = 0, e = StrVal.size()-1; i != e; ++i) { in getAsmSrcLocInfo()
1387 if (StrVal[i] != '\n') continue; in getAsmSrcLocInfo()
/external/clang/lib/StaticAnalyzer/Checkers/
DCStringChecker.cpp1858 SVal StrVal = state->getSVal(Init, C.getLocationContext()); in checkPreStmt() local
1859 assert(StrVal.isValid() && "Initializer string is unknown or undefined"); in checkPreStmt()
1861 = cast<DefinedOrUnknownSVal>(getCStringLength(C, state, Init, StrVal)); in checkPreStmt()