Searched refs:Loc (Results 26 - 50 of 332) sorted by relevance

1234567891011>>

/external/clang/include/clang/Sema/
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 SS(SS), Loc(TemplateLoc), EllipsisLoc() { }
88 SourceLocation getLocation() const { return Loc; }
126 SourceLocation Loc; member in class:clang::ParsedTemplateArgument
H A DSemaFixItUtils.h38 SourceLocation Loc,
55 SourceLocation Loc,
H A DDeclSpec.h73 void setBeginLoc(SourceLocation Loc) { Range.setBegin(Loc); } argument
74 void setEndLoc(SourceLocation Loc) { Range.setEnd(Loc); } argument
546 void SetRangeStart(SourceLocation Loc) { Range.setBegin(Loc); } argument
547 void SetRangeEnd(SourceLocation Loc) { Range.setEnd(Loc); } argument
554 /// Diag(Loc, DiagID) << PrevSpec;
559 bool SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc,
1015 SourceLocation Loc; member in struct:clang::DeclaratorChunk
1318 getPointer(unsigned TypeQuals, SourceLocation Loc, SourceLocation ConstQualLoc, SourceLocation VolatileQualLoc, SourceLocation RestrictQualLoc) argument
1334 getReference(unsigned TypeQuals, SourceLocation Loc, bool lvalue) argument
1386 getBlockPointer(unsigned TypeQuals, SourceLocation Loc) argument
1396 getMemberPointer(const CXXScopeSpec &SS, unsigned TypeQuals, SourceLocation Loc) argument
1575 SetRangeBegin(SourceLocation Loc) argument
1580 SetRangeEnd(SourceLocation Loc) argument
[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,
354 const Location &Loc) {
356 case Instruction::VAArg: return getModRefInfo((const VAArgInst*)I, Loc);
357 case Instruction::Load: return getModRefInfo((const LoadInst*)I, Loc);
358 case Instruction::Store: return getModRefInfo((const StoreInst*)I, Loc);
359 case Instruction::Fence: return getModRefInfo((const FenceInst*)I, Loc);
361 return getModRefInfo((const AtomicCmpXchgInst*)I, Loc);
363 return getModRefInfo((const AtomicRMWInst*)I, Loc);
364 case Instruction::Call: return getModRefInfo((const CallInst*)I, Loc);
353 getModRefInfo(const Instruction *I, const Location &Loc) argument
389 getModRefInfo(const CallInst *C, const Location &Loc) argument
400 getModRefInfo(const InvokeInst *I, const Location &Loc) argument
431 getModRefInfo(const FenceInst *S, const Location &Loc) argument
[all...]
/external/clang/lib/Sema/
H A DDeclSpec.cpp32 static DiagnosticBuilder Diag(DiagnosticsEngine &D, SourceLocation Loc, argument
34 return D.Report(Loc, DiagID);
172 I.Loc = LocalRangeBegin;
428 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, argument
465 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID);
483 StorageClassSpecLoc = Loc;
488 bool DeclSpec::SetStorageClassSpecThread(SourceLocation Loc, argument
497 SCS_threadLoc = Loc;
504 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, argument
510 TSWLoc = Loc;
524 SetTypeSpecComplex(TSC C, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
534 SetTypeSpecSign(TSS S, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
544 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, ParsedType Rep) argument
571 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Expr *Rep) argument
590 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Decl *Rep, bool Owned) argument
618 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
644 SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
656 SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
678 SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const LangOptions &Lang, bool IsTypeSpec) argument
702 SetFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
710 SetFunctionSpecVirtual(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
718 SetFunctionSpecExplicit(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
726 SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
739 setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
751 SetConstexprSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
979 SetSpecifier(Specifier VS, SourceLocation Loc, const char *&PrevSpec) argument
[all...]
/external/llvm/include/llvm/Support/
H A DSourceMgr.h122 int FindBufferContainingLoc(SMLoc Loc) const;
126 unsigned FindLineNumber(SMLoc Loc, int BufferID = -1) const {
127 return getLineAndColumn(Loc, BufferID).first;
133 getLineAndColumn(SMLoc Loc, int BufferID = -1) const;
140 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
150 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
167 SMLoc Loc;
191 SMLoc getLoc() const { return Loc; }
/external/llvm/include/llvm/TableGen/
H A DError.h34 void PrintWarning(const char *Loc, const Twine &Msg);
39 void PrintError(const char *Loc, const Twine &Msg);
/external/llvm/lib/Analysis/
H A DNoAliasAnalysis.cpp53 virtual bool pointsToConstantMemory(const Location &Loc, argument
58 const Location &Loc) {
57 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
H A DAliasAnalysis.cpp56 bool AliasAnalysis::pointsToConstantMemory(const Location &Loc, argument
59 return AA->pointsToConstantMemory(Loc, OrLocal);
80 const Location &Loc) {
101 if (!isNoAlias(CSLoc, Loc)) {
111 // If Loc is a constant memory location, the call definitely could not
113 if ((Mask & Mod) && pointsToConstantMemory(Loc))
121 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask);
287 AliasAnalysis::getModRefInfo(const LoadInst *L, const Location &Loc) { argument
294 if (!alias(getLocation(L), Loc))
302 AliasAnalysis::getModRefInfo(const StoreInst *S, const Location &Loc) { argument
79 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
322 getModRefInfo(const VAArgInst *V, const Location &Loc) argument
338 getModRefInfo(const AtomicCmpXchgInst *CX, const Location &Loc) argument
351 getModRefInfo(const AtomicRMWInst *RMW, const Location &Loc) argument
476 canBasicBlockModify(const BasicBlock &BB, const Location &Loc) argument
486 canInstructionRangeModify(const Instruction &I1, const Instruction &I2, const Location &Loc) argument
[all...]
H A DTypeBasedAliasAnalysis.cpp144 virtual bool pointsToConstantMemory(const Location &Loc, bool OrLocal);
148 const Location &Loc);
233 bool TypeBasedAliasAnalysis::pointsToConstantMemory(const Location &Loc, argument
236 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
238 const MDNode *M = Loc.TBAATag;
239 if (!M) return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
246 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
273 const Location &Loc) {
275 return AliasAnalysis::getModRefInfo(CS, Loc);
277 if (const MDNode *L = Loc
272 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
[all...]
H A DAliasAnalysisCounter.cpp101 bool pointsToConstantMemory(const Location &Loc, bool OrLocal) { argument
102 return getAnalysis<AliasAnalysis>().pointsToConstantMemory(Loc, OrLocal);
110 const Location &Loc);
153 const Location &Loc) {
154 ModRefResult R = getAnalysis<AliasAnalysis>().getModRefInfo(CS, Loc);
166 errs() << "[" << Loc.Size << "B] ";
167 WriteAsOperand(errs(), Loc.Ptr, true, M);
152 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
H A DAliasDebugger.cpp106 const Location &Loc) {
107 assert(Vals.find(Loc.Ptr) != Vals.end() && "Never seen value in AA before");
108 return AliasAnalysis::getModRefInfo(CS, Loc);
116 bool pointsToConstantMemory(const Location &Loc, bool OrLocal) { argument
117 assert(Vals.find(Loc.Ptr) != Vals.end() && "Never seen value in AA before");
118 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
105 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
/external/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp88 SourceLocation Loc = TL.getAttrNameLoc();
89 unsigned RawLoc = Loc.getRawEncoding();
95 if (Loc.isMacroID())
96 Loc = SM.getImmediateExpansionRange(Loc).first;
117 Attr.Loc = Loc;
176 bool isInMainFile(SourceLocation Loc) { argument
177 if (Loc.isInvalid())
181 return SM.isInFileID(SM.getExpansionLoc(Loc), S
291 SourceLocation Loc = ATLs[i].first.getAttrNameLoc(); local
[all...]
/external/clang/tools/libclang/
H A DIndexingContext.cpp29 SourceLocation Loc = *LI; local
34 MakeCursorObjCProtocolRef(PD, Loc, IdxCtx.CXTU),
35 IdxCtx.getIndexLoc(Loc) };
39 IdxCtx.markEntityOccurrenceInFile(PD, Loc);
74 CXIdxLoc Loc = IdxCtx.getIndexLoc(A->getLocation()); local
77 Attrs.push_back(AttrInfo(CXIdxAttr_Unexposed, C, Loc, A));
80 Attrs.push_back(AttrInfo(CXIdxAttr_IBAction, C, Loc, A));
83 Attrs.push_back(AttrInfo(CXIdxAttr_IBOutlet, C, Loc, A));
86 IBCollAttrs.push_back(IBOutletCollectionInfo(C, Loc, A));
132 SourceLocation Loc local
162 SourceLocation Loc = Base.getSourceRange().getBegin(); local
250 handleDecl(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, DeclInfo &DInfo, const DeclContext *LexicalDC) argument
306 handleObjCContainer(const ObjCContainerDecl *D, SourceLocation Loc, CXCursor Cursor, ObjCContainerDeclInfo &ContDInfo) argument
509 handleSynthesizedObjCMethod(const ObjCMethodDecl *D, SourceLocation Loc, const DeclContext *LexicalDC) argument
566 handleReference(const NamedDecl *D, SourceLocation Loc, const NamedDecl *Parent, const DeclContext *DC, const Expr *E, CXIdxEntityRefKind Kind) argument
580 handleReference(const NamedDecl *D, SourceLocation Loc, CXCursor Cursor, const NamedDecl *Parent, const DeclContext *DC, const Expr *E, CXIdxEntityRefKind Kind) argument
687 Loc = SourceLocation::getFromRawEncoding(baseInfo->loc.int_data); local
702 markEntityOccurrenceInFile(const NamedDecl *D, SourceLocation Loc) argument
798 translateLoc(SourceLocation Loc, CXIdxClientFile *indexFile, CXFile *file, unsigned *line, unsigned *column, unsigned *offset) argument
1042 getRefCursor(const NamedDecl *D, SourceLocation Loc) argument
[all...]
H A DCIndexHigh.cpp129 /// \brief For a macro \arg Loc, returns the file spelling location and sets
133 SourceLocation Loc,
135 assert(Loc.isMacroID());
136 SourceLocation SpellLoc = SM.getImmediateSpellingLoc(Loc);
140 isMacroArg = SM.isMacroArgExpansion(Loc);
180 Loc = cxloc::translateSourceLocation(clang_getCursorLocation(cursor)); local
183 Loc = SelIdLoc;
188 if (Loc.isMacroID()) {
190 Loc = getFileSpellingLoc(SM, Loc, isMacroAr
132 getFileSpellingLoc(SourceManager &SM, SourceLocation Loc, bool &isMacroArg) argument
[all...]
H A DCXCursor.h62 SourceLocation Loc,
72 SourceLocation Loc,
82 SourceLocation Loc,
91 CXCursor MakeCursorTypeRef(const TypeDecl *Type, SourceLocation Loc,
99 CXCursor MakeCursorTemplateRef(const TemplateDecl *Template, SourceLocation Loc,
108 CXCursor MakeCursorNamespaceRef(const NamedDecl *NS, SourceLocation Loc,
116 CXCursor MakeCursorVariableRef(const VarDecl *Var, SourceLocation Loc,
124 CXCursor MakeCursorMemberRef(const FieldDecl *Field, SourceLocation Loc,
169 CXCursor MakeCursorLabelRef(LabelStmt *Label, SourceLocation Loc,
H A DCXSourceLocation.cpp209 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); local
211 if (!location.ptr_data[0] || Loc.isInvalid()) {
218 SourceLocation ExpansionLoc = SM.getExpansionLoc(Loc);
252 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); local
254 if (!location.ptr_data[0] || Loc.isInvalid())
259 PresumedLoc PreLoc = SM.getPresumedLoc(Loc);
291 SourceLocation Loc = SourceLocation::getFromRawEncoding(location.int_data); local
293 if (!location.ptr_data[0] || Loc.isInvalid())
298 SourceLocation SpellLoc = Loc;
/external/clang/include/clang/AST/
H A DStmtObjC.h54 void setForLoc(SourceLocation Loc) { ForLoc = Loc; } argument
56 void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; } argument
102 void setAtCatchLoc(SourceLocation Loc) { AtCatchLoc = Loc; } argument
104 void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; } argument
141 void setAtFinallyLoc(SourceLocation Loc) { AtFinallyLoc = Loc; } argument
195 setAtTryLoc(SourceLocation Loc) argument
330 setThrowLoc(SourceLocation Loc) argument
369 setAtLoc(SourceLocation Loc) argument
[all...]
H A DCommentLexer.h60 SourceLocation Loc; member in class:clang::comments::Token
80 SourceLocation getLocation() const LLVM_READONLY { return Loc; }
81 void setLocation(SourceLocation SL) { Loc = SL; }
85 return Loc;
86 return Loc.getLocWithOffset(Length - 1);
310 SourceLocation getSourceLocation(const char *Loc) const {
311 assert(Loc >= BufferStart && Loc <= BufferEnd &&
314 const unsigned CharNo = Loc - BufferStart;
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DSVals.h10 // This file defines SVal, Loc, and NonLoc, classes that represent
50 LocKind = 2, // for subclass Loc (an L-value)
124 /// If this SVal is a location (subclasses Loc) and
233 class Loc : public DefinedSVal { class in namespace:clang::ento
235 explicit Loc(unsigned SubKind, const void *D) function in class:clang::ento::Loc
241 Loc(const Loc& X) : DefinedSVal(X.Data, true, X.getSubKind()) {} function in class:clang::ento::Loc
319 assert (isa<Loc>(data.first));
324 Loc getLoc() const {
327 return cast<Loc>(
[all...]
/external/clang/lib/Lex/
H A DPreprocessingRecord.cpp77 SourceLocation Loc = PPE->getSourceRange().getBegin();
78 if (Loc.isInvalid())
81 if (SM.isInFileID(SM.getFileLoc(Loc), FID))
204 SourceLocation Loc) const {
205 if (SourceMgr.isLoadedSourceLocation(Loc))
223 Loc)){
235 SourceLocation Loc) const {
236 if (SourceMgr.isLoadedSourceLocation(Loc))
242 Loc,
451 unsigned PreprocessingRecord::findCondDirectiveIdx(SourceLocation Loc) cons
[all...]
/external/clang/lib/Frontend/
H A DHeaderIncludeGen.cpp42 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
75 void HeaderIncludesCallback::FileChanged(SourceLocation Loc, argument
81 PresumedLoc UserLoc = SM.getPresumedLoc(Loc);
/external/clang/lib/AST/
H A DSelectorLocationsKind.cpp57 SourceLocation Loc = Arg->getLocStart(); local
58 if (Loc.isInvalid())
59 return Loc;
61 return Loc.getLocWithOffset(-1);
/external/clang/lib/StaticAnalyzer/Checkers/
H A DAnalyzerStatsChecker.cpp93 PresumedLoc Loc = SM.getPresumedLoc(D->getLocation()); local
94 if (!Loc.isValid())
102 output << "block(line:" << Loc.getLine() << ":col:" << Loc.getColumn();
/external/clang/lib/Basic/
H A DSourceLocation.cpp27 if (Loc.isValid()) {
28 Loc.print(OS, SM);
113 bool FullSourceLoc::isBeforeInTranslationUnitThan(SourceLocation Loc) const {
115 return SrcMgr->isBeforeInTranslationUnit(*this, Loc);

Completed in 377 milliseconds

1234567891011>>