/external/clang/lib/StaticAnalyzer/Core/ |
H A D | ExprEngine.cpp | 145 if (Optional<Loc> LV = V.getAs<Loc>()) { 161 if (Optional<Loc> LV = V.getAs<Loc>()) { 186 // try to stuff a Loc into a non-pointer temporary region. 187 assert(!V.getAs<Loc>() || Loc::isLocType(Result->getType()) || 200 if (!Loc::isLocType(Result->getType())) { 489 if (Optional<Loc> LValueLoc = LValue.getAs<Loc>()) 1909 processPointerEscapedOnBind(ProgramStateRef State, SVal Loc, SVal Val) argument 2333 ProgramPoint Loc = N->getLocation(); local [all...] |
H A D | BugReporterVisitors.cpp | 211 if (Optional<Loc> LValue = RetVal.getAs<Loc>()) 221 if (Optional<Loc> RetLoc = RetVal.getAs<Loc>()) 264 Optional<Loc> LValue; 266 if ((LValue = V.getAs<Loc>())) { 297 if (V.getAs<Loc>()) { 362 Optional<Loc> ArgV = Call->getArgSVal(I).getAs<Loc>(); 762 if (Constraint.getAs<Loc>()) { 1579 FullSourceLoc Loc = BR.getLocation(SM).asLocation(); local [all...] |
/external/llvm/lib/Target/X86/AsmParser/ |
H A D | X86AsmParser.cpp | 651 std::nullptr_t ErrorOperand(SMLoc Loc, StringRef Msg) { argument 652 Error(Loc, Msg); 656 std::unique_ptr<X86Operand> DefaultMemSIOperand(SMLoc Loc); 657 std::unique_ptr<X86Operand> DefaultMemDIOperand(SMLoc Loc); 940 std::unique_ptr<X86Operand> X86AsmParser::DefaultMemSIOperand(SMLoc Loc) { argument 945 /*IndexReg=*/0, /*Scale=*/1, Loc, Loc, 0); 948 std::unique_ptr<X86Operand> X86AsmParser::DefaultMemDIOperand(SMLoc Loc) { argument 953 /*IndexReg=*/0, /*Scale=*/1, Loc, Loc, 1072 SMLoc Loc = SMLoc::getFromPointer(SymLocPtr + SymName.size()); local 1145 SMLoc Loc = getTok().getLoc(); local 1446 SMLoc Loc = SMLoc::getFromPointer(DotDispStr.data()); local 1809 SMLoc Loc = Parser.getTok().getLoc(); local 1833 SMLoc Loc = Parser.getTok().getLoc(); local 2011 SMLoc Loc = Op.getEndLoc(); local 2023 SMLoc Loc = Op.getEndLoc(); local [all...] |
/external/clang/lib/Index/ |
H A D | USRGeneration.cpp | 27 static bool printLoc(llvm::raw_ostream &OS, SourceLocation Loc, argument 29 if (Loc.isInvalid()) { 32 Loc = SM.getExpansionLoc(Loc); 33 const std::pair<FileID, unsigned> &Decomposed = SM.getDecomposedLoc(Loc); 820 SourceLocation Loc = MD->getLocation(); local 821 bool ShouldGenerateLocation = !SM.isInSystemHeader(Loc); 825 printLoc(Out, Loc, SM, /*IncludeOffset=*/true);
|
/external/clang/lib/Lex/ |
H A D | Preprocessor.cpp | 214 void Preprocessor::DumpLocation(SourceLocation Loc) const { 215 Loc.dump(SourceMgr); 303 SourceLocation Loc, 312 Def = I->second->findDirectiveAtLoc(Loc, SourceMgr); 428 SourceLocation Loc = ScratchBuf->getToken(Str.data(), Str.size(), DestPtr); local 431 Loc = SourceMgr.createExpansionLoc(Loc, ExpansionLocStart, 433 Tok.setLocation(Loc); 302 getLastMacroWithSpelling( SourceLocation Loc, ArrayRef<TokenValue> Tokens) const argument
|
/external/clang/lib/Rewrite/Frontend/ |
H A D | InclusionRewriter.cpp | 58 void FileChanged(SourceLocation Loc, FileChangeReason Reason, 82 const FileChange *FindFileChangeLocation(SourceLocation Loc) const; 139 void InclusionRewriter::FileChanged(SourceLocation Loc, argument 148 LastInsertedFileChange->second.Id = FullSourceLoc(Loc, SM).getFileID(); 190 InclusionRewriter::FindFileChangeLocation(SourceLocation Loc) const { 191 FileChangeMap::const_iterator I = FileChanges.find(Loc.getRawEncoding()); 448 SourceLocation Loc = RawToken.getLocation(); local 470 OutputContentUpTo(FromFile, NextToWrite, SM.getFileOffset(Loc),
|
/external/clang/lib/Sema/ |
H A D | SemaAttr.cpp | 462 SourceLocation Loc = PP.getPragmaARCCFCodeAuditedLoc(); local 463 if (!Loc.isValid()) return; 470 D->addAttr(CFAuditedTransferAttr::CreateImplicit(Context, Loc)); 488 SourceLocation Loc) { 496 FD->addAttr(OptimizeNoneAttr::CreateImplicit(Context, Loc)); 498 FD->addAttr(NoInlineAttr::CreateImplicit(Context, Loc)); 568 SourceLocation Loc) { 573 PushPragmaVisibility(*this, NoVisibility, Loc); 487 AddOptnoneAttributeIfNoConflicts(FunctionDecl *FD, SourceLocation Loc) argument 567 PushNamespaceVisibilityAttr(const VisibilityAttr *Attr, SourceLocation Loc) argument
|
H A D | SemaStmtAttr.cpp | 78 S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_keyword); 86 S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_keyword); 97 S.Diag(ValueLoc->Loc, diag::err_pragma_loop_invalid_value);
|
H A D | SemaExprCXX.cpp | 573 Sema::ActOnCXXNullPtrLiteral(SourceLocation Loc) { argument 574 return new (Context) CXXNullPtrLiteralExpr(Context.NullPtrTy, Loc); 786 QualType ThisTy, SourceLocation Loc) { 788 = FieldDecl::Create(Context, RD, Loc, Loc, nullptr, ThisTy, 789 Context.getTrivialTypeSourceInfo(ThisTy, Loc), 794 return new (Context) CXXThisExpr(Loc, ThisTy, /*isImplicit*/true); 797 bool Sema::CheckCXXThisCapture(SourceLocation Loc, bool Explicit, argument 818 Diag(Loc, diag::err_this_capture) << Explicit; 833 Diag(Loc, dia 785 captureThis(ASTContext &Context, RecordDecl *RD, QualType ThisTy, SourceLocation Loc) argument 860 ActOnCXXThis(SourceLocation Loc) argument 1559 CheckAllocatedType(QualType AllocType, SourceLocation Loc, SourceRange R) argument 3088 CheckUnaryTypeTraitTypeCompleteness(Sema &S, TypeTrait UTT, SourceLocation Loc, QualType ArgTy) argument 4050 CheckPointerToMemberOperands(ExprResult &LHS, ExprResult &RHS, ExprValueKind &VK, SourceLocation Loc, bool isIndirect) argument 4625 FindCompositePointerType(SourceLocation Loc, Expr *&E1, Expr *&E2, bool *NonStandardCompositeType) argument [all...] |
H A D | SemaAccess.cpp | 1259 static void DiagnoseBadAccess(Sema &S, SourceLocation Loc, argument 1266 S.Diag(Loc, Entity.getDiag()) 1394 SourceLocation Loc, 1400 Loc, 1412 SourceLocation Loc, 1418 DelayDependentAccess(S, EC, Loc, Entity); 1423 IsMicrosoftUsingDeclarationAccessBug(S, Loc, Entity)) 1426 DiagnoseBadAccess(S, Loc, EC, Entity); 1437 static Sema::AccessResult CheckAccess(Sema &S, SourceLocation Loc, argument 1455 S.DelayedDiagnostics.add(DelayedDiagnostic::makeAccess(Loc, Entit 1392 DelayDependentAccess(Sema &S, const EffectiveContext &EC, SourceLocation Loc, const AccessTarget &Entity) argument 1410 CheckEffectiveAccess(Sema &S, const EffectiveContext &EC, SourceLocation Loc, AccessTarget &Entity) argument 1493 SourceLocation Loc = DD.getAccessLoc(); local 1587 CheckDestructorAccess(SourceLocation Loc, CXXDestructorDecl *Dtor, const PartialDiagnostic &PDiag, QualType ObjectTy) argument [all...] |
/external/clang/lib/StaticAnalyzer/Checkers/ |
H A D | CStringSyntaxChecker.cpp | 144 PathDiagnosticLocation Loc = local 161 "C String API", os.str(), Loc,
|
H A D | NSErrorChecker.cpp | 208 if (loc.isUndef() || !loc.getAs<Loc>()) 230 setFlag<NSErrorOut>(state, state->getSVal(loc.castAs<Loc>()), C); 235 setFlag<CFErrorOut>(state, state->getSVal(loc.castAs<Loc>()), C);
|
/external/llvm/include/llvm/CodeGen/ |
H A D | GCMetadata.h | 65 DebugLoc Loc; member in struct:llvm::GCPoint 68 : Kind(K), Label(L), Loc(DL) {}
|
H A D | MachineModuleInfo.h | 174 DebugLoc Loc; member in struct:llvm::MachineModuleInfo::VariableDbgInfo 406 void setVariableDbgInfo(MDNode *N, unsigned Slot, DebugLoc Loc) { argument 407 VariableDbgInfo Info = { N, Slot, Loc };
|
/external/llvm/unittests/Support/ |
H A D | SourceMgrTest.cpp | 39 void printMessage(SMLoc Loc, SourceMgr::DiagKind Kind, argument 43 SM.PrintMessage(OS, Loc, Kind, Msg, Ranges, FixIts);
|
/external/clang/include/clang/AST/ |
H A D | ExprObjC.h | 62 SourceLocation Loc; member in class:clang::ObjCBoolLiteralExpr 66 false, false), Value(val), Loc(l) {} 74 SourceLocation getLocStart() const LLVM_READONLY { return Loc; } 75 SourceLocation getLocEnd() const LLVM_READONLY { return Loc; } 77 SourceLocation getLocation() const { return Loc; } 78 void setLocation(SourceLocation L) { Loc = L; } 468 SourceLocation Loc; member in class:clang::ObjCIvarRefExpr 485 D(d), Base(base), Loc(l), OpLoc(oploc), 504 SourceLocation getLocation() const { return Loc; } 505 void setLocation(SourceLocation L) { Loc 761 setReceiverLocation(SourceLocation Loc) argument 1256 setSuper(SourceLocation Loc, QualType T, bool IsInstanceSuper) argument [all...] |
H A D | DeclTemplate.h | 1519 void setPointOfInstantiation(SourceLocation Loc) { argument 1520 assert(Loc.isValid() && "point of instantiation must be valid!"); 1521 PointOfInstantiation = Loc; 1609 void setExternLoc(SourceLocation Loc) { argument 1612 ExplicitInfo->ExternLoc = Loc; 1616 void setTemplateKeywordLoc(SourceLocation Loc) { argument 1619 ExplicitInfo->TemplateKeywordLoc = Loc; 2029 FriendTemplateDecl(DeclContext *DC, SourceLocation Loc, argument 2034 : Decl(Decl::FriendTemplate, DC, Loc), 2049 DeclContext *DC, SourceLocation Loc, 2190 ClassScopeFunctionSpecializationDecl(DeclContext *DC, SourceLocation Loc, CXXMethodDecl *FD, bool Args, TemplateArgumentListInfo TemplArgs) argument 2209 Create(ASTContext &C, DeclContext *DC, SourceLocation Loc, CXXMethodDecl *FD, bool HasExplicitTemplateArgs, TemplateArgumentListInfo TemplateArgs) argument 2374 setPointOfInstantiation(SourceLocation Loc) argument 2468 setExternLoc(SourceLocation Loc) argument 2475 setTemplateKeywordLoc(SourceLocation Loc) argument [all...] |
/external/clang/include/clang/Analysis/Analyses/ |
H A D | LiveVariables.h | 90 bool isLive(const Stmt *Loc, const Stmt *StmtVal);
|
/external/clang/include/clang/Sema/ |
H A D | ExternalSemaSource.h | 211 /// \param Loc the location at which a complete type was required but not 214 /// \param T the \c QualType that should have been complete at \p Loc 217 virtual bool MaybeDiagnoseMissingCompleteType(SourceLocation Loc, argument
|
/external/clang/unittests/AST/ |
H A D | MatchVerifier.h | 156 SourceLocation Loc = getLocation(Node); local 157 unsigned Line = Result.SourceManager->getSpellingLineNumber(Loc); 158 unsigned Column = Result.SourceManager->getSpellingColumnNumber(Loc); 164 Loc.print(Msg, *Result.SourceManager);
|
/external/llvm/lib/CodeGen/ |
H A D | MachineSSAUpdater.cpp | 187 MachineBasicBlock::iterator Loc = BB->empty() ? BB->end() : BB->begin(); 189 Loc, VRC, MRI, TII); 299 MachineBasicBlock::iterator Loc = BB->empty() ? BB->end() : BB->begin(); local 300 MachineInstr *PHI = InsertNewDef(TargetOpcode::PHI, BB, Loc,
|
/external/llvm/lib/Target/Mips/AsmParser/ |
H A D | MipsAsmParser.cpp | 137 bool reportParseError(SMLoc Loc, Twine ErrorMsg); 146 bool parseDirectiveCPLoad(SMLoc Loc); 193 int getATReg(SMLoc Loc); 298 void WarnIfAssemblerTemporary(int RegNo, SMLoc Loc); 1426 void MipsAsmParser::WarnIfAssemblerTemporary(int RegIndex, SMLoc Loc) { argument 1429 Warning(Loc, "Used $at without \".set noat\""); 1431 Warning(Loc, Twine("Used $") + Twine(RegIndex) + " with \".set at=$" + 1575 int MipsAsmParser::getATReg(SMLoc Loc) { argument 1578 reportParseError(Loc, 2221 SMLoc Loc local 2226 SMLoc Loc = getLexer().getLoc(); local 2250 SMLoc Loc = getLexer().getLoc(); local 2255 SMLoc Loc = getLexer().getLoc(); local 2284 SMLoc Loc = getLexer().getLoc(); local 2296 SMLoc Loc = getLexer().getLoc(); local 2310 SMLoc Loc = getLexer().getLoc(); local 2319 SMLoc Loc = getLexer().getLoc(); local 2324 reportParseError(SMLoc Loc, Twine ErrorMsg) argument 2544 SMLoc Loc = getLexer().getLoc(); local 2553 parseDirectiveCPLoad(SMLoc Loc) argument [all...] |
/external/clang/lib/ARCMigrate/ |
H A D | TransformActions.cpp | 46 SourceLocation Loc; member in struct:__anon17705::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/tools/c-index-test/ |
H A D | c-index-test.c | 682 CXSourceLocation Loc; local 686 Loc = clang_getCursorLocation(Ovl); 687 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 692 CXSourceLocation Loc = clang_getCursorLocation(Referenced); local 693 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 802 CXSourceLocation Loc = clang_getCursorLocation(SpecializationOf); local 804 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 817 CXSourceLocation Loc = clang_getCursorLocation(overridden[I]); local 818 clang_getSpellingLocation(Loc, 0, &line, &column, 0); 906 CXSourceLocation Loc local 1041 CXSourceLocation Loc = clang_getCursorLocation(Cursor); local 1092 CXSourceLocation Loc; local 2135 unsigned NumLocations = 0, Loc; local 2306 unsigned NumLocations = 0, Loc; local [all...] |
/external/clang/unittests/Lex/ |
H A D | LexerTest.cpp | 295 SourceLocation Loc; local 296 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc)); 297 EXPECT_EQ(Loc, macroRange.getBegin()); 300 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc)); 301 EXPECT_EQ(Loc, macroRange.getEnd());
|