/external/clang/lib/Format/ |
D | ContinuationIndenter.cpp | 54 static bool startsNextParameter(const FormatToken &Current, in startsNextParameter() argument 56 const FormatToken &Previous = *Current.Previous; in startsNextParameter() 57 if (Current.is(TT_CtorInitializerComma) && in startsNextParameter() 60 return Previous.is(tok::comma) && !Current.isTrailingComment() && in startsNextParameter() 99 const FormatToken &Current = *State.NextToken; in canBreak() local 100 const FormatToken &Previous = *Current.Previous; in canBreak() 101 assert(&Previous == Current.Previous); in canBreak() 102 if (!Current.CanBreakBefore && in canBreak() 104 Current.closesBlockOrBlockTypeList(Style))) in canBreak() 108 if (!Current.MustBreakBefore && Previous.is(tok::l_brace) && in canBreak() [all …]
|
D | TokenAnnotator.cpp | 441 void updateParameterCount(FormatToken *Left, FormatToken *Current) { in updateParameterCount() argument 442 if (Current->is(tok::l_brace) && Current->BlockKind == BK_Block) in updateParameterCount() 444 if (Current->is(tok::comma)) { in updateParameterCount() 448 Left->Role->CommaFound(Current); in updateParameterCount() 449 } else if (Left->ParameterCount == 0 && Current->isNot(tok::comment)) { in updateParameterCount() 921 void modifyContext(const FormatToken &Current) { in modifyContext() argument 922 if (Current.getPrecedence() == prec::Assignment && in modifyContext() 927 (!Current.Previous || Current.Previous->isNot(tok::kw_operator))) { in modifyContext() 930 for (FormatToken *Previous = Current.Previous; in modifyContext() 947 } else if (Current.is(tok::lessless) && in modifyContext() [all …]
|
D | SortJavaScriptImports.cpp | 203 FormatToken *Current; member in clang::format::JavaScriptImportSorter 210 void skipComments() { Current = skipComments(Current); } in skipComments() 219 Current = Current->Next; in nextToken() 221 if (!Current || Current == LineEnd->Next) { in nextToken() 225 Current = &invalidToken; in nextToken() 289 Current = Line->First; in parseModuleReferences() 297 if (!Current) in parseModuleReferences() 330 if (!Current || !Current->isOneOf(Keywords.kw_import, tok::kw_export)) in parseModuleReference() 332 Reference.IsExport = Current->is(tok::kw_export); in parseModuleReference() 335 if (Current->isStringLiteral() && !Reference.IsExport) { in parseModuleReference() [all …]
|
D | TokenAnnotator.h | 53 FormatToken *Current = First; in AnnotatedLine() local 58 Current->Next = I->Tok; in AnnotatedLine() 59 I->Tok->Previous = Current; in AnnotatedLine() 60 Current = Current->Next; in AnnotatedLine() 61 Current->Children.clear(); in AnnotatedLine() 64 Current->Children.push_back(Children.back()); in AnnotatedLine() 67 Last = Current; in AnnotatedLine() 75 FormatToken *Current = First; in ~AnnotatedLine() local 76 while (Current) { in ~AnnotatedLine() 77 Current->Children.clear(); in ~AnnotatedLine() [all …]
|
/external/llvm/lib/Support/ |
D | YAMLParser.cpp | 283 if (Current >= End) in setError() 284 Current = End - 1; in setError() 289 printError(SMLoc::getFromPointer(Current), SourceMgr::DK_Error, Message); in setError() 294 setError(Message, Current); in setError() 306 return StringRef(Current, End - Current); in currentInput() 528 StringRef::iterator Current; member in llvm::yaml::Scanner 773 Current = InputBuffer.getBufferStart(); in init() 904 auto Final = skip_while(Func, Current); in advanceWhile() 905 Column += Final - Current; in advanceWhile() 906 Current = Final; in advanceWhile() [all …]
|
/external/clang/include/clang/AST/ |
D | AttrIterator.h | 58 mutable Iterator Current; variable 61 while (!isa<SpecificAttr>(*Current)) in AdvanceToNext() 62 ++Current; in AdvanceToNext() 66 while (Current != I && !isa<SpecificAttr>(*Current)) in AdvanceToNext() 67 ++Current; in AdvanceToNext() 77 specific_attr_iterator() : Current() { } in specific_attr_iterator() 78 explicit specific_attr_iterator(Iterator i) : Current(i) { } in specific_attr_iterator() 82 return cast<SpecificAttr>(*Current); 86 return cast<SpecificAttr>(*Current); 90 ++Current; [all …]
|
D | Redeclarable.h | 182 decl_type *Current; variable 193 redecl_iterator() : Current(nullptr) { } in redecl_iterator() 195 : Current(C), Starter(C), PassedFirst(false) { } in redecl_iterator() 197 reference operator*() const { return Current; } 198 pointer operator->() const { return Current; } 201 assert(Current && "Advancing while iterator has reached end"); 203 if (Current->isFirstDecl()) { 206 Current = nullptr; 213 decl_type *Next = Current->getNextRedeclaration(); 214 Current = (Next != Starter) ? Next : nullptr; [all …]
|
D | DeclBase.h | 789 Decl *Current; variable 799 redecl_iterator() : Current(nullptr) { } in redecl_iterator() 800 explicit redecl_iterator(Decl *C) : Current(C), Starter(C) { } in redecl_iterator() 802 reference operator*() const { return Current; } 803 value_type operator->() const { return Current; } 806 assert(Current && "Advancing while iterator has reached end"); 808 Decl *Next = Current->getNextRedeclarationImpl(); 810 Current = (Next != Starter) ? Next : nullptr; 821 return x.Current == y.Current; 824 return x.Current != y.Current; [all …]
|
/external/mesa3d/src/mesa/main/ |
D | rastpos.c | 383 GLfloat *objnorm = ctx->Current.Attrib[VERT_ATTRIB_NORMAL]; in _mesa_RasterPos() 394 ctx->Current.RasterPosValid = GL_FALSE; in _mesa_RasterPos() 400 ctx->Current.RasterPosValid = GL_FALSE; in _mesa_RasterPos() 407 ctx->Current.RasterPosValid = GL_FALSE; in _mesa_RasterPos() 418 ctx->Current.RasterPos[0] = ndc[0] * scale[0] + translate[0]; in _mesa_RasterPos() 419 ctx->Current.RasterPos[1] = ndc[1] * scale[1] + translate[1]; in _mesa_RasterPos() 420 ctx->Current.RasterPos[2] = ndc[2] * scale[2] + translate[2]; in _mesa_RasterPos() 421 ctx->Current.RasterPos[3] = clip[3]; in _mesa_RasterPos() 424 ctx->Current.RasterPos[3] = CLAMP(ctx->Current.RasterPos[3], in _mesa_RasterPos() 431 ctx->Current.RasterDistance = ctx->Current.Attrib[VERT_ATTRIB_FOG][0]; in _mesa_RasterPos() [all …]
|
D | drawpix.c | 61 IROUND(ctx->Current.RasterPos[0]), in _mesa_DrawPixels() 62 IROUND(ctx->Current.RasterPos[1])); in _mesa_DrawPixels() 137 if (!ctx->Current.RasterPosValid) { in _mesa_DrawPixels() 144 GLint x = IROUND(ctx->Current.RasterPos[0]); in _mesa_DrawPixels() 145 GLint y = IROUND(ctx->Current.RasterPos[1]); in _mesa_DrawPixels() 172 ctx->Current.RasterPos, in _mesa_DrawPixels() 173 ctx->Current.RasterColor, in _mesa_DrawPixels() 174 ctx->Current.RasterTexCoords[0] ); in _mesa_DrawPixels() 205 IROUND(ctx->Current.RasterPos[0]), in _mesa_CopyPixels() 206 IROUND(ctx->Current.RasterPos[1])); in _mesa_CopyPixels() [all …]
|
D | atifragshader.c | 220 struct ati_fragment_shader *curProg = ctx->ATIFragmentShader.Current; in _mesa_BindFragmentShaderATI() 262 ctx->ATIFragmentShader.Current = newProg; in _mesa_BindFragmentShaderATI() 264 assert(ctx->ATIFragmentShader.Current); in _mesa_BindFragmentShaderATI() 289 if (ctx->ATIFragmentShader.Current && in _mesa_DeleteFragmentShaderATI() 290 ctx->ATIFragmentShader.Current->Id == id) { in _mesa_DeleteFragmentShaderATI() 326 free(ctx->ATIFragmentShader.Current->Instructions[i]); in _mesa_BeginFragmentShaderATI() 327 free(ctx->ATIFragmentShader.Current->SetupInst[i]); in _mesa_BeginFragmentShaderATI() 330 _mesa_reference_program(ctx, &ctx->ATIFragmentShader.Current->Program, NULL); in _mesa_BeginFragmentShaderATI() 335 ctx->ATIFragmentShader.Current->Instructions[i] = in _mesa_BeginFragmentShaderATI() 338 ctx->ATIFragmentShader.Current->SetupInst[i] = in _mesa_BeginFragmentShaderATI() [all …]
|
/external/webrtc/webrtc/base/ |
D | signalthread_unittest.cc | 25 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in ~SlowSignalThread() 35 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in OnWorkStart() 41 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in OnWorkStop() 47 EXPECT_EQ(harness_->main_thread_, Thread::Current()); in OnWorkDone() 52 EXPECT_NE(harness_->main_thread_, Thread::Current()); in DoWork() 53 EXPECT_EQ(worker(), Thread::Current()); in DoWork() 54 Thread::Current()->socketserver()->Wait(250, false); in DoWork() 65 EXPECT_EQ(main_thread_, Thread::Current()); in OnWorkComplete() 74 main_thread_ = Thread::Current(); in SetUp() 115 Thread::Current()->socketserver()->Wait(100, false); in Run() [all …]
|
D | thread_unittest.cc | 184 Thread::Current()->ProcessMessages(50); in operator ()() 215 Thread* th_main = Thread::Current(); in TEST() 255 Thread* current_thread = Thread::Current(); in TEST() 290 Thread* current_thread = Thread::Current(); in TEST() 315 Thread* thread_a = Thread::Current(); in TEST() 383 EXPECT_EQ(expected_thread_, Thread::Current()); in IntCallback() 426 SetExpectedThreadForIntCallback(Thread::Current()); in TEST_F() 445 Thread::Current()->ProcessMessages(kWaitTimeout); in TEST_F() 457 &invoker, Thread::Current())); in TEST_F() 462 Thread::Current()->ProcessMessages(kWaitTimeout); in TEST_F() [all …]
|
D | autodetectproxy.cc | 64 Thread::Current()->ProcessMessages(Thread::kForever); in DoWork() 141 Thread::Current()->Post(this, MSG_TIMEOUT); in OnResolveResult() 148 Thread::Current()->Post(this, MSG_UNRESOLVABLE); in OnResolveResult() 162 Thread::Current()->Clear(this, MSG_TIMEOUT); in Next() 163 Thread::Current()->Clear(this, MSG_UNRESOLVABLE); in Next() 165 Thread::Current()->Dispose(socket_); in Next() 179 Thread::Current()->Post(this, MSG_TIMEOUT); in Next() 183 Thread::Current()->PostDelayed(timeout, this, MSG_TIMEOUT); in Next() 192 Thread::Current()->socketserver()->CreateAsyncSocket( in DoConnect() 206 Thread::Current()->Clear(this, MSG_TIMEOUT); in Complete() [all …]
|
/external/dtc/ |
D | srcpos.h | 81 #define YYLLOC_DEFAULT(Current, Rhs, N) \ argument 84 (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ 85 (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ 86 (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ 87 (Current).last_column = YYRHSLOC (Rhs, N).last_column; \ 88 (Current).file = YYRHSLOC(Rhs, N).file; \ 90 (Current).first_line = (Current).last_line = \ 92 (Current).first_column = (Current).last_column = \ 94 (Current).file = YYRHSLOC (Rhs, 0).file; \
|
/external/swiftshader/src/OpenGL/libGL/ |
D | main.cpp | 39 …gl::Current *current = (gl::Current*)sw::Thread::allocateLocalStorage(currentTLS, sizeof(gl::Curre… in glAttachThread() 162 static gl::Current *getCurrent(void) in getCurrent() 164 Current *current = (Current*)sw::Thread::getLocalStorage(currentTLS); in getCurrent() 171 return (Current*)sw::Thread::getLocalStorage(currentTLS); in getCurrent() 176 Current *current = getCurrent(); in makeCurrent() 189 Current *current = getCurrent(); in getContext() 196 Current *current = getCurrent(); in getDisplay() 210 Current *current = getCurrent(); in setCurrentDisplay() 217 Current *current = getCurrent(); in setCurrentContext() 224 Current *current = getCurrent(); in setCurrentDrawSurface() [all …]
|
/external/mesa3d/src/mesa/program/ |
D | program.c | 91 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, in _mesa_init_program() 93 assert(ctx->VertexProgram.Current); in _mesa_init_program() 97 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, in _mesa_init_program() 99 assert(ctx->FragmentProgram.Current); in _mesa_init_program() 104 ctx->ATIFragmentShader.Current = ctx->Shared->DefaultFragmentShader; in _mesa_init_program() 105 assert(ctx->ATIFragmentShader.Current); in _mesa_init_program() 106 ctx->ATIFragmentShader.Current->RefCount++; in _mesa_init_program() 116 _mesa_reference_program(ctx, &ctx->VertexProgram.Current, NULL); in _mesa_free_program_data() 118 _mesa_reference_program(ctx, &ctx->FragmentProgram.Current, NULL); in _mesa_free_program_data() 122 if (ctx->ATIFragmentShader.Current) { in _mesa_free_program_data() [all …]
|
/external/clang/unittests/Tooling/ |
D | CommentHandlerTest.cpp | 91 CommentList::const_iterator Current; member in clang::CommentVerifier 97 : Current(Comments.begin()), End(Comments.end()), PP(PP) in CommentVerifier() 100 CommentVerifier(CommentVerifier &&C) : Current(C.Current), End(C.End), PP(C.PP) { in CommentVerifier() 101 C.Current = C.End; in CommentVerifier() 105 if (Current != End) { in ~CommentVerifier() 106 EXPECT_TRUE(Current == End) << "Unexpected comment \"" in ~CommentVerifier() 107 << Current->Message << "\" at line " << Current->Line << ", column " in ~CommentVerifier() 108 << Current->Col; in ~CommentVerifier() 113 EXPECT_TRUE(Current != End) << "Comment " << Message << " not found"; in Match() 114 if (Current == End) return; in Match() [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp3/Sources/Antlr3.Runtime/Tree/ |
D | TreeIterator.cs | 78 public object Current property in Antlr.Runtime.Tree.TreeIterator 107 Current = tree; in MoveNext() 114 Current = nodes.Dequeue(); in MoveNext() 121 Current = eof; in MoveNext() 130 Current = down; in MoveNext() 150 Current = nodes.Dequeue(); in MoveNext() 159 Current = nodes.Dequeue(); in MoveNext() 166 bool result = Current != eof || !reachedEof; in MoveNext() 167 reachedEof = Current == eof; in MoveNext()
|
/external/mesa3d/src/mesa/state_tracker/ |
D | st_cb_rasterpos.c | 122 src = ctx->Current.Attrib[defaultAttrib]; in update_attrib() 142 ctx->Current.RasterPosValid = GL_TRUE; in rastpos_point() 146 ctx->Current.RasterPos[0] = pos[0]; in rastpos_point() 148 ctx->Current.RasterPos[1] = height - pos[1]; /* invert Y */ in rastpos_point() 150 ctx->Current.RasterPos[1] = pos[1]; in rastpos_point() 151 ctx->Current.RasterPos[2] = pos[2]; in rastpos_point() 152 ctx->Current.RasterPos[3] = pos[3]; in rastpos_point() 156 ctx->Current.RasterColor, in rastpos_point() 160 ctx->Current.RasterSecondaryColor, in rastpos_point() 165 ctx->Current.RasterTexCoords[i], in rastpos_point() [all …]
|
/external/antlr/antlr-3.4/runtime/CSharp2/Sources/Antlr3.Runtime/Antlr.Runtime.Tree/ |
D | TreeIterator.cs | 73 public object Current { property in Antlr.Runtime.Tree.TreeIterator 97 Current = tree; in MoveNext() 101 Current = nodes.Dequeue(); in MoveNext() 105 Current = eof; in MoveNext() 111 Current = down; in MoveNext() 127 Current = nodes.Dequeue(); in MoveNext() 134 Current = nodes.Dequeue(); in MoveNext() 141 return Current != eof; in MoveNext()
|
/external/llvm/lib/Analysis/ |
D | StratifiedSets.h | 431 auto *Current = Start; in linksAt() local 432 while (Current->isRemapped()) in linksAt() 433 Current = &Links[Current->getRemapIndex()]; in linksAt() 435 auto NewRemap = Current->Number; in linksAt() 439 Current = Start; in linksAt() 440 while (Current->isRemapped()) { in linksAt() 441 auto *Next = &Links[Current->getRemapIndex()]; in linksAt() 442 Current->updateRemap(NewRemap); in linksAt() 443 Current = Next; in linksAt() 446 return *Current; in linksAt() [all …]
|
/external/mesa3d/src/compiler/glsl/glcpp/ |
D | glcpp.h | 82 # define YYLLOC_DEFAULT(Current, Rhs, N) \ argument 86 (Current).first_line = YYRHSLOC(Rhs, 1).first_line; \ 87 (Current).first_column = YYRHSLOC(Rhs, 1).first_column; \ 88 (Current).last_line = YYRHSLOC(Rhs, N).last_line; \ 89 (Current).last_column = YYRHSLOC(Rhs, N).last_column; \ 93 (Current).first_line = (Current).last_line = \ 95 (Current).first_column = (Current).last_column = \ 98 (Current).source = 0; \
|
/external/swiftshader/third_party/LLVM/lib/CodeGen/ |
D | InterferenceCache.h | 140 BlockInterference *Current; variable 144 Current = 0; in setEntry() 156 Cursor() : CacheEntry(0), Current(0) {} in Cursor() 159 Cursor(const Cursor &O) : CacheEntry(0), Current(0) { in Cursor() 179 Current = CacheEntry ? CacheEntry->get(MBBNum) : &NoInterference; in moveToBlock() 184 return Current->First.isValid(); in hasInterference() 190 return Current->First; in first() 196 return Current->Last; in last()
|
/external/llvm/lib/IR/ |
D | Use.cpp | 95 const Use *Current = this; in getImpliedUser() local 98 unsigned Tag = (Current++)->Prev.getInt(); in getImpliedUser() 105 ++Current; in getImpliedUser() 108 unsigned Tag = Current->Prev.getInt(); in getImpliedUser() 112 ++Current; in getImpliedUser() 116 return Current + Offset; in getImpliedUser() 122 return Current; in getImpliedUser()
|