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

1234567891011>>

/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Lex/
H A DPPConditionalDirectiveRecord.cpp49 SourceLocation Loc) const {
50 if (Loc.isInvalid())
56 Loc))
61 Loc, CondDirectiveLoc::Comp(SourceMgr));
78 void PPConditionalDirectiveRecord::If(SourceLocation Loc, argument
81 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back()));
82 CondDirectiveStack.push_back(Loc);
85 void PPConditionalDirectiveRecord::Ifdef(SourceLocation Loc, argument
88 addCondDirectiveLoc(CondDirectiveLoc(Loc, CondDirectiveStack.back()));
89 CondDirectiveStack.push_back(Loc);
92 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
99 Elif(SourceLocation Loc, SourceRange ConditionRange, bool ConditionValue, SourceLocation IfLoc) argument
107 Else(SourceLocation Loc, SourceLocation IfLoc) argument
113 Endif(SourceLocation Loc, SourceLocation IfLoc) argument
[all...]
/freebsd-10.1-release/contrib/llvm/lib/TableGen/
H A DError.cpp25 static void PrintMessage(ArrayRef<SMLoc> Loc, SourceMgr::DiagKind Kind, argument
33 if (Loc.empty())
34 Loc = NullLoc;
35 SrcMgr.PrintMessage(Loc.front(), Kind, Msg);
36 for (unsigned i = 1; i < Loc.size(); ++i)
37 SrcMgr.PrintMessage(Loc[i], SourceMgr::DK_Note,
45 void PrintWarning(const char *Loc, const Twine &Msg) { argument
46 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMgr::DK_Warning, Msg);
57 void PrintError(const char *Loc, const Twine &Msg) { argument
58 SrcMgr.PrintMessage(SMLoc::getFromPointer(Loc), SourceMg
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Lex/
H A DPPCallbacks.h47 /// \param Loc Indicates the new location.
49 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument
153 /// \param Loc The location of the directive.
156 virtual void Ident(SourceLocation Loc, const std::string &str) { argument
160 virtual void PragmaDirective(SourceLocation Loc, argument
165 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, argument
171 virtual void PragmaDetectMismatch(SourceLocation Loc, argument
177 /// \param Loc The location of the debug directive.
179 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType) { argument
195 /// \param Loc Th
199 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument
205 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument
211 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument
216 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument
228 PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) argument
233 PragmaWarningPush(SourceLocation Loc, int Level) argument
237 PragmaWarningPop(SourceLocation Loc) argument
276 If(SourceLocation Loc, SourceRange ConditionRange, bool ConditionValue) argument
286 Elif(SourceLocation Loc, SourceRange ConditionRange, bool ConditionValue, SourceLocation IfLoc) argument
294 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
302 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
309 Else(SourceLocation Loc, SourceLocation IfLoc) argument
315 Endif(SourceLocation Loc, SourceLocation IfLoc) argument
332 FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind FileType, FileID PrevFID) argument
381 Ident(SourceLocation Loc, const std::string &str) argument
386 PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, const std::string &Str) argument
392 PragmaDetectMismatch(SourceLocation Loc, const std::string &Name, const std::string &Value) argument
399 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument
405 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument
411 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument
417 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping mapping, StringRef Str) argument
430 PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) argument
436 PragmaWarningPush(SourceLocation Loc, int Level) argument
441 PragmaWarningPop(SourceLocation Loc) argument
475 If(SourceLocation Loc, SourceRange ConditionRange, bool ConditionValue) argument
482 Elif(SourceLocation Loc, SourceRange ConditionRange, bool ConditionValue, SourceLocation IfLoc) argument
489 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
496 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
503 Else(SourceLocation Loc, SourceLocation IfLoc) argument
509 Endif(SourceLocation Loc, SourceLocation IfLoc) argument
[all...]
H A DPPConditionalDirectiveRecord.h32 SourceLocation Loc; member in class:clang::PPConditionalDirectiveRecord::CondDirectiveLoc
36 CondDirectiveLoc(SourceLocation Loc, SourceLocation RegionLoc) argument
37 : Loc(Loc), RegionLoc(RegionLoc) {}
39 SourceLocation getLoc() const { return Loc; }
86 SourceLocation findConditionalDirectiveRegionLoc(SourceLocation Loc) const;
89 virtual void If(SourceLocation Loc, SourceRange ConditionRange,
91 virtual void Elif(SourceLocation Loc, SourceRange ConditionRange,
93 virtual void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
95 virtual void Ifndef(SourceLocation Loc, cons
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Sema/
H A DPrettyDeclStackTrace.h34 SourceLocation Loc; member in class:clang::PrettyDeclStackTraceEntry
38 PrettyDeclStackTraceEntry(Sema &S, Decl *D, SourceLocation Loc, argument
40 : S(S), TheDecl(D), Loc(Loc), Message(Msg) {}
H A DTemplateDeduction.h37 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo
50 TemplateDeductionInfo(SourceLocation Loc) argument
51 : Deduced(0), Loc(Loc), HasSFINAEDiagnostic(false), Expression(0) { }
56 return Loc;
87 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument
93 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
99 void addSuppressedDiagnostic(SourceLocation Loc, argument
104 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
245 SourceLocation Loc; member in class:clang::TemplateSpecCandidateSet
254 TemplateSpecCandidateSet(SourceLocation Loc) argument
[all...]
H A DSemaInternal.h46 SourceLocation Loc, Sema &SemaRef,
54 if (old.isInvalid()) old = Loc;
57 SemaRef.tryCaptureVariable(Var, Loc, Sema::TryCapture_Implicit,
45 MarkVarDeclODRUsed(VarDecl *Var, SourceLocation Loc, Sema &SemaRef, const unsigned *const FunctionScopeIndexToStopAt) argument
H A DWeak.h32 WeakInfo(IdentifierInfo *Alias, SourceLocation Loc) argument
33 : alias(Alias), loc(Loc), used(false) {}
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Basic/
H A DPrettyStackTrace.h29 SourceLocation Loc; member in class:clang::PrettyStackTraceLoc
33 : SM(sm), Loc(L), Message(Msg) {}
H A DSourceManager.h169 /// \param Loc If specified, is the location that invalid file diagnostics
175 SourceLocation Loc = SourceLocation(),
808 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
815 SourceLocation createExpansionLoc(SourceLocation Loc,
878 const llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument
889 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc,
1026 getModuleImportLoc(SourceLocation Loc) const {
1027 FileID FID = getFileID(Loc);
1037 /// \brief Given a SourceLocation object \p Loc, return the expansion
1039 SourceLocation getExpansionLoc(SourceLocation Loc) cons
1185 isInSLocAddrSpace(SourceLocation Loc, SourceLocation Start, unsigned Length, unsigned *RelativeOffset = 0) const argument
1341 isInFileID(SourceLocation Loc, FileID FID, unsigned *RelativeOffset = 0) const argument
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Frontend/
H A DDiagnosticRenderer.cpp42 static StringRef getImmediateMacroName(SourceLocation Loc, argument
45 assert(Loc.isMacroID() && "Only reasonble to call this on macros");
47 while (SM.isMacroArgExpansion(Loc))
48 Loc = SM.getImmediateExpansionRange(Loc).first;
52 if (!SM.getFileEntryForID(SM.getFileID(SM.getSpellingLoc(Loc))))
58 Loc = SM.getSpellingLoc(SM.getImmediateExpansionRange(Loc).first);
62 std::pair<FileID, unsigned> ExpansionInfo = SM.getDecomposedLoc(Loc);
63 unsigned MacroTokenLength = Lexer::MeasureTokenLength(Loc, S
123 emitDiagnostic(SourceLocation Loc, DiagnosticsEngine::Level Level, StringRef Message, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> FixItHints, const SourceManager *SM, DiagOrStoredDiag D) argument
204 emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument
229 emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM) argument
258 emitImportStack(SourceLocation Loc, const SourceManager &SM) argument
272 emitImportStackRecursively(SourceLocation Loc, StringRef ModuleName, const SourceManager &SM) argument
381 emitCaret(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument
403 emitMacroExpansions(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM, unsigned &MacroDepth, unsigned OnMacroInst) argument
471 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument
482 emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument
495 emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument
[all...]
H A DPrintPreprocessedOutput.cpp127 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
139 virtual void Ident(SourceLocation Loc, const std::string &str);
140 virtual void PragmaCaptured(SourceLocation Loc, StringRef Str);
141 virtual void PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind,
143 virtual void PragmaDetectMismatch(SourceLocation Loc,
146 virtual void PragmaMessage(SourceLocation Loc, StringRef Namespace,
148 virtual void PragmaDebug(SourceLocation Loc, StringRef DebugType);
149 virtual void PragmaDiagnosticPush(SourceLocation Loc,
151 virtual void PragmaDiagnosticPop(SourceLocation Loc,
153 virtual void PragmaDiagnostic(SourceLocation Loc, StringRe
165 MoveToLine(SourceLocation Loc) argument
261 FileChanged(SourceLocation Loc, FileChangeReason Reason, SrcMgr::CharacteristicKind NewFileType, FileID PrevFID) argument
350 Ident(SourceLocation Loc, const std::string &S) argument
358 PragmaCaptured(SourceLocation Loc, StringRef Str) argument
405 PragmaComment(SourceLocation Loc, const IdentifierInfo *Kind, const std::string &Str) argument
422 PragmaDetectMismatch(SourceLocation Loc, const std::string &Name, const std::string &Value) argument
435 PragmaMessage(SourceLocation Loc, StringRef Namespace, PragmaMessageKind Kind, StringRef Str) argument
463 PragmaDebug(SourceLocation Loc, StringRef DebugType) argument
475 PragmaDiagnosticPush(SourceLocation Loc, StringRef Namespace) argument
483 PragmaDiagnosticPop(SourceLocation Loc, StringRef Namespace) argument
491 PragmaDiagnostic(SourceLocation Loc, StringRef Namespace, diag::Mapping Map, StringRef Str) argument
514 PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) argument
526 PragmaWarningPush(SourceLocation Loc, int Level) argument
537 PragmaWarningPop(SourceLocation Loc) argument
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/AST/
H A DTypeLoc.h159 void initialize(ASTContext &Context, SourceLocation Loc) const {
160 initializeImpl(Context, *this, Loc);
194 SourceLocation Loc);
248 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument
279 if (QualifiedTypeLoc Loc = getAs<QualifiedTypeLoc>())
280 return Loc.getUnqualifiedLoc();
463 void setNameLoc(SourceLocation Loc) { argument
464 this->getLocalData()->NameLoc = Loc;
469 void initializeLocal(ASTContext &Context, SourceLocation Loc) { argument
470 setNameLoc(Loc);
492 setBuiltinLoc(SourceLocation Loc) argument
573 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
826 setLAngleLoc(SourceLocation Loc) argument
833 setRAngleLoc(SourceLocation Loc) argument
[all...]
H A DCommentBriefParser.h39 SourceLocation Loc = Tok.getLocation(); local
41 return Loc;
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc,
82 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
89 virtual void emitCodeContext(SourceLocation Loc,
95 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
97 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
100 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
111 void emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc,
113 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM);
114 void emitImportStack(SourceLocation Loc, const SourceManager &SM);
115 void emitImportStackRecursively(SourceLocation Loc, StringRe
[all...]
H A DTextDiagnostic.h80 virtual void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc,
87 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
92 virtual void emitCodeContext(SourceLocation Loc, argument
97 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM);
102 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
105 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
109 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
114 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h75 /// \param Loc -- the SourceLocation of the unresolved expression.
76 virtual void handleInvalidLockExp(SourceLocation Loc) {} argument
82 /// \param Loc -- The SourceLocation of the Unlock
83 virtual void handleUnmatchedUnlock(Name LockName, SourceLocation Loc) {} argument
88 /// \param Loc -- The location of the second lock expression.
89 virtual void handleDoubleLock(Name LockName, SourceLocation Loc) {} argument
122 /// \param Loc -- The location of the protected operation.
124 AccessKind AK, SourceLocation Loc) {}
133 /// \param Loc -- The location of the protected operation.
136 LockKind LK, SourceLocation Loc,
123 handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument
134 handleMutexNotHeld(const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc, Name *PossibleMatch=0) argument
145 handleFunExcludesLock(Name FunName, Name LockName, SourceLocation Loc) argument
[all...]
/freebsd-10.1-release/contrib/llvm/lib/CodeGen/
H A DStackMaps.cpp83 Location &Loc = ParseResult.first; local
84 assert(Loc.LocType == Location::Register &&
86 CallsiteLocs.push_back(Loc);
93 Location &Loc = ParseResult.first; local
96 if (Loc.LocType == Location::Constant && (Loc.Offset & ~0xFFFFFFFFULL)) {
97 Loc.LocType = Location::ConstantIndex;
98 Loc.Offset = ConstPool.getConstantIndex(Loc.Offset);
101 CallsiteLocs.push_back(Loc);
253 const Location &Loc = *LocI; local
[all...]
/freebsd-10.1-release/contrib/llvm/utils/TableGen/
H A DSetTheory.cpp31 ArrayRef<SMLoc> Loc) {
32 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc);
39 ArrayRef<SMLoc> Loc) {
41 PrintFatalError(Loc, "Set difference needs at least two arguments: " +
44 ST.evaluate(*Expr->arg_begin(), Add, Loc);
45 ST.evaluate(Expr->arg_begin() + 1, Expr->arg_end(), Sub, Loc);
55 ArrayRef<SMLoc> Loc) {
57 PrintFatalError(Loc, "Set intersection requires two arguments: " +
60 ST.evaluate(Expr->arg_begin()[0], S1, Loc);
61 ST.evaluate(Expr->arg_begin()[1], S2, Loc);
30 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
38 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
54 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
74 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
91 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
104 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
122 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
141 apply2(SetTheory &ST, DagInit *Expr, RecSet &Set, int64_t N, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
154 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
173 apply(SetTheory &ST, DagInit *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
277 evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/MC/
H A DMCFixup.h75 SMLoc Loc; member in class:llvm::MCFixup
78 MCFixupKind Kind, SMLoc Loc = SMLoc()) {
84 FI.Loc = Loc;
107 SMLoc getLoc() const { return Loc; }
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Sema/
H A DDelayedDiagnostic.cpp22 DelayedDiagnostic DelayedDiagnostic::makeDeprecation(SourceLocation Loc, argument
30 DD.Loc = Loc;
/freebsd-10.1-release/contrib/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
/freebsd-10.1-release/contrib/llvm/include/llvm/TableGen/
H A DError.h23 void PrintWarning(const char *Loc, const Twine &Msg);
27 void PrintError(const char *Loc, const Twine &Msg);
/freebsd-10.1-release/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAliasAnalysis.cpp87 ObjCARCAliasAnalysis::pointsToConstantMemory(const Location &Loc, argument
90 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
94 const Value *S = StripPointerCastsAndObjCCalls(Loc.Ptr);
95 if (AliasAnalysis::pointsToConstantMemory(Location(S, Loc.Size, Loc.TBAATag),
132 ObjCARCAliasAnalysis::getModRefInfo(ImmutableCallSite CS, const Location &Loc) { argument
134 return AliasAnalysis::getModRefInfo(CS, Loc);
153 return AliasAnalysis::getModRefInfo(CS, Loc);
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/AST/
H A DTypeLoc.cpp111 SourceLocation Loc) {
118 TLCasted.initializeLocal(Context, Loc); \
316 SourceLocation Loc) {
317 setElaboratedKeywordLoc(Loc);
319 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc);
324 SourceLocation Loc) {
325 setElaboratedKeywordLoc(Loc);
327 Builder.MakeTrivial(Context, getTypePtr()->getQualifier(), Loc);
329 setNameLoc(Loc);
334 SourceLocation Loc) {
110 initializeImpl(ASTContext &Context, TypeLoc TL, SourceLocation Loc) argument
315 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
323 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
333 initializeLocal(ASTContext &Context, SourceLocation Loc) argument
352 initializeArgLocs(ASTContext &Context, unsigned NumArgs, const TemplateArgument *Args, TemplateArgumentLocInfo *ArgInfos, SourceLocation Loc) argument
[all...]

Completed in 182 milliseconds

1234567891011>>