Searched refs:Loc (Results 151 - 175 of 332) sorted by relevance

1234567891011>>

/external/clang/include/clang/Lex/
H A DModuleMap.h202 /// \param Loc The location within the source that we are querying, along
207 Module *inferModuleFromLocation(FullSourceLoc Loc);
H A DPreprocessor.h564 SourceLocation Loc);
806 void setPragmaARCCFCodeAuditedLoc(SourceLocation Loc) { argument
807 PragmaARCCFCodeAuditedLoc = Loc;
824 DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) const { argument
825 return Diags->Report(Loc, DiagID);
902 StringRef getImmediateMacroName(SourceLocation Loc) { argument
903 return Lexer::getImmediateMacroName(Loc, SourceMgr, getLangOpts());
917 /// points just past the end of the token referenced by \p Loc, and
928 SourceLocation getLocForEndOfToken(SourceLocation Loc, unsigned Offset = 0) { argument
929 return Lexer::getLocForEndOfToken(Loc, Offse
[all...]
/external/llvm/lib/CodeGen/
H A DMachineSSAUpdater.cpp185 MachineBasicBlock::iterator Loc = BB->empty() ? BB->end() : BB->begin();
187 Loc, VRC, MRI, TII);
308 MachineBasicBlock::iterator Loc = BB->empty() ? BB->end() : BB->begin(); local
309 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc,
/external/clang/lib/ARCMigrate/
H A DTransformActions.cpp46 SourceLocation Loc; member in struct:__anon3462::TransformActionsImpl::ActionData
204 if (!canInsert(act.Loc))
208 if (!canInsertAfterToken(act.Loc))
225 if (!canReplaceText(act.Loc, act.Text1))
248 commitInsert(act.Loc, act.Text1);
251 commitInsertAfterToken(act.Loc, act.Text1);
263 commitReplaceText(act.Loc, act.Text1, act.Text2);
266 commitIncreaseIndentation(act.R1, act.Loc);
290 data.Loc = loc;
300 data.Loc
[all...]
/external/clang/lib/AST/
H A DStmt.cpp277 AttributedStmt *AttributedStmt::Create(ASTContext &C, SourceLocation Loc, argument
283 return new (Mem) AttributedStmt(Loc, Attrs, SubStmt);
1009 SEHExceptStmt::SEHExceptStmt(SourceLocation Loc, argument
1013 Loc(Loc)
1020 SourceLocation Loc,
1023 return new(C) SEHExceptStmt(Loc,FilterExpr,Block);
1026 SEHFinallyStmt::SEHFinallyStmt(SourceLocation Loc, argument
1029 Loc(Loc),
1019 Create(ASTContext &C, SourceLocation Loc, Expr *FilterExpr, Stmt *Block) argument
1033 Create(ASTContext &C, SourceLocation Loc, Stmt *Block) argument
[all...]
H A DExprCXX.cpp411 return SourceRange(Loc, ParenRange.getEnd());
413 SourceLocation End = Loc;
425 return SourceRange(Loc, End);
675 CXXDefaultArgExpr::Create(ASTContext &C, SourceLocation Loc, argument
678 return new (Mem) CXXDefaultArgExpr(CXXDefaultArgExprClass, Loc, Param,
719 SourceLocation Loc,
727 return new (C) CXXConstructExpr(C, CXXConstructExprClass, T, Loc, D,
735 SourceLocation Loc,
747 Constructor(D), Loc(Loc), ParenRang
718 Create(ASTContext &C, QualType T, SourceLocation Loc, CXXConstructorDecl *D, bool Elidable, ArrayRef<Expr*> Args, bool HadMultipleCandidates, bool ListInitialization, bool ZeroInitialization, ConstructionKind ConstructKind, SourceRange ParenRange) argument
734 CXXConstructExpr(ASTContext &C, StmtClass SC, QualType T, SourceLocation Loc, CXXConstructorDecl *D, bool elidable, ArrayRef<Expr*> args, bool HadMultipleCandidates, bool ListInitialization, bool ZeroInitialization, ConstructionKind ConstructKind, SourceRange ParenRange) argument
771 Capture(SourceLocation Loc, bool Implicit, LambdaCaptureKind Kind, VarDecl *Var, SourceLocation EllipsisLoc) argument
1302 TypeTraitExpr(QualType T, SourceLocation Loc, TypeTrait Kind, ArrayRef<TypeSourceInfo *> Args, SourceLocation RParenLoc, bool Value) argument
1331 Create(ASTContext &C, QualType T, SourceLocation Loc, TypeTrait Kind, ArrayRef<TypeSourceInfo *> Args, SourceLocation RParenLoc, bool Value) argument
[all...]
H A DExpr.cpp287 D(D), Loc(NameInfo.getLoc()), DNLoc(NameInfo.getInfo()) {
565 Loc(l) {
586 false, false), Loc(L) {
648 const SourceLocation *Loc,
660 SL->TokLocs[0] = Loc[0];
664 memcpy(&SL->TokLocs[1], Loc+1, sizeof(SourceLocation)*(NumStrs-1));
1791 /// be warned about if the result is unused. If so, fill in Loc and Ranges
1794 bool Expr::isUnusedResultAWarning(const Expr *&WarnE, SourceLocation &Loc, argument
1807 Loc = getExprLoc();
1812 isUnusedResultAWarning(WarnE, Loc, R
646 Create(ASTContext &C, StringRef Str, StringKind Kind, bool Pascal, QualType Ty, const SourceLocation *Loc, unsigned NumStrs) argument
[all...]
/external/clang/lib/StaticAnalyzer/Checkers/
H A DNSErrorChecker.cpp219 if (loc.isUndef() || !isa<Loc>(loc))
241 setFlag<NSErrorOut>(state, state->getSVal(cast<Loc>(loc)), C);
246 setFlag<CFErrorOut>(state, state->getSVal(cast<Loc>(loc)), C);
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleConstraintManager.cpp64 return assume(state, cast<Loc>(Cond), Assumption);
67 ProgramStateRef SimpleConstraintManager::assume(ProgramStateRef state, Loc cond,
76 Loc Cond, bool Assumption) {
79 assert (false && "'Assume' not implemented for this Loc.");
H A DBugReporterVisitors.cpp44 const PostStmt *Loc = N->getLocationAs<PostStmt>(); local
45 if (!Loc)
48 const Expr *S = dyn_cast<Expr>(Loc->getStmt());
225 if (isa<Loc>(V)) {
428 if (isa<Loc>(Constraint)) {
865 PathDiagnosticLocation Loc(Cond, BRC.getSourceManager(), LCtx);
867 new PathDiagnosticEventPiece(Loc, Out.str());
901 PathDiagnosticLocation Loc(CondVarExpr, BRC.getSourceManager(), LCtx);
903 new PathDiagnosticEventPiece(Loc, Out.str());
949 PathDiagnosticLocation Loc(Con
[all...]
H A DExprEngine.cpp141 if (const Loc *LV = dyn_cast<Loc>(&V)) {
157 if (const Loc *LV = dyn_cast<Loc>(&V)) {
446 Loc dest = state->getLValue(varDecl, Pred->getLocationContext());
458 Loc ThisPtr = getSValBuilder().getCXXThis(CurDtor,
477 Loc ThisVal = getSValBuilder().getCXXThis(CurDtor,
479 SVal FieldVal = State->getLValue(Member, cast<Loc>(State->getSVal(ThisVal)));
1559 // If the location is not a 'Loc', it will already be handled by
1561 if (!isa<Loc>(locatio
1871 ProgramPoint Loc = N->getLocation(); local
[all...]
H A DCallEvent.cpp151 else if (!isa<Loc>(V))
206 SourceLocation Loc = getSourceRange().getBegin(); local
208 return PreImplicitCall(D, Loc, getLocationContext(), Tag);
209 return PostImplicitCall(D, Loc, getLocationContext(), Tag);
270 Loc ParamLoc = SVB.makeLoc(MRMgr.getVarRegion(ParamDecl, CalleeCtx));
473 Loc ThisLoc = SVB.getCXXThis(MD, CalleeCtx);
561 Loc ThisLoc = SVB.getCXXThis(MD, CalleeCtx);
832 Loc SelfLoc = SVB.makeLoc(MRMgr.getVarRegion(SelfD, CalleeCtx));
877 Loc ThisPtr = SVB.getCXXThis(Ctor, CalleeCtx);
902 Loc ThisPt
[all...]
/external/llvm/lib/MC/
H A DMCContext.cpp328 void MCContext::FatalError(SMLoc Loc, const Twine &Msg) { argument
331 if (!SrcMgr || Loc == SMLoc())
335 SrcMgr->PrintMessage(Loc, SourceMgr::DK_Error, Msg);
/external/clang/lib/Frontend/
H A DDependencyFile.cpp55 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
100 void DependencyFileCallback::FileChanged(SourceLocation Loc, argument
113 SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(Loc)));
H A DVerifyDiagnosticConsumer.cpp63 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason, argument
66 Verify.UpdateParsedFileStatus(SM, SM.getFileID(Loc),
121 SourceLocation Loc = Info.getLocation(); local
122 if (Loc.isValid()) {
125 Loc = SrcManager->getExpansionLoc(Loc);
126 FileID FID = SrcManager->getFileID(Loc);
H A DASTUnit.cpp1019 FullSourceLoc Loc(StoredDiagnostics[I].getLocation(), SM);
1020 StoredDiagnostics[I].setLocation(Loc);
2539 FullSourceLoc Loc(L, SrcMgr);
2570 SD.getMessage(), Loc, Ranges, FixIts));
2588 SourceLocation Loc = D->getLocation(); local
2589 if (Loc.isInvalid() || !SM.isLocalSourceLocation(Loc))
2596 SourceLocation FileLoc = SM.getFileLoc(Loc);
2667 SourceLocation Loc = SM.translateFileLineCol(File, Line, Col); local
2668 return SM.getMacroArgExpandedLocation(Loc);
2681 mapLocationFromPreamble(SourceLocation Loc) argument
2702 mapLocationToPreamble(SourceLocation Loc) argument
2720 isInPreambleFileID(SourceLocation Loc) argument
2731 isInMainFileID(SourceLocation Loc) argument
[all...]
/external/clang/lib/Sema/
H A DSemaExprObjC.cpp145 static bool validateBoxingMethod(Sema &S, SourceLocation Loc, argument
150 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
157 S.Diag(Loc, diag::err_objc_literal_method_sig)
169 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, argument
178 S.Diag(Loc, diag::err_invalid_nsnumber_type)
199 Loc, Sema::LookupOrdinaryName);
210 S.Diag(Loc, diag::err_undeclared_nsnumber);
214 S.Diag(Loc, diag::err_undeclared_nsnumber);
245 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method))
1036 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) { argument
1306 SourceLocation Loc = RExpr->getLocStart(); local
1812 BuildClassMessageImplicit(QualType ReceiverType, bool isSuperReceiver, SourceLocation Loc, Selector Sel, ObjCMethodDecl *Method, MultiExprArg Args) argument
1911 SourceLocation Loc = SuperLoc.isValid()? SuperLoc local
2032 BuildInstanceMessageImplicit(Expr *Receiver, QualType ReceiverType, SourceLocation Loc, Selector Sel, ObjCMethodDecl *Method, MultiExprArg Args) argument
2083 SourceLocation Loc = SuperLoc.isValid()? SuperLoc : Receiver->getLocStart(); local
[all...]
H A DSemaAccess.cpp1217 static void DiagnoseBadAccess(Sema &S, SourceLocation Loc, argument
1224 S.Diag(Loc, Entity.getDiag())
1351 SourceLocation Loc,
1357 Loc,
1369 SourceLocation Loc,
1374 IsMicrosoftUsingDeclarationAccessBug(S, Loc, Entity))
1379 DelayDependentAccess(S, EC, Loc, Entity);
1384 DiagnoseBadAccess(S, Loc, EC, Entity);
1395 static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc, argument
1413 S.DelayedDiagnostics.add(DelayedDiagnostic::makeAccess(Loc, Entit
1349 DelayDependentAccess(Sema &S, const EffectiveContext &EC, SourceLocation Loc, const AccessTarget &Entity) argument
1367 CheckEffectiveAccess(Sema &S, const EffectiveContext &EC, SourceLocation Loc, AccessTarget &Entity) argument
1450 SourceLocation Loc = DD.getAccessLoc(); local
1544 CheckDestructorAccess(SourceLocation Loc, CXXDestructorDecl *Dtor, const PartialDiagnostic &PDiag, QualType ObjectTy) argument
[all...]
H A DSemaInit.cpp279 SourceLocation Loc; local
280 InitializationKind Kind = InitializationKind::CreateValue(Loc, Loc, Loc,
291 SourceLocation Loc = ILE->getLocStart(); local
304 SemaRef.Diag(Loc, diag::err_init_reference_member_uninitialized)
313 InitializationKind Kind = InitializationKind::CreateValue(Loc, Loc, Loc,
356 SourceLocation Loc local
1650 SourceLocation Loc = D->getDotLoc(); local
2163 SourceLocation Loc = Index->getLocStart(); local
2178 ActOnDesignatedInitializer(Designation &Desig, SourceLocation Loc, bool GNUSyntax, ExprResult Init) argument
4437 SourceLocation Loc = getInitializationLoc(Entity, CurInit.get()); local
4626 SourceLocation Loc = (Kind.isCopyInit() && Kind.getEqualLoc().isValid()) local
5035 SourceLocation Loc = CurInit.get()->getLocStart(); local
[all...]
/external/clang/include/clang/AST/
H A DExprObjC.h64 SourceLocation Loc; member in class:clang::ObjCBoolLiteralExpr
68 false, false), Value(val), Loc(l) {}
76 SourceRange getSourceRange() const LLVM_READONLY { return SourceRange(Loc); }
78 SourceLocation getLocation() const { return Loc; }
79 void setLocation(SourceLocation L) { Loc = L; }
463 SourceLocation Loc; member in class:clang::ObjCIvarRefExpr
475 D(d), Base(base), Loc(l), IsArrow(arrow), IsFreeIvar(freeIvar) {}
493 SourceLocation getLocation() const { return Loc; }
494 void setLocation(SourceLocation L) { Loc = L; }
497 return isFreeIvar() ? SourceRange(Loc)
750 setReceiverLocation(SourceLocation Loc) argument
1233 setSuper(SourceLocation Loc, QualType T, bool IsInstanceSuper) argument
[all...]
H A DDeclTemplate.h1459 void setPointOfInstantiation(SourceLocation Loc) { argument
1460 assert(Loc.isValid() && "point of instantiation must be valid!");
1461 PointOfInstantiation = Loc;
1557 void setExternLoc(SourceLocation Loc) { argument
1560 ExplicitInfo->ExternLoc = Loc;
1564 void setTemplateKeywordLoc(SourceLocation Loc) { argument
1567 ExplicitInfo->TemplateKeywordLoc = Loc;
2014 FriendTemplateDecl(DeclContext *DC, SourceLocation Loc, argument
2019 : Decl(Decl::FriendTemplate, DC, Loc),
2034 DeclContext *DC, SourceLocation Loc,
2174 ClassScopeFunctionSpecializationDecl(DeclContext *DC, SourceLocation Loc, CXXMethodDecl *FD, bool Args, TemplateArgumentListInfo TemplArgs) argument
2193 Create(ASTContext &C, DeclContext *DC, SourceLocation Loc, CXXMethodDecl *FD, bool HasExplicitTemplateArgs, TemplateArgumentListInfo TemplateArgs) argument
[all...]
/external/clang/include/clang/StaticAnalyzer/Core/BugReporter/
H A DBugReporter.h412 StringRef BugStr, PathDiagnosticLocation Loc,
417 StringRef BugStr, PathDiagnosticLocation Loc) {
418 EmitBasicReport(DeclWithIssue, BugName, BugCategory, BugStr, Loc, 0, 0);
423 StringRef BugStr, PathDiagnosticLocation Loc,
425 EmitBasicReport(DeclWithIssue, BugName, Category, BugStr, Loc, &R, 1);
415 EmitBasicReport(const Decl *DeclWithIssue, StringRef BugName, StringRef BugCategory, StringRef BugStr, PathDiagnosticLocation Loc) argument
421 EmitBasicReport(const Decl *DeclWithIssue, StringRef BugName, StringRef Category, StringRef BugStr, PathDiagnosticLocation Loc, SourceRange R) argument
/external/clang/include/clang/Serialization/
H A DASTWriter.h318 unsigned Loc; member in struct:clang::ASTWriter::ReplacedDeclInfo
320 ReplacedDeclInfo() : ID(0), Offset(0), Loc(0) {}
322 SourceLocation Loc)
323 : ID(ID), Offset(Offset), Loc(Loc.getRawEncoding()) {}
487 void AddSourceLocation(SourceLocation Loc, RecordDataImpl &Record);
638 serialization::SubmoduleID inferSubmoduleIDFromLocation(SourceLocation Loc);
321 ReplacedDeclInfo(serialization::DeclID ID, uint64_t Offset, SourceLocation Loc) argument
/external/llvm/lib/MC/MCParser/
H A DDarwinAsmParser.cpp422 SMLoc Loc = getLexer().getLoc(); local
426 return Error(Loc, "expected identifier after '.section' directive");
455 return Error(Loc, ErrorStr.c_str());
468 bool DarwinAsmParser::ParseDirectivePushSection(StringRef S, SMLoc Loc) { argument
471 if (ParseDirectiveSection(S, Loc)) {
714 SMLoc Loc = getParser().getTok().getLoc(); local
723 return Error(Loc, "unknown region type in '.data_region' directive");
/external/clang/lib/CodeGen/
H A DCGDecl.cpp368 : Dtor(Dtor), NRVOFlag(NRVOFlag), Loc(addr) {}
372 llvm::Value *Loc; member in struct:__anon28::DestroyNRVOVariable
389 /*ForVirtualBase=*/false, Loc);
707 static void emitStoresForInitAfterMemset(llvm::Constant *Init, llvm::Value *Loc, argument
715 Builder.CreateStore(Init, Loc, isVolatile);
726 emitStoresForInitAfterMemset(Elt, Builder.CreateConstGEP2_32(Loc, 0, i),
740 emitStoresForInitAfterMemset(Elt, Builder.CreateConstGEP2_32(Loc, 0, i),
1033 llvm::Value *Loc = local
1043 LValue lv = MakeAddrLValue(Loc, type, alignment);
1057 if (Loc
[all...]

Completed in 421 milliseconds

1234567891011>>