Searched refs:Loc (Results 1 - 25 of 273) sorted by relevance

1234567891011

/external/clang/include/clang/Sema/
H A DPrettyDeclStackTrace.h34 SourceLocation Loc; member in class:clang::PrettyDeclStackTraceEntry
38 PrettyDeclStackTraceEntry(Sema &S, Decl *D, SourceLocation Loc, const char *Msg) argument
39 : S(S), TheDecl(D), Loc(Loc), Message(Msg) {}
H A DTemplateDeduction.h40 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo
51 TemplateDeductionInfo(ASTContext &Context, SourceLocation Loc) argument
52 : Context(Context), Deduced(0), Loc(Loc) { }
61 return Loc;
79 void addSuppressedDiagnostic(SourceLocation Loc, const PartialDiagnostic &PD) { argument
80 SuppressedDiagnostics.push_back(std::make_pair(Loc, PD));
H A DWeak.h32 WeakInfo(IdentifierInfo *Alias, SourceLocation Loc) argument
33 : alias(Alias), loc(Loc), used(false) {}
H A DParsedTemplate.h43 /// \param Loc the location of the type.
44 ParsedTemplateArgument(KindType Kind, void *Arg, SourceLocation Loc) argument
45 : Kind(Kind), Arg(Arg), Loc(Loc) { }
61 Loc(TemplateLoc), SS(SS), EllipsisLoc() { }
88 SourceLocation getLocation() const { return Loc; }
122 SourceLocation Loc; member in class:clang::ParsedTemplateArgument
/external/llvm/include/llvm/TableGen/
H A DError.h23 SMLoc Loc; member in class:llvm::TGError
26 TGError(SMLoc loc, const std::string &message) : Loc(loc), Message(message) {}
28 SMLoc getLoc() const { return Loc; }
33 void PrintError(const char *Loc, const Twine &Msg);
/external/clang/include/clang/Basic/
H A DPrettyStackTrace.h28 SourceLocation Loc; member in class:clang::PrettyStackTraceLoc
32 : SM(sm), Loc(L), Message(Msg) {}
H A DSourceManager.h112 /// \param Loc If specified, is the location that invalid file diagnostics
118 SourceLocation Loc = SourceLocation(),
653 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
660 SourceLocation createExpansionLoc(SourceLocation Loc,
704 const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument
715 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc,
824 SourceLocation getExpansionLoc(SourceLocation Loc) const {
827 if (Loc.isFileID()) return Loc;
828 return getExpansionLocSlowCase(Loc);
921 isInSLocAddrSpace(SourceLocation Loc, SourceLocation Start, unsigned Length, unsigned *RelativeOffset = 0) const argument
1050 isInFileID(SourceLocation Loc, FileID FID, unsigned *RelativeOffset = 0) const argument
[all...]
/external/clang/tools/libclang/
H A DCXSourceLocation.h31 SourceLocation Loc) {
32 if (Loc.isInvalid())
36 Loc.getRawEncoding() };
42 SourceLocation Loc) {
45 Loc);
30 translateSourceLocation(const SourceManager &SM, const LangOptions &LangOpts, SourceLocation Loc) argument
41 translateSourceLocation(ASTContext &Context, SourceLocation Loc) argument
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h73 /// \param Loc -- the SourceLocation of the unresolved expression.
74 virtual void handleInvalidLockExp(SourceLocation Loc) {} argument
80 /// \param Loc -- The SourceLocation of the Unlock
81 virtual void handleUnmatchedUnlock(Name LockName, SourceLocation Loc) {} argument
86 /// \param Loc -- The location of the second lock expression.
87 virtual void handleDoubleLock(Name LockName, SourceLocation Loc) {} argument
96 /// \param Loc -- The location of the lock expression where the mutex is locked
98 virtual void handleMutexHeldEndOfScope(Name LockName, SourceLocation Loc, argument
115 /// \param Loc -- The location of the protected operation.
117 AccessKind AK, SourceLocation Loc) {}
116 handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument
127 handleMutexNotHeld(const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc) argument
137 handleFunExcludesLock(Name FunName, Name LockName, SourceLocation Loc) argument
[all...]
/external/clang/include/clang/Lex/
H A DPPCallbacks.h47 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument
110 /// \param Loc The location of the directive.
113 virtual void Ident(SourceLocation Loc, const std::string &str) { argument
119 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument
125 /// \param Loc The location of the message directive.
128 virtual void PragmaMessage(SourceLocation Loc, StringRef Str) { argument
133 virtual void PragmaDiagnosticPush(SourceLocation Loc, argument
139 virtual void PragmaDiagnosticPop(SourceLocation Loc, argument
145 virtual void PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, argument
188 /// \param Loc Th
220 FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) argument
253 Ident(SourceLocation Loc, const std::string &str) argument
258 PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, const std::string &Str) argument
264 PragmaMessage(SourceLocation Loc, StringRef Str) argument
269 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument
275 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument
281 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument
[all...]
/external/clang/include/clang/AST/
H A DTypeLoc.h130 void initialize(ASTContext &Context, SourceLocation Loc) const {
131 initializeImpl(Context, *this, Loc);
162 static void initializeImpl(ASTContext &Context, TypeLoc TL, SourceLocation Loc);
211 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument
405 void setNameLoc(SourceLocation Loc) { argument
406 this->getLocalData()->NameLoc = Loc;
411 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument
412 setNameLoc(Loc);
435 void setBuiltinLoc(SourceLocation Loc) { argument
436 getLocalData()->BuiltinLoc = Loc;
512 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
764 setLAngleLoc(SourceLocation Loc) argument
771 setRAngleLoc(SourceLocation Loc) argument
[all...]
/external/llvm/lib/TableGen/
H A DError.cpp27 void PrintError(const char *Loc, const Twine &Msg) { argument
28 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Error, Msg);
/external/clang/lib/AST/
H A DTypeLoc.cpp81 SourceLocation Loc) {
88 TLCasted.initializeLocal(Context, Loc); \
258 SourceLocation Loc) {
259 setKeywordLoc(Loc);
261 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc);
266 SourceLocation Loc) {
267 setKeywordLoc(Loc);
269 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc);
271 setNameLoc(Loc);
276 SourceLocation Loc) {
80 initializeImpl(ASTContext &Context, TypeLoc TL, SourceLocation Loc) argument
257 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
265 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
275 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
294 initializeArgLocs(ASTContext &Context, unsigned NumArgs, const TemplateArgument *Args, TemplateArgumentLocInfo *ArgInfos, SourceLocation Loc) argument
[all...]
/external/clang/lib/StaticAnalyzer/Core/
H A DSValBuilder.cpp29 if (Loc::isLocType(type))
46 assert(!Loc::isLocType(type));
53 assert(!Loc::isLocType(type));
81 if (Loc::isLocType(T))
97 if (Loc::isLocType(T))
113 if (Loc::isLocType(type))
128 if (Loc::isLocType(type))
144 if (Loc::isLocType(T))
174 if (isa<Loc>(lhs)) {
175 if (isa<Loc>(rh
[all...]
/external/clang/lib/Sema/
H A DDelayedDiagnostic.cpp22 DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc, argument
28 DD.Loc = Loc;
H A DDeclSpec.cpp32 static DiagnosticBuilder Diag(DiagnosticsEngine &D, SourceLocation Loc, argument
34 return D.Report(Loc, DiagID);
171 I.Loc = LocalRangeBegin;
417 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, argument
446 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID);
464 StorageClassSpecLoc = Loc;
469 bool DeclSpec::SetStorageClassSpecThread(SourceLocation Loc, argument
478 SCS_threadLoc = Loc;
485 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, argument
491 TSWLoc = Loc;
505 SetTypeSpecComplex(TSC C, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
515 SetTypeSpecSign(TSS S, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
525 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, ParsedType Rep) argument
552 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Expr *Rep) argument
571 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Decl *Rep, bool Owned) argument
599 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
625 SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
637 SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
659 SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const LangOptions &Lang) argument
675 SetFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
683 SetFunctionSpecVirtual(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
691 SetFunctionSpecExplicit(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
699 SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
712 setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
724 SetConstexprSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
960 SetSpecifier(Specifier VS, SourceLocation Loc, const char *&PrevSpec) argument
[all...]
/external/clang/include/clang/Frontend/
H A DTextDiagnostic.h82 /// \param Loc The location for this caret.
87 void emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level,
125 void emitIncludeStack(SourceLocation Loc, DiagnosticsEngine::Level Level);
126 void emitIncludeStackRecursively(SourceLocation Loc);
127 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
130 void emitMacroExpansionsAndCarets(SourceLocation Loc,
136 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
/external/llvm/lib/Analysis/
H A DLibCallAliasAnalysis.cpp47 const Location &Loc) {
69 LibCallLocationInfo::LocResult Res = LocInfo.isLocation(CS, Loc);
90 LibCallLocationInfo::LocResult Res = LocInfo.isLocation(CS, Loc);
121 const Location &Loc) {
129 MRInfo = ModRefResult(MRInfo & AnalyzeLibCallDetails(FI, CS, Loc));
136 return (ModRefResult)(MRInfo | AliasAnalysis::getModRefInfo(CS, Loc));
45 AnalyzeLibCallDetails(const LibCallFunctionInfo *FI, ImmutableCallSite CS, const Location &Loc) argument
120 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
H A DAliasAnalysis.cpp52 bool AliasAnalysis::pointsToConstantMemory(const Location &Loc, argument
55 return AA->pointsToConstantMemory(Loc, OrLocal);
76 const Location &Loc) {
97 if (!isNoAlias(CSLoc, Loc)) {
107 // If Loc is a constant memory location, the call definitely could not
109 if ((Mask & Mod) && pointsToConstantMemory(Loc))
117 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask);
283 AliasAnalysis::getModRefInfo(const LoadInst *L, const Location &Loc) { argument
290 if (!alias(getLocation(L), Loc))
298 AliasAnalysis::getModRefInfo(const StoreInst *S, const Location &Loc) { argument
75 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
318 getModRefInfo(const VAArgInst *V, const Location &Loc) argument
334 getModRefInfo(const AtomicCmpXchgInst *CX, const Location &Loc) argument
347 getModRefInfo(const AtomicRMWInst *RMW, const Location &Loc) argument
391 canBasicBlockModify(const BasicBlock &BB, const Location &Loc) argument
401 canInstructionRangeModify(const Instruction &I1, const Instruction &I2, const Location &Loc) argument
[all...]
/external/llvm/lib/Support/
H A DSourceMgr.cpp72 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
74 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
77 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd())
84 unsigned SourceMgr::FindLineNumber(SMLoc Loc, int BufferID) const { argument
85 if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc);
101 Cache->LastQuery <= Loc.getPointer()) {
108 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr)
143 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, argument
149 int CurBuf = FindBufferContainingLoc(Loc);
155 const char *LineStart = Loc
195 PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges) const argument
[all...]
/external/llvm/lib/AsmParser/
H A DLLParser.h58 LLLexer::LocTy Loc; member in struct:llvm::ValID
103 SMLoc Loc; member in struct:llvm::LLParser::MDRef
146 GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc);
147 GlobalValue *GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc);
156 bool ParseOptionalToken(lltok::Kind T, bool &Present, LocTy *Loc = 0) {
160 if (Loc)
161 *Loc = Lex.getLoc();
169 bool ParseUInt32(unsigned &Val, LocTy &Loc) { argument
170 Loc = Lex.getLoc();
209 bool ParseGlobal(const std::string &Name, LocTy Loc, unsigne
220 ParseType(Type *&Result, LocTy &Loc, bool AllowVoid = false) argument
282 ParseValue(Type *Ty, Value *&V, LocTy &Loc, PerFunctionState &PFS) argument
292 ParseTypeAndValue(Value *&V, LocTy &Loc, PerFunctionState &PFS) argument
299 LocTy Loc; local
305 LocTy Loc; member in struct:llvm::LLParser::ParamInfo
326 LocTy Loc; member in struct:llvm::LLParser::ArgInfo
[all...]
/external/clang/lib/Frontend/
H A DTextDiagnostic.cpp196 SourceLocation Loc) {
197 if (!Loc.isMacroID()) return Loc;
202 if (SM.isMacroArgExpansion(Loc))
203 return SM.getImmediateSpellingLoc(Loc);
207 return SM.getImmediateExpansionRange(Loc).first;
213 SourceLocation Loc) {
214 if (!Loc.isMacroID()) return Loc;
219 if (SM.isMacroArgExpansion(Loc))
[all...]
/external/clang/include/clang/Rewrite/
H A DRewriter.h162 static bool isRewritable(SourceLocation Loc) { argument
163 return Loc.isFileID();
186 /// using the indentation of the source line in position \arg Loc.
187 bool InsertText(SourceLocation Loc, StringRef Str,
195 bool InsertTextAfter(SourceLocation Loc, StringRef Str) { argument
196 return InsertText(Loc, Str);
201 bool InsertTextAfterToken(SourceLocation Loc, StringRef Str);
208 bool InsertTextBefore(SourceLocation Loc, StringRef Str) { argument
209 return InsertText(Loc, Str, false);
283 unsigned getLocationOffsetAndFileID(SourceLocation Loc, FileI
[all...]
/external/clang/lib/Basic/
H A DSourceManager.cpp84 SourceLocation Loc,
120 Diag.Report(Loc, diag::err_cannot_open_file)
136 Diag.Report(Loc, diag::err_file_modified)
162 Diag.Report(Loc, diag::err_unsupported_bom)
289 /// specified by Loc. If FilenameID is -1, it is considered to be
291 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument
293 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);
311 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument
320 return AddLineNote(Loc, LineNo, FilenameID);
323 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);
82 getBuffer(DiagnosticsEngine &Diag, const SourceManager &SM, SourceLocation Loc, bool *Invalid) const argument
834 SourceLocation Loc; local
852 SourceLocation Loc; local
964 isInvalid(SourceLocation Loc, bool *Invalid) argument
971 getSpellingColumnNumber(SourceLocation Loc, bool *Invalid) const argument
978 getExpansionColumnNumber(SourceLocation Loc, bool *Invalid) const argument
985 getPresumedColumnNumber(SourceLocation Loc, bool *Invalid) const argument
1167 getSpellingLineNumber(SourceLocation Loc, bool *Invalid) const argument
1173 getExpansionLineNumber(SourceLocation Loc, bool *Invalid) const argument
1179 getPresumedLineNumber(SourceLocation Loc, bool *Invalid) const argument
1224 getBufferName(SourceLocation Loc, bool *Invalid) const argument
1646 MoveUpIncludeHierarchy(std::pair<FileID, unsigned> &Loc, const SourceManager &SM) argument
[all...]
/external/llvm/include/llvm/Analysis/
H A DAliasAnalysis.h134 /// getLocation - Fill in Loc with information about the memory reference by
203 virtual bool pointsToConstantMemory(const Location &Loc,
341 const Location &Loc) {
343 case Instruction::VAArg: return getModRefInfo((const VAArgInst*)I, Loc);
344 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc);
345 case Instruction::Store: return getModRefInfo((const StoreInst*)I, Loc);
346 case Instruction::Fence: return getModRefInfo((const FenceInst*)I, Loc);
348 return getModRefInfo((const AtomicCmpXchgInst*)I, Loc);
350 return getModRefInfo((const AtomicRMWInst*)I, Loc);
351 case Instruction::Call: return getModRefInfo((const CallInst*)I, Loc);
340 getModRefInfo(const Instruction *I, const Location &Loc) argument
376 getModRefInfo(const CallInst *C, const Location &Loc) argument
387 getModRefInfo(const InvokeInst *I, const Location &Loc) argument
418 getModRefInfo(const FenceInst *S, const Location &Loc) argument
[all...]

Completed in 747 milliseconds

1234567891011