Searched defs:Loc (Results 101 - 125 of 312) sorted by relevance

1234567891011>>

/external/clang/lib/Lex/
H A DTokenLexer.cpp616 SourceLocation Loc = local
621 PP.Diag(Loc, PP.getLangOpts().MicrosoftExt ? diag::ext_pp_bad_paste_ms
/external/clang/lib/Rewrite/Core/
H A DRewriter.cpp216 unsigned Rewriter::getLocationOffsetAndFileID(SourceLocation Loc, argument
218 assert(Loc.isValid() && "Invalid location");
219 std::pair<FileID,unsigned> V = SourceMgr->getDecomposedLoc(Loc);
242 bool Rewriter::InsertText(SourceLocation Loc, StringRef Str, argument
244 if (!isRewritable(Loc)) return true;
246 unsigned StartOffs = getLocationOffsetAndFileID(Loc, FID);
283 bool Rewriter::InsertTextAfterToken(SourceLocation Loc, StringRef Str) { argument
284 if (!isRewritable(Loc)) return true;
286 unsigned StartOffs = getLocationOffsetAndFileID(Loc, FID);
289 StartOffs += getRangeSize(SourceRange(Loc, Lo
[all...]
/external/clang/lib/Rewrite/Frontend/
H A DInclusionRewriter.cpp58 void FileChanged(SourceLocation Loc, FileChangeReason Reason,
82 const FileChange *FindFileChangeLocation(SourceLocation Loc) const;
139 void InclusionRewriter::FileChanged(SourceLocation Loc, argument
148 LastInsertedFileChange->second.Id = FullSourceLoc(Loc, SM).getFileID();
190 InclusionRewriter::FindFileChangeLocation(SourceLocation Loc) const {
191 FileChangeMap::const_iterator I = FileChanges.find(Loc.getRawEncoding());
448 SourceLocation Loc = RawToken.getLocation(); local
470 OutputContentUpTo(FromFile, NextToWrite, SM.getFileOffset(Loc),
/external/clang/lib/StaticAnalyzer/Checkers/
H A DDeadStoresChecker.cpp379 PathDiagnosticLocation Loc = variable
381 Report(V, DeadInit, Loc, E->getSourceRange());
/external/clang/lib/StaticAnalyzer/Core/
H A DCoreEngine.cpp228 void CoreEngine::dispatchWorkItem(ExplodedNode* Pred, ProgramPoint Loc, argument
231 switch (Loc.getKind()) {
233 HandleBlockEdge(Loc.castAs<BlockEdge>(), Pred);
237 HandleBlockEntrance(Loc.castAs<BlockEntrance>(), Pred);
245 CallEnter CEnter = Loc.castAs<CallEnter>();
262 assert(Loc.getAs<PostStmt>() ||
263 Loc.getAs<PostInitializer>() ||
264 Loc.getAs<PostImplicitCall>() ||
265 Loc.getAs<CallExitEnd>());
492 void CoreEngine::generateNode(const ProgramPoint &Loc, argument
608 generateNodeImpl(const ProgramPoint &Loc, ProgramStateRef State, ExplodedNode *FromN, bool MarkAsSink) argument
[all...]
/external/clang/tools/libclang/
H A DCIndexDiagnostic.cpp47 CXSourceLocation Loc; member in class:__anon19518::CXDiagnosticCustomNoteImpl
51 Message(Msg), Loc(L) {}
60 return Loc;
116 void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc,
127 L = translateSourceLocation(*SM, LangOpts, Loc);
134 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
139 void emitCodeContext(SourceLocation Loc,
145 void emitNote(SourceLocation Loc, StringRef Message,
149 L = translateSourceLocation(*SM, LangOpts, Loc);
H A DCXLoadedDiagnostic.cpp95 CXSourceLocation Loc = { { (void*) V, nullptr }, 0 }; local
96 return Loc;
170 const Location &Loc = *((Location*)V);
173 *file = Loc.file;
175 *line = Loc.line;
177 *column = Loc.column;
179 *offset = Loc.offset;
242 CXLoadedDiagnostic::Location &Loc);
489 CXLoadedDiagnostic::Location &Loc) {
498 Loc
487 readLocation(CXLoadedDiagnosticSetImpl &TopDiags, RecordData &Record, unsigned &offset, CXLoadedDiagnostic::Location &Loc) argument
[all...]
/external/compiler-rt/lib/ubsan/
H A Dubsan_diag.h52 Location(SourceLocation Loc) : argument
53 Kind(LK_Source), SourceLoc(Loc) {}
54 Location(ModuleLocation Loc) : argument
55 Kind(LK_Module), ModuleLoc(Loc) {}
56 Location(MemoryLocation Loc) : argument
57 Kind(LK_Memory), MemoryLoc(Loc) {}
87 Location getFunctionLocation(uptr Loc, const char **FName);
124 Location Loc; member in class:__ubsan::Diag
193 Diag(Location Loc, DiagLevel Level, const char *Message) argument
194 : Loc(Lo
[all...]
/external/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h142 /// getLocation - Fill in Loc with information about the memory reference by
216 virtual bool pointsToConstantMemory(const Location &Loc,
362 const Location &Loc) {
364 case Instruction::VAArg: return getModRefInfo((const VAArgInst*)I, Loc);
365 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc);
366 case Instruction::Store: return getModRefInfo((const StoreInst*)I, Loc);
367 case Instruction::Fence: return getModRefInfo((const FenceInst*)I, Loc);
369 return getModRefInfo((const AtomicCmpXchgInst*)I, Loc);
371 return getModRefInfo((const AtomicRMWInst*)I, Loc);
372 case Instruction::Call: return getModRefInfo((const CallInst*)I, Loc);
361 getModRefInfo(const Instruction *I, const Location &Loc) argument
397 getModRefInfo(const CallInst *C, const Location &Loc) argument
408 getModRefInfo(const InvokeInst *I, const Location &Loc) argument
439 getModRefInfo(const FenceInst *S, const Location &Loc) argument
[all...]
/external/llvm/include/llvm/CodeGen/
H A DMachineModuleInfo.h174 DebugLoc Loc; member in struct:llvm::MachineModuleInfo::VariableDbgInfo
406 void setVariableDbgInfo(MDNode *N, unsigned Slot, DebugLoc Loc) { argument
407 VariableDbgInfo Info = { N, Slot, Loc };
/external/llvm/include/llvm/IR/
H A DInstruction.h193 void setDebugLoc(const DebugLoc &Loc) { DbgLoc = Loc; } argument
/external/llvm/include/llvm/MC/
H A DMCInst.h152 SMLoc Loc; member in class:llvm::MCInst
160 void setLoc(SMLoc loc) { Loc = loc; }
161 SMLoc getLoc() const { return Loc; }
/external/llvm/include/llvm/Support/
H A DSourceMgr.h138 unsigned FindBufferContainingLoc(SMLoc Loc) const;
142 unsigned FindLineNumber(SMLoc Loc, unsigned BufferID = 0) const { argument
143 return getLineAndColumn(Loc, BufferID).first;
148 std::pair<unsigned, unsigned> getLineAndColumn(SMLoc Loc,
155 void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind,
162 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
179 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
201 SMFixIt(SMLoc Loc, const Twine &Insertion) argument
202 : Range(Loc, Loc), Tex
229 SMLoc Loc; member in class:llvm::SMDiagnostic
[all...]
/external/llvm/lib/Analysis/
H A DAliasAnalysis.cpp57 bool AliasAnalysis::pointsToConstantMemory(const Location &Loc, argument
60 return AA->pointsToConstantMemory(Loc, OrLocal);
88 const Location &Loc) {
112 if (!isNoAlias(CSLoc, Loc)) {
123 // If Loc is a constant memory location, the call definitely could not
125 if ((Mask & Mod) && pointsToConstantMemory(Loc))
133 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask);
310 AliasAnalysis::getModRefInfo(const LoadInst *L, const Location &Loc) { argument
317 if (!alias(getLocation(L), Loc))
325 AliasAnalysis::getModRefInfo(const StoreInst *S, const Location &Loc) { argument
87 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
345 getModRefInfo(const VAArgInst *V, const Location &Loc) argument
361 getModRefInfo(const AtomicCmpXchgInst *CX, const Location &Loc) argument
374 getModRefInfo(const AtomicRMWInst *RMW, const Location &Loc) argument
519 canBasicBlockModify(const BasicBlock &BB, const Location &Loc) argument
529 canInstructionRangeModify(const Instruction &I1, const Instruction &I2, const Location &Loc) argument
[all...]
/external/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp187 MachineBasicBlock::iterator Loc = BB->empty() ? BB->end() : BB->begin();
189 Loc, VRC, MRI, TII);
299 MachineBasicBlock::iterator Loc = BB->empty() ? BB->end() : BB->begin(); local
300 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc,
/external/llvm/lib/DebugInfo/
H A DDWARFContext.h37 std::unique_ptr<DWARFDebugLoc> Loc; member in class:llvm::DWARFContext
/external/llvm/lib/MC/
H A DMCContext.cpp367 void MCContext::FatalError(SMLoc Loc, const Twine &Msg) const { argument
370 if (!SrcMgr || Loc == SMLoc())
374 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
H A DMCELFStreamer.cpp275 const SMLoc &Loc) {
279 MCObjectStreamer::EmitValueImpl(Value, Size, Loc);
274 EmitValueImpl(const MCExpr *Value, unsigned Size, const SMLoc &Loc) argument
/external/llvm/lib/MC/MCParser/
H A DCOFFAsmParser.cpp491 bool COFFAsmParser::ParseDirectiveLinkOnce(StringRef, SMLoc Loc) { argument
501 return Error(Loc, "cannot make section associative with .linkonce");
504 return Error(Loc, Twine("section '") + Current->getSectionName() +
/external/llvm/lib/Object/
H A DArchive.cpp321 const char *Loc = Data->getBufferStart() + strlen(Magic); local
322 Child c(this, Loc);
380 const char *Loc = Parent->getData().begin() + Offset; local
381 child_iterator Iter(Child(Parent, Loc));
/external/llvm/lib/Support/
H A DSourceMgr.cpp73 unsigned SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
75 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
78 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd())
84 SourceMgr::getLineAndColumn(SMLoc Loc, unsigned BufferID) const { argument
86 BufferID = FindBufferContainingLoc(Loc);
103 Cache->LastQuery <= Loc.getPointer()) {
110 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr)
142 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, argument
154 if (Loc.isValid()) {
155 unsigned CurBuf = FindBufferContainingLoc(Loc);
222 PrintMessage(raw_ostream &OS, SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, bool ShowColors) const argument
229 PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, bool ShowColors) const argument
232 PrintMessage(llvm::errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); local
[all...]
/external/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp203 AliasAnalysis::Location Loc = AA.getLocationForDest(MI); local
207 if (Loc.Size == AliasAnalysis::UnknownSize && DL == nullptr)
209 return Loc;
544 AliasAnalysis::Location Loc = getLocForWrite(Inst, *AA); local
547 if (!Loc.Ptr)
552 // skip any instructions that 'Loc' clearly doesn't interact with. If we
565 // completely obliterated by the store to 'Loc', and c) which we know that
568 !isPossibleSelfRead(Inst, Loc, DepWrite, *AA)) {
570 OverwriteResult OR = isOverwrite(Loc, DepLoc, *AA,
625 // Can't look past this instruction if it might read 'Loc'
662 AliasAnalysis::Location Loc = AliasAnalysis::Location(F->getOperand(0)); local
[all...]
/external/llvm/unittests/Transforms/Utils/
H A DCloning.cpp246 DebugLoc Loc = DebugLoc::get(3, 2, Subprogram); local
247 IBuilder.SetCurrentDebugLocation(Loc);
/external/llvm/utils/TableGen/
H A DCodeGenInstruction.cpp435 ArrayRef<SMLoc> Loc, CodeGenTarget &T,
445 PrintFatalError(Loc, "result argument #" + Twine(AliasOpNo) +
483 PrintFatalError(Loc, "fixed register " + ADI->getDef()->getName() +
488 PrintFatalError(Loc, "result fixed register argument must "
504 // throw TGError(Loc, "reg0 used for result that is not an "
517 PrintFatalError(Loc, "result argument #" + Twine(AliasOpNo) +
433 tryAliasOpMatch(DagInit *Result, unsigned AliasOpNo, Record *InstOpRec, bool hasSubOps, ArrayRef<SMLoc> Loc, CodeGenTarget &T, ResultOperand &ResOp) argument
/external/clang/include/clang/AST/
H A DDeclarationName.h433 /// Loc - The main source location for the declaration name.
508 void setCXXLiteralOperatorNameLoc(SourceLocation Loc) { argument
510 LocInfo.CXXLiteralOperatorName.OpNameLoc = Loc.getRawEncoding();

Completed in 6905 milliseconds

1234567891011>>