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

1234567891011>>

/external/clang/test/Analysis/
H A Dregion-store.cpp4 class Loc { class
9 Loc l;
10 void setLoc(Loc L) {
24 int radar13445834(Derived *Builder, Loc l) {
/external/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, ConditionValueKind ConditionValue, SourceLocation IfLoc) argument
107 Else(SourceLocation Loc, SourceLocation IfLoc) argument
113 Endif(SourceLocation Loc, SourceLocation IfLoc) argument
[all...]
/external/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...]
H A DSetTheory.cpp31 ArrayRef<SMLoc> Loc) override {
32 ST.evaluate(Expr->arg_begin(), Expr->arg_end(), Elts, Loc);
39 ArrayRef<SMLoc> Loc) override {
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) override {
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);
272 evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc) argument
[all...]
/external/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::Severity mapping, StringRef Str) argument
227 PragmaWarning(SourceLocation Loc, StringRef WarningSpec, ArrayRef<int> Ids) argument
232 PragmaWarningPush(SourceLocation Loc, int Level) argument
236 PragmaWarningPop(SourceLocation Loc) argument
279 If(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue) argument
289 Elif(SourceLocation Loc, SourceRange ConditionRange, ConditionValueKind ConditionValue, SourceLocation IfLoc) argument
297 Ifdef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
305 Ifndef(SourceLocation Loc, const Token &MacroNameTok, const MacroDirective *MD) argument
312 Else(SourceLocation Loc, SourceLocation IfLoc) argument
318 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 void If(SourceLocation Loc, SourceRange ConditionRange,
91 void Elif(SourceLocation Loc, SourceRange ConditionRange,
93 void Ifdef(SourceLocation Loc, const Token &MacroNameTok,
95 void Ifndef(SourceLocation Loc, cons
[all...]
/external/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.h38 SourceLocation Loc; member in class:clang::sema::TemplateDeductionInfo
51 TemplateDeductionInfo(SourceLocation Loc) argument
52 : Deduced(nullptr), Loc(Loc), HasSFINAEDiagnostic(false),
58 return Loc;
89 void addSFINAEDiagnostic(SourceLocation Loc, PartialDiagnostic PD) { argument
95 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
101 void addSuppressedDiagnostic(SourceLocation Loc, argument
106 std::make_pair(Loc, PartialDiagnostic::NullDiagnostic()));
252 SourceLocation Loc; member in class:clang::TemplateSpecCandidateSet
261 TemplateSpecCandidateSet(SourceLocation Loc) argument
[all...]
H A DWeak.h32 WeakInfo(IdentifierInfo *Alias, SourceLocation Loc) argument
33 : alias(Alias), loc(Loc), used(false) {}
/external/compiler-rt/lib/ubsan/
H A Dubsan_handlers.cc31 Location Loc = Data->Loc.acquire(); local
34 if (Loc.getSourceLocation().isDisabled())
36 if (Data->Loc.isInvalid())
37 Loc = FallbackLoc;
40 Diag(Loc, DL_Error, "%0 null pointer of type %1")
43 Diag(Loc, DL_Error, "%0 misaligned address %1 for type %3, "
48 Diag(Loc, DL_Error, "%0 address %1 with insufficient space "
69 SourceLocation Loc = Data->Loc local
114 SourceLocation Loc = Data->Loc.acquire(); local
136 SourceLocation Loc = Data->Loc.acquire(); local
159 SourceLocation Loc = Data->Loc.acquire(); local
188 SourceLocation Loc = Data->Loc.acquire(); local
216 SourceLocation Loc = Data->Loc.acquire(); local
249 SourceLocation Loc = Data->Loc.acquire(); local
268 Location Loc = getFunctionLocation(Function, &FName); local
[all...]
H A Dubsan_handlers.h21 SourceLocation Loc; member in struct:__ubsan::TypeMismatchData
39 SourceLocation Loc; member in struct:__ubsan::OverflowData
60 SourceLocation Loc; member in struct:__ubsan::ShiftOutOfBoundsData
71 SourceLocation Loc; member in struct:__ubsan::OutOfBoundsData
80 SourceLocation Loc; member in struct:__ubsan::UnreachableData
91 SourceLocation Loc; member in struct:__ubsan::VLABoundData
99 // FIXME: SourceLocation Loc;
108 SourceLocation Loc; member in struct:__ubsan::InvalidValueData
116 SourceLocation Loc; member in struct:__ubsan::FunctionTypeMismatchData
H A Dubsan_diag.cc56 uptr Loc = StackTrace::GetPreviousInstructionPc(CallerLoc);
57 return getFunctionLocation(Loc, 0);
60 Location __ubsan::getFunctionLocation(uptr Loc, const char **FName) { argument
61 if (!Loc)
66 if (!Symbolizer::GetOrInit()->SymbolizePC(Loc, &Info, 1) ||
68 return Location(Loc);
108 static void renderLocation(Location Loc) { argument
110 switch (Loc.getKind()) {
112 SourceLocation SLoc = Loc.getSourceLocation();
121 PrintModuleAndOffset(&LocBuffer, Loc
184 upperBound(MemoryLocation Loc, Range *Ranges, unsigned NumRanges) argument
197 renderMemorySnippet(const Decorator &Decor, MemoryLocation Loc, Range *Ranges, unsigned NumRanges, const Diag::Arg *Args) argument
[all...]
/external/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.h181 /// \param Loc If specified, is the location that invalid file diagnostics
187 SourceLocation Loc = SourceLocation(),
803 SourceLocation createMacroArgExpansionLoc(SourceLocation Loc,
810 SourceLocation createExpansionLoc(SourceLocation Loc,
872 llvm::MemoryBuffer *getBuffer(FileID FID, SourceLocation Loc, argument
883 return Entry.getFile().getContentCache()->getBuffer(Diag, *this, Loc,
1020 getModuleImportLoc(SourceLocation Loc) const {
1021 FileID FID = getFileID(Loc);
1031 /// \brief Given a SourceLocation object \p Loc, return the expansion
1033 SourceLocation getExpansionLoc(SourceLocation Loc) cons
1180 isInSLocAddrSpace(SourceLocation Loc, SourceLocation Start, unsigned Length, unsigned *RelativeOffset = nullptr) const argument
1338 isInFileID(SourceLocation Loc, FileID FID, unsigned *RelativeOffset = nullptr) 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/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;
H A DLambdaCapture.h40 SourceLocation Loc; member in class:clang::LambdaCapture
49 /// \param Loc The source location associated with this capture.
62 LambdaCapture(SourceLocation Loc, bool Implicit, LambdaCaptureKind Kind,
107 SourceLocation getLocation() const { return Loc; }
/external/clang/include/clang/Frontend/
H A DDiagnosticRenderer.h75 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc,
82 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
87 virtual void emitCodeContext(SourceLocation Loc,
93 virtual void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
95 virtual void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
98 virtual void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
110 void emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc,
112 void emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM);
113 void emitImportStack(SourceLocation Loc, const SourceManager &SM);
114 void emitImportStackRecursively(SourceLocation Loc, StringRe
[all...]
H A DTextDiagnostic.h78 void emitDiagnosticMessage(SourceLocation Loc,PresumedLoc PLoc,
85 void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc,
90 void emitCodeContext(SourceLocation Loc,
95 emitSnippetAndCaret(Loc, Level, Ranges, Hints, SM);
98 void emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc,
101 void emitImportLocation(SourceLocation Loc, PresumedLoc PLoc,
105 void emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc,
110 void emitSnippetAndCaret(SourceLocation Loc, DiagnosticsEngine::Level Level,
/external/llvm/lib/DebugInfo/
H A DDWARFDebugLoc.cpp30 for (unsigned char Loc : E.Loc) {
31 OS << format("%2.2x ", Loc);
42 LocationList &Loc = Locations.back(); local
43 Loc.Offset = Offset;
70 E.Loc.reserve(str.size());
71 std::copy(str.begin(), str.end(), std::back_inserter(E.Loc));
72 Loc.Entries.push_back(std::move(E));
83 LocationList &Loc = Locations.back(); local
84 Loc
[all...]
/external/clang/include/clang/Analysis/Analyses/
H A DThreadSafety.h77 /// \param Loc -- the SourceLocation of the unresolved expression.
78 virtual void handleInvalidLockExp(StringRef Kind, SourceLocation Loc) {} argument
85 /// \param Loc -- The SourceLocation of the Unlock
87 SourceLocation Loc) {}
97 /// \param Loc -- The SourceLocation of the Unlock.
100 SourceLocation Loc) {}
106 /// \param Loc -- The location of the second lock expression.
108 SourceLocation Loc) {}
145 /// \param Loc -- The location of the protected operation.
148 SourceLocation Loc) {}
86 handleUnmatchedUnlock(StringRef Kind, Name LockName, SourceLocation Loc) argument
98 handleIncorrectUnlockKind(StringRef Kind, Name LockName, LockKind Expected, LockKind Received, SourceLocation Loc) argument
107 handleDoubleLock(StringRef Kind, Name LockName, SourceLocation Loc) argument
146 handleNoMutexHeld(StringRef Kind, const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument
159 handleMutexNotHeld(StringRef Kind, const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc, Name *PossibleMatch = nullptr) argument
171 handleFunExcludesLock(StringRef Kind, Name FunName, Name LockName, SourceLocation Loc) argument
[all...]
/external/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
210 emitIncludeStack(SourceLocation Loc, PresumedLoc PLoc, DiagnosticsEngine::Level Level, const SourceManager &SM) argument
235 emitIncludeStackRecursively(SourceLocation Loc, const SourceManager &SM) argument
264 emitImportStack(SourceLocation Loc, const SourceManager &SM) argument
278 emitImportStackRecursively(SourceLocation Loc, StringRef ModuleName, const SourceManager &SM) argument
387 emitCaret(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM) argument
409 emitMacroExpansions(SourceLocation Loc, DiagnosticsEngine::Level Level, ArrayRef<CharSourceRange> Ranges, ArrayRef<FixItHint> Hints, const SourceManager &SM, unsigned &MacroDepth, unsigned OnMacroInst) argument
477 emitIncludeLocation(SourceLocation Loc, PresumedLoc PLoc, const SourceManager &SM) argument
488 emitImportLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument
501 emitBuildingModuleLocation(SourceLocation Loc, PresumedLoc PLoc, StringRef ModuleName, const SourceManager &SM) argument
[all...]
/external/llvm/include/llvm/MC/
H A DMCFixup.h76 SMLoc Loc; member in class:llvm::MCFixup
79 MCFixupKind Kind, SMLoc Loc = SMLoc()) {
85 FI.Loc = Loc;
108 SMLoc getLoc() const { return Loc; }
/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

Completed in 1298 milliseconds

1234567891011>>