/external/llvm/lib/Support/ |
D | LineIterator.cpp | 31 const char *Pos = CurrentLine.end(); in advance() local 32 assert(Pos == Buffer->getBufferStart() || *Pos == '\n' || *Pos == '\0'); in advance() 37 while (Pos[Blanks] == '\n') in advance() 39 Pos += Blanks; in advance() 44 if (*Pos == CommentMarker) in advance() 46 ++Pos; in advance() 47 } while (*Pos != '\0' && *Pos != '\n'); in advance() 48 if (*Pos != '\n') in advance() 50 ++Pos; in advance() 55 if (*Pos == '\0') { in advance() [all …]
|
D | FileUtilities.cpp | 49 static const char *BackupNumber(const char *Pos, const char *FirstChar) { in BackupNumber() argument 51 if (!isNumberChar(*Pos)) return Pos; in BackupNumber() 55 while (Pos > FirstChar && isNumberChar(Pos[-1])) { in BackupNumber() 57 if (Pos[-1] == '.') { in BackupNumber() 63 --Pos; in BackupNumber() 64 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[-1])) in BackupNumber() 67 return Pos; in BackupNumber() 73 static const char *EndOfNumber(const char *Pos) { in EndOfNumber() argument 74 while (isNumberChar(*Pos)) in EndOfNumber() 75 ++Pos; in EndOfNumber() [all …]
|
D | FoldingSet.cpp | 93 unsigned Pos = 0; in AddString() local 99 Pos = (Units + 1) * 4; in AddString() 105 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 106 unsigned V = ((unsigned char)String[Pos - 4] << 24) | in AddString() 107 ((unsigned char)String[Pos - 3] << 16) | in AddString() 108 ((unsigned char)String[Pos - 2] << 8) | in AddString() 109 (unsigned char)String[Pos - 1]; in AddString() 114 for (Pos += 4; Pos <= Size; Pos += 4) { in AddString() 115 unsigned V = ((unsigned char)String[Pos - 1] << 24) | in AddString() 116 ((unsigned char)String[Pos - 2] << 16) | in AddString() [all …]
|
/external/clang/lib/Frontend/ |
D | LayoutOverrideSource.cpp | 61 StringRef::size_type Pos; in LayoutOverrideSource() local 62 if ((Pos = LineStr.find("struct ")) != StringRef::npos) in LayoutOverrideSource() 63 LineStr = LineStr.substr(Pos + strlen("struct ")); in LayoutOverrideSource() 64 else if ((Pos = LineStr.find("class ")) != StringRef::npos) in LayoutOverrideSource() 65 LineStr = LineStr.substr(Pos + strlen("class ")); in LayoutOverrideSource() 66 else if ((Pos = LineStr.find("union ")) != StringRef::npos) in LayoutOverrideSource() 67 LineStr = LineStr.substr(Pos + strlen("union ")); in LayoutOverrideSource() 78 StringRef::size_type Pos = LineStr.find(" Size:"); in LayoutOverrideSource() local 79 if (Pos != StringRef::npos) { in LayoutOverrideSource() 81 LineStr = LineStr.substr(Pos + strlen(" Size:")); in LayoutOverrideSource() [all …]
|
/external/llvm/lib/CodeGen/ |
D | AllocationOrder.h | 31 int Pos; variable 49 if (Pos < 0) 50 return Hints.end()[Pos++]; 53 while (Pos < int(Limit)) { 54 unsigned Reg = Order[Pos++]; 66 if (Pos < 0) in nextWithDups() 67 return Hints.end()[Pos++]; in nextWithDups() 68 if (Pos < int(Limit)) in nextWithDups() 69 return Order[Pos++]; in nextWithDups() 74 void rewind() { Pos = -int(Hints.size()); } in rewind() [all …]
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/ |
D | comment.js | 13 var Pos = CodeMirror.Pos; 25 if (to.line >= minLine) to = Pos(minLine, 0); 62 self.replaceRange(baseString + commentString + pad, Pos(i, 0), Pos(i, cut)); 67 self.replaceRange(commentString + pad, Pos(i, 0)); 93 self.replaceRange(pad + endString, Pos(end)); 94 self.replaceRange(startString + pad, Pos(from.line, 0)); 98 self.replaceRange(lead + pad, Pos(i, 0)); 119 if (found > -1 && !/comment/.test(self.getTokenTypeAt(Pos(i, found + 1)))) found = -1; 131 self.replaceRange("", Pos(i, pos), Pos(i, endPos)); 149 !/comment/.test(self.getTokenTypeAt(Pos(start, open + 1))) || [all …]
|
D | closebrackets.js | 13 var Pos = CodeMirror.Pos; 31 var str = cm.getRange(Pos(pos.line, pos.ch - 1), 32 Pos(pos.line, pos.ch + 1)); 49 cm.replaceRange("", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1)); 63 var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1)); 67 if (cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == left + left + left) 72 cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left) 109 cm.getRange(range.head, Pos(range.head.line, range.head.ch + 1)) != right)
|
D | matchbrackets.js | 12 var Pos = CodeMirror.Pos; 22 var style = cm.getTokenTypeAt(Pos(where.line, pos + 1)); 24 …var found = scanForBracket(cm, Pos(where.line, pos + (dir > 0 ? 1 : 0)), dir, style || null, confi… 25 return {from: Pos(where.line, pos), to: found && found.pos, 49 … if (re.test(ch) && (style === undefined || cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)) { 52 else if (!stack.length) return {pos: Pos(lineNo, pos), ch: ch}; 68 … marks.push(cm.markText(match.from, Pos(match.from.line, match.from.ch + 1), {className: style})); 70 … marks.push(cm.markText(match.to, Pos(match.to.line, match.to.ch + 1), {className: style}));
|
/external/llvm/include/llvm/ADT/ |
D | MapVector.h | 87 typename MapType::const_iterator Pos = Map.find(Key); in lookup() local 88 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; in lookup() 104 typename MapType::const_iterator Pos = Map.find(Key); in count() local 105 return Pos == Map.end()? 0 : 1; in count() 109 typename MapType::const_iterator Pos = Map.find(Key); in find() local 110 return Pos == Map.end()? Vector.end() : in find() 111 (Vector.begin() + Pos->second); in find() 115 typename MapType::const_iterator Pos = Map.find(Key); in find() local 116 return Pos == Map.end()? Vector.end() : in find() 117 (Vector.begin() + Pos->second); in find() [all …]
|
/external/clang/lib/AST/ |
D | CommentParser.cpp | 51 Position Pos; member in clang::comments::TextTokenRetokenizer 54 return Pos.CurToken >= Toks.size(); in isEnd() 60 const Token &Tok = Toks[Pos.CurToken]; in setupBuffer() 62 Pos.BufferStart = Tok.getText().begin(); in setupBuffer() 63 Pos.BufferEnd = Tok.getText().end(); in setupBuffer() 64 Pos.BufferPtr = Pos.BufferStart; in setupBuffer() 65 Pos.BufferStartLoc = Tok.getLocation(); in setupBuffer() 69 const unsigned CharNo = Pos.BufferPtr - Pos.BufferStart; in getSourceLocation() 70 return Pos.BufferStartLoc.getLocWithOffset(CharNo); in getSourceLocation() 75 assert(Pos.BufferPtr != Pos.BufferEnd); in peek() [all …]
|
/external/llvm/lib/TableGen/ |
D | TableGenBackend.cpp | 25 size_t Pos = (size_t)OS.tell(); in printLine() local 30 for (size_t i = (size_t)OS.tell() - Pos; i < e; ++i) in printLine() 38 size_t Pos = 0U; in emitSourceFileHeader() local 44 PosE = Pos + ((MAX_LINE_LEN > (Desc.size() - PSLen)) ? in emitSourceFileHeader() 47 printLine(OS, Prefix + Desc.slice(Pos, PosE), ' ', Suffix); in emitSourceFileHeader() 48 Pos = PosE; in emitSourceFileHeader() 49 } while(Pos < Desc.size()); in emitSourceFileHeader()
|
/external/llvm/include/llvm/LineEditor/ |
D | LineEditor.h | 103 CompletionAction getCompletionAction(StringRef Buffer, size_t Pos) const; 118 virtual CompletionAction complete(StringRef Buffer, size_t Pos) const = 0; 123 CompletionAction complete(StringRef Buffer, size_t Pos) const override; 126 size_t Pos) const = 0; 132 CompletionAction complete(StringRef Buffer, size_t Pos) const override { in complete() 133 return Value(Buffer, Pos); in complete() 142 size_t Pos) const override { in getCompletions() 143 return Value(Buffer, Pos); in getCompletions()
|
/external/llvm/lib/Target/Mips/ |
D | MipsLongBranch.cpp | 249 MachineBasicBlock::iterator Pos; in expandToLongBranch() local 291 Pos = LongBrMBB->begin(); in expandToLongBranch() 293 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) in expandToLongBranch() 295 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) in expandToLongBranch() 314 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) in expandToLongBranch() 316 MIBundleBuilder(*LongBrMBB, Pos) in expandToLongBranch() 323 Pos = BalTgtMBB->begin(); in expandToLongBranch() 325 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) in expandToLongBranch() 327 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) in expandToLongBranch() 331 MIBundleBuilder(*BalTgtMBB, Pos) in expandToLongBranch() [all …]
|
/external/clang/tools/clang-check/ |
D | ClangCheck.cpp | 146 InsertAdjuster(const CommandLineArguments &Extra, Position Pos) in InsertAdjuster() argument 147 : Extra(Extra), Pos(Pos) { in InsertAdjuster() 150 InsertAdjuster(const char *Extra, Position Pos) in InsertAdjuster() argument 151 : Extra(1, std::string(Extra)), Pos(Pos) { in InsertAdjuster() 159 if (Pos == END) { in Adjust() 172 const Position Pos; member in __anonb88a459c0111::InsertAdjuster
|
/external/llvm/include/llvm/Support/ |
D | StreamableMemoryObject.h | 150 bool fetchToPos(size_t Pos) const { in fetchToPos() argument 151 if (EOFReached) return Pos < ObjectSize; in fetchToPos() 152 while (Pos >= BytesRead) { in fetchToPos() 158 assert((!ObjectSize || BytesRead >= Pos) && in fetchToPos() 160 if (BytesRead <= Pos) { // reached EOF/ran out of bytes in fetchToPos()
|
/external/lzma/Java/SevenZip/ |
D | LzmaBench.java | 59 int Pos; field in LzmaBench.CBenchRandomGenerator 69 Pos = 0; in Set() 90 while (Pos < BufferSize) in Generate() 92 if (GetRndBit() == 0 || Pos < 1) in Generate() 93 Buffer[Pos++] = (byte)(RG.GetRnd(8)); in Generate() 103 while (Rep0 >= Pos); in Generate() 107 for (int i = 0; i < len && Pos < BufferSize; i++, Pos++) in Generate() 108 Buffer[Pos] = Buffer[Pos - Rep0]; in Generate()
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
D | LzmaBench.cs | 64 UInt32 Pos; field in SevenZip.LzmaBench.CBenchRandomGenerator 75 Pos = 0; in Set() 96 while (Pos < BufferSize) in Generate() 98 if (GetRndBit() == 0 || Pos < 1) in Generate() 99 Buffer[Pos++] = (Byte)RG.GetRnd(8); in Generate() 109 while (Rep0 >= Pos); in Generate() 113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++) in Generate() 114 Buffer[Pos] = Buffer[Pos - Rep0]; in Generate()
|
/external/llvm/lib/Target/ARM/MCTargetDesc/ |
D | ARMUnwindOpAsm.cpp | 30 size_t Pos; member in __anonbe5c56150111::UnwindOpcodeStreamer 33 UnwindOpcodeStreamer(SmallVectorImpl<uint8_t> &V) : Vec(V), Pos(3) { in UnwindOpcodeStreamer() 38 Vec[Pos] = elem; in EmitByte() 39 Pos = (((Pos ^ 0x3u) + 1) ^ 0x3u); in EmitByte() 59 while (Pos < Vec.size()) in FillFinishOpcode()
|
/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/llvm/tools/llvm-ar/ |
D | llvm-ar.cpp | 472 int Pos = -1) { in addMember() argument 474 if (Pos == -1) in addMember() 477 Members[Pos] = NI; in addMember() 491 std::vector<std::string>::iterator &Pos) { in computeInsertAction() argument 502 Pos = MI; in computeInsertAction() 548 int Pos = Ret.size(); in computeNewArchiveMembers() local 555 InsertPos = Pos; in computeNewArchiveMembers() 557 InsertPos = Pos + 1; in computeNewArchiveMembers() 596 int Pos = InsertPos; in computeNewArchiveMembers() local 599 I != E; ++I, ++Pos) { in computeNewArchiveMembers() [all …]
|
/external/llvm/lib/DebugInfo/ |
D | DWARFDebugAbbrev.cpp | 108 const auto Pos = AbbrDeclSets.find(CUAbbrOffset); in getAbbreviationDeclarationSet() local 109 if (Pos != End) { in getAbbreviationDeclarationSet() 110 PrevAbbrOffsetPos = Pos; in getAbbreviationDeclarationSet() 111 return &(Pos->second); in getAbbreviationDeclarationSet()
|
/external/llvm/include/llvm/CodeGen/ |
D | StackMaps.h | 54 unsigned getMetaIdx(unsigned Pos = 0) const { 55 assert(Pos < MetaEnd && "Meta operand index out of range."); 56 return (HasDef ? 1 : 0) + Pos; 59 const MachineOperand &getMetaOper(unsigned Pos) { in getMetaOper() argument 60 return MI->getOperand(getMetaIdx(Pos)); in getMetaOper()
|
/external/llvm/lib/Transforms/Instrumentation/ |
D | DataFlowSanitizer.cpp | 242 Value *getShadowAddress(Value *Addr, Instruction *Pos); 243 Value *combineShadows(Value *V1, Value *V2, Instruction *Pos); 285 Value *getArgTLS(unsigned Index, Instruction *Pos); 291 Instruction *Pos); 293 Instruction *Pos); 476 size_t Pos = Asm.find(SearchStr); in addGlobalNamePrefix() local 477 if (Pos != std::string::npos) { in addGlobalNamePrefix() 478 Asm.replace(Pos, SearchStr.size(), in addGlobalNamePrefix() 777 Instruction *Pos; in runOnModule() local 779 Pos = I->getNextNode(); in runOnModule() [all …]
|
/external/icu/icu4c/source/common/ |
D | ruleiter.h | 133 struct Pos : public UMemory { struct 158 void getPos(Pos& p) const; 165 void setPos(const Pos& p);
|
/external/chromium_org/third_party/icu/source/common/ |
D | ruleiter.h | 134 struct Pos : public UMemory { struct 159 void getPos(Pos& p) const; 166 void setPos(const Pos& p);
|