/external/clang/include/clang/Edit/ |
H A D | FileOffset.h | 21 unsigned Offs; member in class:clang::edit::FileOffset 23 FileOffset() : Offs(0) { } 24 FileOffset(FileID fid, unsigned offs) : FID(fid), Offs(offs) { } 29 unsigned getOffset() const { return Offs; } 33 NewOffs.Offs += offset; 38 return LHS.FID == RHS.FID && LHS.Offs == RHS.Offs; 46 return LHS.Offs < RHS.Offs; 51 return LHS.Offs > RH [all...] |
/external/clang/include/clang/Basic/ |
H A D | SourceManagerInternals.h | 49 static LineEntry get(unsigned Offs, unsigned Line, int Filename, argument 53 E.FileOffset = Offs;
|
H A D | SourceManager.h | 1329 unsigned Offs = Loc.getOffset(); local 1330 if (isOffsetInFileID(FID, Offs)) { 1332 *RelativeOffset = Offs - getSLocEntry(FID).getOffset();
|
/external/clang/lib/Edit/ |
H A D | Commit.cpp | 48 FileOffset Offs; 49 if ((!afterToken && !canInsert(loc, Offs)) || 50 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { 55 addInsert(loc, Offs, text, beforePreviousInsertions); 69 FileOffset Offs; local 70 if ((!afterToken && !canInsert(loc, Offs)) || 71 ( afterToken && !canInsertAfterToken(loc, Offs, loc))) { 82 addInsertFromRange(loc, Offs, RangeOffs, RangeLen, beforePreviousInsertions); 87 FileOffset Offs; local 89 if (!canRemoveRange(range, Offs, Le 177 addInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, bool beforePreviousInsertions) argument 191 addInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, FileOffset RangeOffs, unsigned RangeLen, bool beforePreviousInsertions) argument 207 addRemove(SourceLocation OrigLoc, FileOffset Offs, unsigned Len) argument 280 canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) argument 295 canRemoveRange(CharSourceRange range, FileOffset &Offs, unsigned &Len) argument 322 canReplaceText(SourceLocation loc, StringRef text, FileOffset &Offs, unsigned &Len) argument [all...] |
H A D | EditedSource.cpp | 31 bool EditedSource::canInsertInOffset(SourceLocation OrigLoc, FileOffset Offs) { argument 32 FileEditsTy::iterator FA = getActionForOffset(Offs); 34 if (FA->first != Offs) 54 FileOffset Offs, StringRef text, 56 if (!canInsertInOffset(OrigLoc, Offs)) 69 FileEdit &FA = FileEdits[Offs]; 86 FileOffset Offs, 140 return commitInsert(OrigLoc, Offs, StrVec.str(), beforePreviousInsertions); 388 EditedSource::getActionForOffset(FileOffset Offs) { argument 389 FileEditsTy::iterator I = FileEdits.upper_bound(Offs); 53 commitInsert(SourceLocation OrigLoc, FileOffset Offs, StringRef text, bool beforePreviousInsertions) argument 85 commitInsertFromRange(SourceLocation OrigLoc, FileOffset Offs, FileOffset InsertFromRangeOffs, unsigned Len, bool beforePreviousInsertions) argument [all...] |
/external/clang/lib/Basic/ |
H A D | SourceManager.cpp | 1233 unsigned Offs = 0; local 1274 Offs += NextBuf-Buf; 1280 ++Offs, ++Buf; 1281 ++Offs, ++Buf; 1282 LineOffsets.push_back(Offs); 1287 ++Offs, ++Buf;
|
/external/clang/lib/CodeGen/ |
H A D | MicrosoftCXXABI.cpp | 396 uint64_t Offs = (I->VBPtrSubobject.getBaseOffset() + local 399 CGF.Builder.CreateConstInBoundsGEP1_64(ThisInt8Ptr, Offs);
|
/external/llvm/lib/CodeGen/SelectionDAG/ |
H A D | TargetLowering.cpp | 1969 int64_t Offs = GA->getOffset(); local 1970 if (C) Offs += C->getZExtValue(); 1973 Op.getValueType(), Offs));
|
H A D | SelectionDAGBuilder.cpp | 3179 uint64_t Offs = local 3187 DAG.getConstant(Offs, MVT::i64)); 3189 OffsVal = DAG.getIntPtrConstant(Offs);
|
/external/llvm/lib/Transforms/InstCombine/ |
H A D | InstCombineCompares.cpp | 447 Value *Offs = ConstantInt::get(Idx->getType(), -FirstTrueElement); local 448 Idx = Builder->CreateAdd(Idx, Offs); 461 Value *Offs = ConstantInt::get(Idx->getType(), -FirstFalseElement); local 462 Idx = Builder->CreateAdd(Idx, Offs);
|
/external/clang/lib/Frontend/ |
H A D | ASTUnit.cpp | 2761 unsigned Offs; local 2762 if (SourceMgr->isInFileID(Loc, PreambleID, &Offs) && Offs < Preamble.size()) { 2765 return FileLoc.getLocWithOffset(Offs); 2782 unsigned Offs; local 2783 if (SourceMgr->isInFileID(Loc, SourceMgr->getMainFileID(), &Offs) && 2784 Offs < Preamble.size()) { 2786 return FileLoc.getLocWithOffset(Offs);
|