Searched refs:Loc (Results 101 - 125 of 332) sorted by relevance

1234567891011>>

/external/clang/tools/libclang/
H A DCIndexDiagnostic.cpp48 CXSourceLocation Loc; member in class:__anon4839::CXDiagnosticCustomNoteImpl
52 Message(Msg), Loc(L) {}
61 return Loc;
114 virtual void emitDiagnosticMessage(SourceLocation Loc, PresumedLoc PLoc, argument
125 L = translateSourceLocation(*SM, LangOpts, Loc);
132 virtual void emitDiagnosticLoc(SourceLocation Loc, PresumedLoc PLoc, argument
137 virtual void emitCodeContext(SourceLocation Loc, argument
143 virtual void emitNote(SourceLocation Loc, StringRef Message, argument
147 L = translateSourceLocation(*SM, LangOpts, Loc);
H A DIndexTypeSourceInfo.cpp128 SourceLocation Loc = NNS.getSourceRange().getBegin(); local
137 Loc, Parent, DC);
141 Loc, Parent, DC);
/external/clang/unittests/Lex/
H A DLexerTest.cpp110 SourceLocation Loc; local
111 EXPECT_TRUE(Lexer::isAtStartOfMacroExpansion(lsqrLoc, SourceMgr, LangOpts, &Loc));
112 EXPECT_EQ(Loc, macroRange.getBegin());
115 EXPECT_TRUE(Lexer::isAtEndOfMacroExpansion(rsqrLoc, SourceMgr, LangOpts, &Loc));
116 EXPECT_EQ(Loc, macroRange.getEnd());
/external/llvm/include/llvm/CodeGen/
H A DCallingConvLower.h48 /// Loc is either a stack offset or a register number.
49 unsigned Loc; member in class:llvm::CCValAssign
72 Ret.Loc = RegNo;
95 Ret.Loc = Offset;
121 unsigned getLocReg() const { assert(isRegLoc()); return Loc; }
122 unsigned getLocMemOffset() const { assert(isMemLoc()); return Loc; }
H A DGCMetadata.h63 DebugLoc Loc; member in struct:llvm::GCPoint
66 : Kind(K), Label(L), Loc(DL) {}
/external/llvm/lib/VMCore/
H A DDebugLoc.cpp118 DILocation Loc(N);
119 MDNode *Scope = Loc.getScope();
121 return get(Loc.getLineNumber(), Loc.getColumnNumber(), Scope,
122 Loc.getOrigLocation());
/external/clang/lib/Sema/
H A DAnalysisBasedWarnings.cpp452 SourceLocation Loc = S.PP.getLocForEndOfToken(VD->getLocEnd());
454 S.Diag(Loc, diag::note_var_fixit_add_initialization) << VD->getDeclName()
455 << FixItHint::CreateInsertion(Loc, Init);
1002 void warnLockMismatch(unsigned DiagID, Name LockName, SourceLocation Loc) { argument
1005 if (!Loc.isValid())
1006 Loc = FunLocation;
1007 PartialDiagnosticAt Warning(Loc, S.PDiag(DiagID) << LockName);
1030 void handleInvalidLockExp(SourceLocation Loc) { argument
1031 PartialDiagnosticAt Warning(Loc,
1032 S.PDiag(diag::warn_cannot_resolve_lock) << Loc);
1035 handleUnmatchedUnlock(Name LockName, SourceLocation Loc) argument
1039 handleDoubleLock(Name LockName, SourceLocation Loc) argument
1079 handleNoMutexHeld(const NamedDecl *D, ProtectedOperationKind POK, AccessKind AK, SourceLocation Loc) argument
1091 handleMutexNotHeld(const NamedDecl *D, ProtectedOperationKind POK, Name LockName, LockKind LK, SourceLocation Loc, Name *PossibleMatch) argument
1130 handleFunExcludesLock(Name FunName, Name LockName, SourceLocation Loc) argument
[all...]
H A DSema.cpp830 SourceLocation Loc = Diags.getCurrentDiagLoc(); local
848 Diag(Loc, diag::warn_cxx98_compat_sfinae_access_control);
893 Sema::Diag(SourceLocation Loc, const PartialDiagnostic& PD) { argument
894 SemaDiagnosticBuilder Builder(Diag(Loc, PD.getDiagID()));
988 Diag(D.Loc, D.PD);
1061 SourceLocation Loc = this->Loc; local
1062 if (!Loc.isValid() && TheDecl) Loc = TheDecl->getLocation();
1063 if (Loc
1189 notePlausibleOverloads(Sema &S, SourceLocation Loc, const UnresolvedSetImpl &Overloads, bool (*IsPlausibleResult)(QualType)) argument
1221 SourceLocation Loc = E.get()->getExprLoc(); local
[all...]
H A DSemaDeclCXX.cpp1296 /// otherwise. Loc is the location where this routine should point to
1303 SourceLocation Loc, SourceRange Range,
1320 switch (CheckBaseClassAccess(Loc, Base, Derived, Paths.front(),
1355 Diag(Loc, AmbigiousBaseConvID)
1362 SourceLocation Loc, SourceRange Range,
1369 Loc, Range, DeclarationName(),
1502 SourceLocation Loc = NameInfo.getLoc(); local
1505 if (Loc.isInvalid())
1506 Loc = D.getLocStart();
1557 Diag(Loc, dia
1300 CheckDerivedToBaseConversion(QualType Derived, QualType Base, unsigned InaccessibleBaseID, unsigned AmbigiousBaseConvID, SourceLocation Loc, SourceRange Range, DeclarationName Name, CXXCastPath *BasePath) argument
1361 CheckDerivedToBaseConversion(QualType Derived, QualType Base, SourceLocation Loc, SourceRange Range, CXXCastPath *BasePath, bool IgnoreAccess) argument
3488 RequireNonAbstractType(SourceLocation Loc, QualType T, unsigned DiagID, AbstractDiagSelID SelID) argument
3498 diagnose(Sema &S, SourceLocation Loc, QualType T) argument
3510 RequireNonAbstractType(SourceLocation Loc, QualType T, TypeDiagnoser &Diagnoser) argument
3994 computeImplicitExceptionSpec(Sema &S, SourceLocation Loc, CXXMethodDecl *MD) argument
4025 EvaluateImplicitExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) argument
4247 SourceLocation Loc; member in struct:__anon198::SpecialMemberDeletionInfo
5052 SourceLocation Loc; local
5341 SourceLocation Loc = II ? IdentLoc : LBrace; local
5610 LookupStdInitializerList(Sema &S, SourceLocation Loc) argument
5644 BuildStdInitializerList(QualType Element, SourceLocation Loc) argument
6740 ComputeDefaultedDefaultCtorExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) argument
6892 SourceLocation Loc = Constructor->getLocation(); local
7208 SourceLocation Loc = Destructor->getLocation(); local
7292 BuildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T, Expr *To, Expr *From, bool CopyingBaseSubobject, bool Copying, unsigned Depth = 0) argument
7700 SourceLocation Loc = CopyAssignOperator->getLocation(); local
8238 SourceLocation Loc = MoveAssignOperator->getLocation(); local
9150 CompleteConstructorCall(CXXConstructorDecl *Constructor, MultiExprArg ArgsPtr, SourceLocation Loc, SmallVectorImpl<Expr*> &ConvertedArgs, bool AllowExplicit) argument
9622 BuildExceptionDeclaration(Scope *S, TypeSourceInfo *TInfo, SourceLocation StartLoc, SourceLocation Loc, IdentifierInfo *Name) argument
9843 CheckFriendTypeDecl(SourceLocation Loc, SourceLocation FriendLoc, TypeSourceInfo *TSInfo) argument
10042 SourceLocation Loc = DS.getLocStart(); local
10116 SourceLocation Loc = D.getIdentifierLoc(); local
10741 MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class, bool DefinitionRequired) argument
10791 SourceLocation Loc = VTableUses[I].second; local
10872 MarkVirtualMemberExceptionSpecsNeeded(SourceLocation Loc, const CXXRecordDecl *RD) argument
10880 MarkVirtualMembersReferenced(SourceLocation Loc, const CXXRecordDecl *RD) argument
[all...]
H A DSemaStmt.cpp103 SourceLocation Loc; local
110 Loc = Op->getOperatorLoc();
118 Loc = Op->getOperatorLoc();
128 if (Loc.isMacroID())
131 S.Diag(Loc, diag::warn_unused_comparison)
138 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
139 << FixItHint::CreateReplacement(Loc, "|=");
141 S.Diag(Loc, diag::note_equality_comparison_to_assign)
142 << FixItHint::CreateReplacement(Loc, "=");
157 SourceLocation Loc; local
420 ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &Val, unsigned NewWidth, bool NewSign, SourceLocation Loc, unsigned DiagID) argument
543 diagnoseNotInt(Sema &S, SourceLocation Loc, QualType T) argument
548 diagnoseIncomplete(Sema &S, SourceLocation Loc, QualType T) argument
554 diagnoseExplicitConv(Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) argument
566 diagnoseAmbiguous(Sema &S, SourceLocation Loc, QualType T) argument
577 diagnoseConversion(Sema &S, SourceLocation Loc, QualType T, QualType ConvTy) argument
1561 FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, SourceLocation Loc, int diag) argument
1620 BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type, const char *Name) argument
2755 ActOnSEHExceptBlock(SourceLocation Loc, Expr *FilterExpr, Stmt *Block) argument
2770 ActOnSEHFinallyBlock(SourceLocation Loc, Stmt *Block) argument
[all...]
/external/clang/include/clang/Lex/
H A DLiteralSupport.h52 SourceLocation Loc, Preprocessor &PP);
144 SourceLocation Loc, Preprocessor &PP,
235 void DiagnoseLexingError(SourceLocation Loc);
/external/clang/unittests/Tooling/
H A DCommentHandlerTest.cpp37 virtual bool HandleComment(Preprocessor &PP, SourceRange Loc) { argument
40 SourceLocation Start = Loc.getBegin();
43 SM.getCharacterData(Loc.getEnd()));
/external/llvm/include/llvm/MC/
H A DMCInst.h152 SMLoc Loc; member in class:llvm::MCInst
160 void setLoc(SMLoc loc) { Loc = loc; }
161 SMLoc getLoc() const { return Loc; }
/external/llvm/lib/Transforms/Scalar/
H A DDeadStoreElimination.cpp175 AliasAnalysis::Location Loc = AA.getLocationForDest(MI); local
179 if (Loc.Size == AliasAnalysis::UnknownSize && AA.getTargetData() == 0)
181 return Loc;
501 AliasAnalysis::Location Loc = getLocForWrite(Inst, *AA); local
504 if (Loc.Ptr == 0)
509 // skip any instructions that 'Loc' clearly doesn't interact with. If we
522 // completely obliterated by the store to 'Loc', and c) which we know that
525 !isPossibleSelfRead(Inst, Loc, DepWrite, *AA)) {
527 OverwriteResult OR = isOverwrite(Loc, DepLoc, *AA,
582 // Can't look past this instruction if it might read 'Loc'
619 AliasAnalysis::Location Loc = AliasAnalysis::Location(F->getOperand(0)); local
[all...]
/external/clang/include/clang/Serialization/
H A DASTBitCodes.h168 unsigned Loc; member in struct:clang::serialization::DeclOffset
172 DeclOffset() : Loc(0), BitOffset(0) { }
173 DeclOffset(SourceLocation Loc, uint32_t BitOffset) argument
174 : Loc(Loc.getRawEncoding()),
177 Loc = L.getRawEncoding();
/external/clang/lib/Rewrite/Frontend/
H A DInclusionRewriter.cpp50 virtual void FileChanged(SourceLocation Loc, FileChangeReason Reason,
74 const FileChange *FindFileChangeLocation(SourceLocation Loc) const;
121 void InclusionRewriter::FileChanged(SourceLocation Loc, argument
130 LastInsertedFileChange->second.Id = FullSourceLoc(Loc, SM).getFileID();
170 InclusionRewriter::FindFileChangeLocation(SourceLocation Loc) const {
171 FileChangeMap::const_iterator I = FileChanges.find(Loc.getRawEncoding());
/external/clang/include/clang/AST/
H A DASTImporter.h251 DiagnosticBuilder ToDiag(SourceLocation Loc, unsigned DiagID);
254 DiagnosticBuilder FromDiag(SourceLocation Loc, unsigned DiagID);
/external/clang/include/clang/Sema/
H A DOverload.h746 SourceLocation Loc; member in class:clang::OverloadCandidateSet
755 OverloadCandidateSet(SourceLocation Loc) : Loc(Loc), NumInlineSequences(0){} argument
758 SourceLocation getLocation() const { return Loc; }
804 OverloadingResult BestViableFunction(Sema &S, SourceLocation Loc,
812 SourceLocation Loc = SourceLocation());
818 SourceLocation Loc,
/external/clang/lib/StaticAnalyzer/Checkers/
H A DCheckerDocumentation.cpp120 /// \param Loc The value of the location (pointer).
125 void checkLocation(SVal Loc, bool IsLoad, const Stmt *S, argument
130 /// \param Loc The value of the location (pointer).
131 /// \param Val The value which will be stored at the location Loc.
135 void checkBind(SVal Loc, SVal Val, const Stmt *S, CheckerContext &) const {} argument
/external/clang/tools/c-index-test/
H A Dc-index-test.c610 CXSourceLocation Loc; local
614 Loc = clang_getCursorLocation(Ovl);
615 clang_getSpellingLocation(Loc, 0, &line, &column, 0);
620 CXSourceLocation Loc = clang_getCursorLocation(Referenced); local
621 clang_getSpellingLocation(Loc, 0, &line, &column, 0);
722 CXSourceLocation Loc = clang_getCursorLocation(SpecializationOf); local
724 clang_getSpellingLocation(Loc, 0, &line, &column, 0);
737 CXSourceLocation Loc = clang_getCursorLocation(overridden[I]); local
738 clang_getSpellingLocation(Loc, 0, &line, &column, 0);
788 CXSourceLocation Loc local
924 CXSourceLocation Loc = clang_getCursorLocation(Cursor); local
958 CXSourceLocation Loc; local
1860 unsigned NumLocations = 0, Loc; local
1996 unsigned NumLocations = 0, Loc; local
[all...]
/external/llvm/lib/Analysis/
H A DBasicAliasAnalysis.cpp460 const Location &Loc);
470 virtual bool pointsToConstantMemory(const Location &Loc, bool OrLocal);
546 BasicAliasAnalysis::pointsToConstantMemory(const Location &Loc, bool OrLocal) { argument
551 Worklist.push_back(Loc.Ptr);
556 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
570 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
588 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
597 return AliasAnalysis::pointsToConstantMemory(Loc, OrLocal);
654 const Location &Loc) {
655 assert(notDifferentParent(CS.getInstruction(), Loc
653 getModRefInfo(ImmutableCallSite CS, const Location &Loc) argument
[all...]
/external/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h123 void Diag(SourceLocation Loc, unsigned DiagID);
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp26 virtual SVal evalCastFromLoc(Loc val, QualType castTy);
39 Loc lhs, Loc rhs, QualType resultTy);
41 Loc lhs, NonLoc rhs, QualType resultTy);
63 assert(isa<Loc>(&Val) || isa<NonLoc>(&Val));
64 return isa<Loc>(Val) ? evalCastFromLoc(cast<Loc>(Val), CastTy)
70 bool isLocType = Loc::isLocType(castTy);
118 SVal SimpleSValBuilder::evalCastFromLoc(Loc val, QualType castTy) {
126 if (Loc
[all...]
/external/llvm/include/llvm/Analysis/
H A DMemoryDependenceAnalysis.h370 void getNonLocalPointerDependency(const AliasAnalysis::Location &Loc,
398 MemDepResult getPointerDependencyFrom(const AliasAnalysis::Location &Loc,
422 const AliasAnalysis::Location &Loc,
427 MemDepResult GetNonLocalInfoForBlock(const AliasAnalysis::Location &Loc,
/external/clang/lib/Edit/
H A DEditedSource.cpp246 SourceLocation Loc = SM.getLocForStartOfFile(offs.getFID()); local
247 Loc = Loc.getLocWithOffset(offs.getOffset());
248 assert(Loc.isFileID());
249 CharSourceRange range = CharSourceRange::getCharRange(Loc,
250 Loc.getLocWithOffset(len));
261 receiver.insert(Loc, text);

Completed in 356 milliseconds

1234567891011>>