/external/clang/lib/Frontend/ |
D | LayoutOverrideSource.cpp | 60 StringRef::size_type Pos; in LayoutOverrideSource() local 61 if ((Pos = LineStr.find("struct ")) != StringRef::npos) in LayoutOverrideSource() 62 LineStr = LineStr.substr(Pos + strlen("struct ")); in LayoutOverrideSource() 63 else if ((Pos = LineStr.find("class ")) != StringRef::npos) in LayoutOverrideSource() 64 LineStr = LineStr.substr(Pos + strlen("class ")); in LayoutOverrideSource() 65 else if ((Pos = LineStr.find("union ")) != StringRef::npos) in LayoutOverrideSource() 66 LineStr = LineStr.substr(Pos + strlen("union ")); in LayoutOverrideSource() 77 StringRef::size_type Pos = LineStr.find(" Size:"); in LayoutOverrideSource() local 78 if (Pos != StringRef::npos) { in LayoutOverrideSource() 80 LineStr = LineStr.substr(Pos + strlen(" Size:")); in LayoutOverrideSource() [all …]
|
D | VerifyDiagnosticConsumer.cpp | 269 SourceLocation Pos, DiagnosticsEngine &Diags) { in ParseDirective() argument 314 ExpectedLoc = Pos; in ParseDirective() 323 unsigned ExpectedLine = SM.getSpellingLineNumber(Pos, &Invalid); in ParseDirective() 327 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), ExpectedLine, 1); in ParseDirective() 332 ExpectedLoc = SM.translateLineCol(SM.getFileID(Pos), Line, 1); in ParseDirective() 336 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 359 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 378 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 387 Diags.Report(Pos.getLocWithOffset(PH.C-PH.Begin), in ParseDirective() 409 Directive *D = Directive::create(RegexKind, Pos, ExpectedLoc, Text, in ParseDirective() [all …]
|
/external/clang/lib/AST/ |
D | CommentParser.cpp | 41 Position Pos; member in clang::comments::TextTokenRetokenizer 44 return Pos.CurToken >= Toks.size(); in isEnd() 50 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer() 52 Pos.BufferStart = Tok.getText().begin(); in setupBuffer() 53 Pos.BufferEnd = Tok.getText().end(); in setupBuffer() 54 Pos.BufferPtr = Pos.BufferStart; in setupBuffer() 55 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer() 59 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation() 60 return Pos.BufferStartLoc.getLocWithOffset(CharNo); in getSourceLocation() 65 assert(Pos.BufferPtr != Pos.BufferEnd); in peek() [all …]
|
D | CXXInheritance.cpp | 645 Pos = Overriding.begin(), PosEnd = Overriding.end(); in getFinalOverriders() local 646 Pos != PosEnd; in getFinalOverriders() 648 if (!Pos->InVirtualSubobject) { in getFinalOverriders() 649 ++Pos; in getFinalOverriders() 663 if (Pos == OP) in getFinalOverriders() 667 const_cast<CXXRecordDecl *>(Pos->InVirtualSubobject))) in getFinalOverriders() 674 Pos = Overriding.erase(Pos); in getFinalOverriders() 677 ++Pos; in getFinalOverriders()
|
/external/llvm/lib/Support/ |
D | FileUtilities.cpp | 50 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument 52 if (!isNumberChar(*Pos)) return Pos; in BackupNumber() 56 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber() 58 if (Pos[-1] == '.') { in BackupNumber() 64 --Pos; in BackupNumber() 65 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber() 68 return Pos; in BackupNumber() 74 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument 75 while (isNumberChar(*Pos)) in EndOfNumber() 76 ++Pos; in EndOfNumber() [all …]
|
D | FoldingSet.cpp | 95 unsigned Pos = 0; in AddString() local 101 Pos = (Units + 1) * 4; in AddString() 107 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 108 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString() 109 ((unsigned char)String[Pos - 3] << 16) | in AddString() 110 ((unsigned char)String[Pos - 2] << 8) | in AddString() 111 (unsigned char)String[Pos - 1]; in AddString() 116 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 117 unsigned V = ((unsigned char)String[Pos - 1] << 24) | in AddString() 118 ((unsigned char)String[Pos - 2] << 16) | in AddString() [all …]
|
D | Triple.cpp | 389 for (unsigned Pos = 0; Pos != array_lengthof(Found); ++Pos) { in normalize() local 390 if (Found[Pos]) in normalize() 401 switch (Pos) { in normalize() 427 if (Pos < Idx) { in normalize() 435 for (unsigned i = Pos; !CurrentComponent.empty(); ++i) { in normalize() 443 } else if (Pos > Idx) { in normalize() 468 } while (Idx < Pos); // Add more until the final position is reached. in normalize() 470 assert(Pos < Components.size() && Components[Pos] == Comp && in normalize() 472 Found[Pos] = true; in normalize()
|
D | CommandLine.cpp | 243 StringRef::size_type Pos = Val.find(','); in CommaSeparateAndAddOccurence() local 245 while (Pos != StringRef::npos) { in CommaSeparateAndAddOccurence() 247 if (Handler->addOccurrence(pos, ArgName, Val.substr(0, Pos), MultiArg)) in CommaSeparateAndAddOccurence() 250 Val = Val.substr(Pos+1); in CommaSeparateAndAddOccurence() 251 Value.substr(Pos+1); // Increment the original value pointer as well. in CommaSeparateAndAddOccurence() 253 Pos = Val.find(','); in CommaSeparateAndAddOccurence() 441 size_t Pos = WorkStr.find_first_not_of(Delims); in ParseCStringVector() local 442 if (Pos == StringRef::npos) Pos = WorkStr.size(); in ParseCStringVector() 443 WorkStr = WorkStr.substr(Pos); in ParseCStringVector() 448 size_t Pos = WorkStr.find_first_of(Delims); in ParseCStringVector() local [all …]
|
D | StringRef.cpp | 147 unsigned Len = Length-From, Pos = From; in find() local 149 if (substr(Pos, N).equals(Str)) // See if this is the correct substring. in find() 150 return Pos; in find() 153 uint8_t Skip = BadCharSkip[(uint8_t)(*this)[Pos+N-1]]; in find() 155 Pos += Skip; in find()
|
/external/llvm/lib/Target/Mips/ |
D | MipsLongBranch.cpp | 243 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 280 Pos = LongBrMBB->begin(); in expandToLongBranch() 282 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch() 284 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) in expandToLongBranch() 286 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::BAL_BR)).addMBB(BalTgtMBB); in expandToLongBranch() 287 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LUi), Mips::AT).addImm(Hi) in expandToLongBranch() 290 Pos = BalTgtMBB->begin(); in expandToLongBranch() 292 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::AT) in expandToLongBranch() 294 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) in expandToLongBranch() 296 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) in expandToLongBranch() [all …]
|
/external/llvm/lib/CodeGen/ |
D | AllocationOrder.h | 28 const unsigned *Pos; variable 49 if (!Pos) { in next() 50 Pos = Begin; in next() 55 while (Pos != End) { in next() 56 unsigned Reg = *Pos++; in next() 64 void rewind() { Pos = 0; } in rewind()
|
/external/llvm/include/llvm/Support/ |
D | StreamableMemoryObject.h | 153 bool fetchToPos(size_t Pos) const { in fetchToPos() argument 154 if (EOFReached) return Pos < ObjectSize; in fetchToPos() 155 while (Pos >= BytesRead) { in fetchToPos() 161 if (ObjectSize && BytesRead < Pos) in fetchToPos() 163 if (BytesRead <= Pos) { // reached EOF/ran out of bytes in fetchToPos()
|
/external/llvm/bindings/ocaml/executionengine/ |
D | executionengine_ocaml.c | 275 char *CEnvBuf, *Pos; in llvm_ee_run_function_as_main() local 294 Pos = CEnvBuf; in llvm_ee_run_function_as_main() 301 CEnv[I] = Pos; in llvm_ee_run_function_as_main() 302 memcpy(Pos, Name, NameLen); in llvm_ee_run_function_as_main() 303 Pos += NameLen; in llvm_ee_run_function_as_main() 304 *Pos++ = '='; in llvm_ee_run_function_as_main() 305 memcpy(Pos, Value, ValueLen); in llvm_ee_run_function_as_main() 306 Pos += ValueLen; in llvm_ee_run_function_as_main() 307 *Pos++ = '\0'; in llvm_ee_run_function_as_main()
|
/external/icu4c/common/ |
D | ruleiter.h | 133 struct Pos : public UMemory { struct 158 void getPos(Pos& p) const; 165 void setPos(const Pos& p);
|
/external/clang/lib/Basic/ |
D | ConvertUTFWrapper.cpp | 21 const UTF8 *Pos = reinterpret_cast<const UTF8*>(Source.begin()); in ConvertUTF8toWide() local 22 if (!isLegalUTF8String(&Pos, reinterpret_cast<const UTF8*>(Source.end()))) { in ConvertUTF8toWide() 24 ErrorPtr = Pos; in ConvertUTF8toWide()
|
D | Diagnostic.cpp | 155 DiagStatePointsTy::iterator Pos = DiagStatePoints.end(); in GetDiagStatePointForLoc() local 159 Pos = std::upper_bound(DiagStatePoints.begin(), DiagStatePoints.end(), in GetDiagStatePointForLoc() 161 --Pos; in GetDiagStatePointForLoc() 162 return Pos; in GetDiagStatePointForLoc() 208 DiagStatePointsTy::iterator Pos = GetDiagStatePointForLoc(Loc); in setDiagnosticMapping() local 209 assert(Pos != DiagStatePoints.end()); in setDiagnosticMapping() 213 I = Pos+1, E = DiagStatePoints.end(); I != E; ++I) { in setDiagnosticMapping() 218 if (Pos->Loc == Loc) { in setDiagnosticMapping() 225 Pos->Loc.isBeforeInTranslationUnitThan(Loc); in setDiagnosticMapping() 226 DiagStates.push_back(*Pos->State); in setDiagnosticMapping() [all …]
|
/external/llvm/lib/MC/ |
D | SubtargetFeature.cpp | 73 size_t Pos = 0; in Split() local 76 size_t Comma = S.find(',', Pos); in Split() 80 V.push_back(S.substr(Pos)); in Split() 84 V.push_back(S.substr(Pos, Comma - Pos)); in Split() 86 Pos = Comma + 1; in Split()
|
/external/llvm/lib/Target/ARM/ |
D | Thumb2ITBlockPass.cpp | 194 unsigned Mask = 0, Pos = 3; in InsertITInstructions() local 197 for (; MBBI != E && Pos && in InsertITInstructions() 208 Mask |= (NCC & 1) << Pos; in InsertITInstructions() 225 --Pos; in InsertITInstructions() 229 Mask |= (1 << Pos); in InsertITInstructions()
|
/external/llvm/lib/TableGen/ |
D | TableGenBackend.cpp | 21 uint64_t Pos = OS.tell(); in printLine() local 23 for (unsigned i = OS.tell() - Pos, e = 80 - Suffix.size(); i != e; ++i) in printLine()
|
/external/clang/lib/Rewrite/Frontend/ |
D | InclusionRewriter.cpp | 182 const char *Pos = strchr(FromFile.getBufferStart(), '\n'); in DetectEOL() local 183 if (Pos == NULL) in DetectEOL() 185 if (Pos + 1 < FromFile.getBufferEnd() && Pos[1] == '\r') in DetectEOL() 187 if (Pos - 1 >= FromFile.getBufferStart() && Pos[-1] == '\r') in DetectEOL()
|
/external/clang/include/clang/Sema/ |
D | IdentifierResolver.h | 60 void InsertDecl(DeclsTy::iterator Pos, NamedDecl *D) { in InsertDecl() argument 61 Decls.insert(Pos, D); in InsertDecl() 179 void InsertDeclAfter(iterator Pos, NamedDecl *D);
|
/external/llvm/include/llvm/CodeGen/ |
D | LiveInterval.h | 184 iterator advanceTo(iterator I, SlotIndex Pos) { 186 if (Pos >= endIndex()) 188 while (I->end <= Pos) ++I; 199 iterator find(SlotIndex Pos); 201 const_iterator find(SlotIndex Pos) const { 202 return const_cast<LiveInterval*>(this)->find(Pos);
|
/external/llvm/test/CodeGen/PowerPC/ |
D | 2008-04-23-CoalescerCrash.ll | 26 …%Pos.0.reg2mem.0 = phi i64 [ %tmp93, %_Z24unlock_then_erase_sectory.exit ], [ %Offset, %bb ] ; <i… 31 %tmp34 = sub i64 %Pos.0.reg2mem.0, %Offset ; <i64> [#uses=2] 43 %tmp2021.i = trunc i64 %Pos.0.reg2mem.0 to i32 ; <i32> [#uses=1] 63 %tmp93 = add i64 0, %Pos.0.reg2mem.0 ; <i64> [#uses=2]
|
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/ |
D | PathDiagnostic.h | 387 PathDiagnosticLocation Pos; 393 : PathDiagnosticPiece(s, k), Pos(pos) { in PathDiagnosticPiece() 394 assert(Pos.isValid() && Pos.asLocation().isValid() && in PathDiagnosticPiece() 396 if (addPosRange && Pos.hasRange()) addRange(Pos.asRange()); in PathDiagnosticPiece() 399 PathDiagnosticLocation getLocation() const { return Pos; } in getLocation() 400 virtual void flattenLocations() { Pos.flatten(); } in flattenLocations()
|
/external/clang/lib/Sema/ |
D | IdentifierResolver.cpp | 176 void IdentifierResolver::InsertDeclAfter(iterator Pos, NamedDecl *D) { in InsertDeclAfter() argument 191 if (Pos == iterator()) { in InsertDeclAfter() 208 if (Pos.isIterator()) { in InsertDeclAfter() 209 IDI->InsertDecl(Pos.getIterator() + 1, D); in InsertDeclAfter()
|