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

1234567891011>>

/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/Lex/
H A DMultipleIncludeOpt.h79 void SetDefinedMacro(IdentifierInfo *M, SourceLocation Loc) { argument
81 DefinedLoc = Loc;
123 void EnterTopLevelIfndef(const IdentifierInfo *M, SourceLocation Loc) { argument
139 MacroLoc = Loc;
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/StaticAnalyzer/Core/
H A DCheckerContext.cpp91 StringRef CheckerContext::getMacroNameOrSpelling(SourceLocation &Loc) { argument
92 if (Loc.isMacroID())
93 return Lexer::getImmediateMacroName(Loc, getSourceManager(),
96 return Lexer::getSpelling(Loc, buf, getSourceManager(), getLangOpts());
H A DSValBuilder.cpp33 if (Loc::isLocType(type))
50 assert(!Loc::isLocType(type));
58 assert(!Loc::isLocType(type));
65 assert(!Loc::isLocType(type));
72 assert(!Loc::isLocType(toTy));
103 if (Loc::isLocType(T))
134 if (Loc::isLocType(type))
150 if (Loc::isLocType(type))
161 assert(Loc::isLocType(T));
177 if (Loc
[all...]
/freebsd-10.1-release/contrib/llvm/utils/TableGen/
H A DSetTheory.h77 ArrayRef<SMLoc> Loc) =0;
124 void evaluate(Init *Expr, RecSet &Elts, ArrayRef<SMLoc> Loc);
128 void evaluate(Iter begin, Iter end, RecSet &Elts, ArrayRef<SMLoc> Loc) { argument
130 evaluate(*begin++, Elts, Loc);
/freebsd-10.1-release/contrib/llvm/lib/DebugInfo/
H A DDWARFDebugLoc.cpp29 for (SmallVectorImpl<unsigned char>::const_iterator I3 = I2->Loc.begin(), E3 = I2->Loc.end(); I3 != E3; ++I3) {
41 LocationList &Loc = Locations.back(); local
42 Loc.Offset = Offset;
69 E.Loc.reserve(str.size());
70 std::copy(str.begin(), str.end(), std::back_inserter(E.Loc));
71 Loc.Entries.push_back(llvm_move(E));
H A DDWARFDebugLoc.h29 SmallVector<unsigned char, 4> Loc; member in struct:llvm::DWARFDebugLoc::Entry
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Basic/
H A DSourceManager.cpp88 SourceLocation Loc,
127 Diag.Report(Loc, diag::err_cannot_open_file)
143 Diag.Report(Loc, diag::err_file_modified)
169 Diag.Report(Loc, diag::err_unsupported_bom)
296 /// specified by Loc. If FilenameID is -1, it is considered to be
298 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument
300 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);
318 void SourceManager::AddLineNote(SourceLocation Loc, unsigned LineNo, argument
327 return AddLineNote(Loc, LineNo, FilenameID);
330 std::pair<FileID, unsigned> LocInfo = getDecomposedExpansionLoc(Loc);
86 getBuffer(DiagnosticsEngine &Diag, const SourceManager &SM, SourceLocation Loc, bool *Invalid) const argument
1038 isAtStartOfImmediateMacroExpansion(SourceLocation Loc, SourceLocation *MacroBegin) const argument
1073 isAtEndOfImmediateMacroExpansion(SourceLocation Loc, SourceLocation *MacroEnd) const argument
1180 isInvalid(SourceLocation Loc, bool *Invalid) argument
1187 getSpellingColumnNumber(SourceLocation Loc, bool *Invalid) const argument
1194 getExpansionColumnNumber(SourceLocation Loc, bool *Invalid) const argument
1201 getPresumedColumnNumber(SourceLocation Loc, bool *Invalid) const argument
1420 getSpellingLineNumber(SourceLocation Loc, bool *Invalid) const argument
1426 getExpansionLineNumber(SourceLocation Loc, bool *Invalid) const argument
1432 getPresumedLineNumber(SourceLocation Loc, bool *Invalid) const argument
1477 getBufferName(SourceLocation Loc, bool *Invalid) const argument
1492 getPresumedLoc(SourceLocation Loc, bool UseLineDirectives) const argument
2030 MoveUpIncludeHierarchy(std::pair<FileID, unsigned> &Loc, const SourceManager &SM) argument
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/Sema/
H A DDeclSpec.cpp34 static DiagnosticBuilder Diag(DiagnosticsEngine &D, SourceLocation Loc, argument
36 return D.Report(Loc, DiagID);
179 I.Loc = LocalRangeBegin;
484 bool DeclSpec::SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc, argument
521 return SetTypeSpecType(TST_auto, Loc, PrevSpec, DiagID);
539 StorageClassSpecLoc = Loc;
544 bool DeclSpec::SetStorageClassSpecThread(TSCS TSC, SourceLocation Loc, argument
551 ThreadStorageClassSpecLoc = Loc;
558 bool DeclSpec::SetTypeSpecWidth(TSW W, SourceLocation Loc, argument
564 TSWLoc = Loc;
578 SetTypeSpecComplex(TSC C, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
588 SetTypeSpecSign(TSS S, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
598 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, ParsedType Rep) argument
625 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Expr *Rep) argument
644 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, Decl *Rep, bool Owned) argument
672 SetTypeSpecType(TST T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
698 SetTypeAltiVecVector(bool isAltiVecVector, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
710 SetTypeAltiVecPixel(bool isAltiVecPixel, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
724 SetTypeAltiVecBool(bool isAltiVecBool, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
746 SetTypeQual(TQ T, SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID, const LangOptions &Lang) argument
771 setFunctionSpecInline(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
785 setFunctionSpecForceInline(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
797 setFunctionSpecVirtual(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
812 setFunctionSpecExplicit(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
827 setFunctionSpecNoreturn(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
842 SetFriendSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
855 setModulePrivateSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
867 SetConstexprSpec(SourceLocation Loc, const char *&PrevSpec, unsigned &DiagID) argument
1157 SetSpecifier(Specifier VS, SourceLocation Loc, const char *&PrevSpec) argument
[all...]
H A DSemaFixItUtils.cpp26 SourceLocation Loc,
163 static bool isMacroDefined(const Sema &S, SourceLocation Loc, StringRef Name) { argument
168 return Macro && Macro->findDirectiveAtLoc(Loc, S.getSourceManager());
172 const Type &T, SourceLocation Loc, const Sema &S) {
179 isMacroDefined(S, Loc, "nil"))
184 (S.LangOpts.CPlusPlus || isMacroDefined(S, Loc, "false")))
189 if (isMacroDefined(S, Loc, "NULL"))
204 Sema::getFixItZeroInitializerForType(QualType T, SourceLocation Loc) const {
206 std::string s = getScalarZeroExpressionForType(*T, Loc, *this);
223 Sema::getFixItZeroLiteralForType(QualType T, SourceLocation Loc) cons
23 compareTypesSimple(CanQualType From, CanQualType To, Sema &S, SourceLocation Loc, ExprValueKind FromVK) argument
171 getScalarZeroExpressionForType( const Type &T, SourceLocation Loc, const Sema &S) argument
[all...]
H A DSemaLambda.cpp612 QualType Sema::performLambdaInitCaptureInitialization(SourceLocation Loc, argument
628 TLB.pushTypeSpec(DeductType).setNameLoc(Loc);
630 DeductType = BuildReferenceType(DeductType, true, Loc, Id);
632 TLB.push<ReferenceTypeLoc>(DeductType).setSigilLoc(Loc);
645 << DeclarationName(Id) << TSI->getType() << Loc;
650 << DeclarationName(Id) << TSI->getType() << Loc;
662 Diag(Loc, diag::err_init_capture_deduction_failure_from_init_list)
668 Diag(Loc, diag::err_init_capture_deduction_failure)
680 InitializedEntity::InitializeLambdaCapture(Id, DeducedType, Loc);
684 Loc, Ini
713 createLambdaInitCaptureVarDecl(SourceLocation Loc, QualType InitCaptureType, IdentifierInfo *Id, Expr *Init) argument
1094 SourceLocation Loc = IntroducerRange.getBegin(); local
1256 SourceLocation Loc = IntroducerRange.getBegin(); local
[all...]
/freebsd-10.1-release/contrib/llvm/tools/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
593 void SetRangeStart(SourceLocation Loc) { Range.setBegin(Loc); } argument
594 void SetRangeEnd(SourceLocation Loc) { Range.setEnd(Loc); } argument
601 /// Diag(Loc, DiagID) << PrevSpec;
606 bool SetStorageClassSpec(Sema &S, SCS SC, SourceLocation Loc,
1059 SourceLocation Loc; member in struct:clang::DeclaratorChunk
1380 getPointer(unsigned TypeQuals, SourceLocation Loc, SourceLocation ConstQualLoc, SourceLocation VolatileQualLoc, SourceLocation RestrictQualLoc) argument
1396 getReference(unsigned TypeQuals, SourceLocation Loc, bool lvalue) argument
1450 getBlockPointer(unsigned TypeQuals, SourceLocation Loc) argument
1460 getMemberPointer(const CXXScopeSpec &SS, unsigned TypeQuals, SourceLocation Loc) argument
1644 SetRangeBegin(SourceLocation Loc) argument
1649 SetRangeEnd(SourceLocation Loc) argument
2165 SourceLocation Loc; member in struct:LambdaCapture
2170 LambdaCapture(LambdaCaptureKind Kind, SourceLocation Loc, IdentifierInfo* Id, SourceLocation EllipsisLoc, ExprResult Init, ParsedType InitCaptureType) argument
2190 addCapture(LambdaCaptureKind Kind, SourceLocation Loc, IdentifierInfo* Id, SourceLocation EllipsisLoc, ExprResult Init, ParsedType InitCaptureType) argument
[all...]
H A DScopeInfo.h71 SourceLocation Loc; member in class:clang::sema::PossiblyUnreachableDiag
74 PossiblyUnreachableDiag(const PartialDiagnostic &PD, SourceLocation Loc, argument
76 : PD(PD), Loc(Loc), stmt(stmt) {}
368 SourceLocation Loc; member in class:clang::sema::CapturingScopeInfo::Capture
379 SourceLocation Loc, SourceLocation EllipsisLoc,
384 Loc(Loc), EllipsisLoc(EllipsisLoc), CaptureType(CaptureType) {}
387 Capture(IsThisCapture, bool IsNested, SourceLocation Loc, argument
391 Loc(Lo
378 Capture(VarDecl *Var, bool Block, bool ByRef, bool IsNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy) argument
454 addCapture(VarDecl *Var, bool isBlock, bool isByref, bool isNested, SourceLocation Loc, SourceLocation EllipsisLoc, QualType CaptureType, Expr *Cpy) argument
689 addPotentialThisCapture(SourceLocation Loc) argument
790 addThisCapture(bool isNested, SourceLocation Loc, QualType CaptureType, Expr *Cpy) argument
[all...]
/freebsd-10.1-release/contrib/llvm/include/llvm/Support/
H A DSourceMgr.h129 int FindBufferContainingLoc(SMLoc Loc) const;
133 unsigned FindLineNumber(SMLoc Loc, int BufferID = -1) const {
134 return getLineAndColumn(Loc, BufferID).first;
140 getLineAndColumn(SMLoc Loc, int BufferID = -1) const;
147 void PrintMessage(raw_ostream &OS, SMLoc Loc, DiagKind Kind,
154 void PrintMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
164 SMDiagnostic GetMessage(SMLoc Loc, DiagKind Kind, const Twine &Msg,
186 SMFixIt(SMLoc Loc, const Twine &Insertion)
187 : Range(Loc, Loc), Tex
[all...]
/freebsd-10.1-release/contrib/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...]
/freebsd-10.1-release/contrib/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.cpp57 bool AliasAnalysis::pointsToConstantMemory(const Location &Loc, argument
60 return AA->pointsToConstantMemory(Loc, OrLocal);
81 const Location &Loc) {
102 if (!isNoAlias(CSLoc, Loc)) {
112 // If Loc is a constant memory location, the call definitely could not
114 if ((Mask & Mod) && pointsToConstantMemory(Loc))
122 return ModRefResult(AA->getModRefInfo(CS, Loc) & Mask);
288 AliasAnalysis::getModRefInfo(const LoadInst *L, const Location &Loc) { argument
295 if (!alias(getLocation(L), Loc))
303 AliasAnalysis::getModRefInfo(const StoreInst *S, const Location &Loc) { argument
80 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
323 getModRefInfo(const VAArgInst *V, const Location &Loc) argument
339 getModRefInfo(const AtomicCmpXchgInst *CX, const Location &Loc) argument
352 getModRefInfo(const AtomicRMWInst *RMW, const Location &Loc) argument
496 canBasicBlockModify(const BasicBlock &BB, const Location &Loc) argument
506 canInstructionRangeModify(const Instruction &I1, const Instruction &I2, 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
/freebsd-10.1-release/contrib/llvm/lib/Transforms/ObjCARC/
H A DObjCARCAliasAnalysis.h62 virtual bool pointsToConstantMemory(const Location &Loc, bool OrLocal);
66 const Location &Loc);
/freebsd-10.1-release/contrib/llvm/lib/Support/
H A DSourceMgr.cpp76 int SourceMgr::FindBufferContainingLoc(SMLoc Loc) const {
78 if (Loc.getPointer() >= Buffers[i].Buffer->getBufferStart() &&
81 Loc.getPointer() <= Buffers[i].Buffer->getBufferEnd())
89 SourceMgr::getLineAndColumn(SMLoc Loc, int BufferID) const { argument
90 if (BufferID == -1) BufferID = FindBufferContainingLoc(Loc);
107 Cache->LastQuery <= Loc.getPointer()) {
114 for (; SMLoc::getFromPointer(Ptr) != Loc; ++Ptr)
151 SMDiagnostic SourceMgr::GetMessage(SMLoc Loc, SourceMgr::DiagKind Kind, argument
163 if (Loc.isValid()) {
164 int CurBuf = FindBufferContainingLoc(Loc);
214 PrintMessage(raw_ostream &OS, SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, bool ShowColors) const argument
235 PrintMessage(SMLoc Loc, SourceMgr::DiagKind Kind, const Twine &Msg, ArrayRef<SMRange> Ranges, ArrayRef<SMFixIt> FixIts, bool ShowColors) const argument
238 PrintMessage(llvm::errs(), Loc, Kind, Msg, Ranges, FixIts, ShowColors); local
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/lib/ARCMigrate/
H A DTransGCAttrs.cpp87 SourceLocation Loc = TL.getAttrNameLoc();
88 unsigned RawLoc = Loc.getRawEncoding();
94 if (Loc.isMacroID())
95 Loc = SM.getImmediateExpansionRange(Loc).first;
116 Attr.Loc = Loc;
175 bool isInMainFile(SourceLocation Loc) { argument
176 if (Loc.isInvalid())
180 return SM.isInFileID(SM.getExpansionLoc(Loc), S
291 SourceLocation Loc = ATLs[i].first.getAttrNameLoc(); local
[all...]
/freebsd-10.1-release/contrib/llvm/lib/AsmParser/
H A DLLParser.h60 LLLexer::LocTy Loc; member in struct:llvm::ValID
105 SMLoc Loc; member in struct:llvm::LLParser::MDRef
154 GlobalValue *GetGlobalVal(const std::string &N, Type *Ty, LocTy Loc);
155 GlobalValue *GetGlobalVal(unsigned ID, Type *Ty, LocTy Loc);
179 bool ParseOptionalToken(lltok::Kind T, bool &Present, LocTy *Loc = 0) {
183 if (Loc)
184 *Loc = Lex.getLoc();
192 bool ParseUInt32(unsigned &Val, LocTy &Loc) { argument
193 Loc = Lex.getLoc();
236 bool ParseGlobal(const std::string &Name, LocTy Loc, unsigne
251 ParseType(Type *&Result, LocTy &Loc, bool AllowVoid = false) argument
313 ParseValue(Type *Ty, Value *&V, LocTy &Loc, PerFunctionState &PFS) argument
323 ParseTypeAndValue(Value *&V, LocTy &Loc, PerFunctionState &PFS) argument
330 LocTy Loc; local
336 LocTy Loc; member in struct:llvm::LLParser::ParamInfo
357 LocTy Loc; member in struct:llvm::LLParser::ArgInfo
[all...]
/freebsd-10.1-release/contrib/llvm/tools/clang/include/clang/AST/
H A DStmtObjC.h54 void setForLoc(SourceLocation Loc) { ForLoc = Loc; } argument
56 void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; } argument
103 void setAtCatchLoc(SourceLocation Loc) { AtCatchLoc = Loc; } argument
105 void setRParenLoc(SourceLocation Loc) { RParenLoc = Loc; } argument
141 void setAtFinallyLoc(SourceLocation Loc) { AtFinallyLoc = Loc; } argument
193 setAtTryLoc(SourceLocation Loc) argument
328 setThrowLoc(SourceLocation Loc) argument
363 setAtLoc(SourceLocation Loc) argument
[all...]
/freebsd-10.1-release/contrib/llvm/tools/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)
282 class Loc : public DefinedSVal { class in namespace:clang::ento
284 Loc() {} function in class:clang::ento::Loc
285 explicit Loc(unsigned SubKind, const void *D) function in class:clang::ento::Loc
373 assert (data.first.getAs<Loc>());
378 Loc getLoc() const {
381 return D->first.castAs<Loc>();
384 Loc getPersistentLoc() const {
388 return V.castAs<Loc>();
[all...]

Completed in 299 milliseconds

1234567891011>>