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

1234567891011>>

/external/clang/lib/Sema/
H A DSema.cpp47 SourceLocation Sema::getLocForEndOfToken(SourceLocation Loc, unsigned Offset) { argument
48 return Lexer::getLocForEndOfToken(Loc, Offset, SourceMgr, LangOpts);
933 SourceLocation Loc = Diags.getCurrentDiagLoc(); local
951 Diag(Loc, diag::warn_cxx98_compat_sfinae_access_control);
996 Sema::Diag(SourceLocation Loc, const PartialDiagnostic& PD) { argument
997 SemaDiagnosticBuilder Builder(Diag(Loc, PD.getDiagID()));
1096 Diag(PUD.Loc, PUD.PD);
1200 SourceLocation Loc = this->Loc; local
1201 if (!Loc
1354 notePlausibleOverloads(Sema &S, SourceLocation Loc, const UnresolvedSetImpl &Overloads, bool (*IsPlausibleResult)(QualType)) argument
1386 SourceLocation Loc = E.get()->getExprLoc(); local
[all...]
H A DSemaObjCProperty.cpp275 SourceLocation LParenLoc, SourceLocation &Loc) {
296 Loc = Tok.getLocation();
1379 SourceLocation Loc) {
1392 else if (CheckAssignmentConstraints(Loc, GetterType, PropertyIvarType)
1394 Diag(Loc, diag::error_property_accessor_type)
1409 Diag(Loc, diag::warn_accessor_property_type_mismatch)
1947 SourceLocation Loc = redeclaredProperty ? local
1951 GetterMethod = ObjCMethodDecl::Create(Context, Loc, Loc,
1971 Loc));
274 LocPropertyAttribute( ASTContext &Context, const char *attrName, SourceLocation LParenLoc, SourceLocation &Loc) argument
1377 DiagnosePropertyAccessorMismatch(ObjCPropertyDecl *property, ObjCMethodDecl *GetterMethod, SourceLocation Loc) argument
1997 SourceLocation Loc = redeclaredProperty ? local
2076 CheckObjCPropertyAttributes(Decl *PDecl, SourceLocation Loc, unsigned &Attributes, bool propertyInPrimaryClass) argument
[all...]
H A DSemaStmt.cpp123 SourceLocation Loc; local
131 Loc = Op->getOperatorLoc();
150 Loc = Op->getOperatorLoc();
160 if (S.SourceMgr.isMacroBodyExpansion(Loc))
163 S.Diag(Loc, diag::warn_unused_comparison)
170 S.Diag(Loc, diag::note_inequality_comparison_to_or_assign)
171 << FixItHint::CreateReplacement(Loc, "|=");
173 S.Diag(Loc, diag::note_equality_comparison_to_assign)
174 << FixItHint::CreateReplacement(Loc, "=");
198 SourceLocation Loc; local
481 ConvertIntegerToTypeWarnOnOverflow(llvm::APSInt &Val, unsigned NewWidth, bool NewSign, SourceLocation Loc, unsigned DiagID) argument
1766 SourceLocation Loc = local
1805 FinishForRangeVarDecl(Sema &SemaRef, VarDecl *Decl, Expr *Init, SourceLocation Loc, int DiagID) argument
1863 BuildForRangeVarDecl(Sema &SemaRef, SourceLocation Loc, QualType Type, const char *Name) argument
3259 ActOnSEHExceptBlock(SourceLocation Loc, Expr *FilterExpr, Stmt *Block) argument
3274 ActOnSEHFinallyBlock(SourceLocation Loc, Stmt *Block) argument
3281 ActOnSEHLeaveStmt(SourceLocation Loc, Scope *CurScope) argument
3315 CreateCapturedStmtRecordDecl(CapturedDecl *&CD, SourceLocation Loc, unsigned NumParams) argument
3363 ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope, CapturedRegionKind Kind, unsigned NumParams) argument
3390 ActOnCapturedRegionStart(SourceLocation Loc, Scope *CurScope, CapturedRegionKind Kind, ArrayRef<CapturedParamNameType> Params) argument
[all...]
H A DSemaTemplateInstantiate.cpp643 SourceLocation Loc; member in class:__anon18104::TemplateInstantiator
651 SourceLocation Loc,
653 : inherited(SemaRef), TemplateArgs(TemplateArgs), Loc(Loc),
664 SourceLocation getBaseLocation() { return Loc; }
671 void setBase(SourceLocation Loc, DeclarationName Entity) { argument
672 this->Loc = Loc;
726 Decl *TransformDecl(SourceLocation Loc, Decl *D);
738 Decl *TransformDefinition(SourceLocation Loc, Dec
649 TemplateInstantiator(Sema &SemaRef, const MultiLevelTemplateArgumentList &TemplateArgs, SourceLocation Loc, DeclarationName Entity) argument
886 TransformDecl(SourceLocation Loc, Decl *D) argument
921 TransformDefinition(SourceLocation Loc, Decl *D) argument
931 TransformFirstQualifierInScope(NamedDecl *D, SourceLocation Loc) argument
1209 RebuildParmVarDeclRefExpr(ParmVarDecl *PD, SourceLocation Loc) argument
1462 SubstType(TypeSourceInfo *T, const MultiLevelTemplateArgumentList &Args, SourceLocation Loc, DeclarationName Entity) argument
1478 SubstType(TypeLoc TL, const MultiLevelTemplateArgumentList &Args, SourceLocation Loc, DeclarationName Entity) argument
1509 SubstType(QualType T, const MultiLevelTemplateArgumentList &TemplateArgs, SourceLocation Loc, DeclarationName Entity) argument
1560 SubstFunctionDeclType(TypeSourceInfo *T, const MultiLevelTemplateArgumentList &Args, SourceLocation Loc, DeclarationName Entity, CXXRecordDecl *ThisContext, unsigned ThisTypeQuals) argument
1688 SubstParmTypes(SourceLocation Loc, ParmVarDecl **Params, unsigned NumParams, const MultiLevelTemplateArgumentList &TemplateArgs, SmallVectorImpl<QualType> &ParamTypes, SmallVectorImpl<ParmVarDecl *> *OutParams) argument
2633 SubstTemplateName(NestedNameSpecifierLoc QualifierLoc, TemplateName Name, SourceLocation Loc, const MultiLevelTemplateArgumentList &TemplateArgs) argument
[all...]
H A DSemaDeclCXX.cpp1694 /// otherwise. Loc is the location where this routine should point to
1701 SourceLocation Loc, SourceRange Range,
1718 switch (CheckBaseClassAccess(Loc, Base, Derived, Paths.front(),
1754 Diag(Loc, AmbigiousBaseConvID)
1762 SourceLocation Loc, SourceRange Range,
1769 Loc, Range, DeclarationName(),
1937 SourceLocation Loc = NameInfo.getLoc(); local
1940 if (Loc.isInvalid())
1941 Loc = D.getLocStart();
1985 Diag(Loc, dia
1698 CheckDerivedToBaseConversion(QualType Derived, QualType Base, unsigned InaccessibleBaseID, unsigned AmbigiousBaseConvID, SourceLocation Loc, SourceRange Range, DeclarationName Name, CXXCastPath *BasePath) argument
1761 CheckDerivedToBaseConversion(QualType Derived, QualType Base, SourceLocation Loc, SourceRange Range, CXXCastPath *BasePath, bool IgnoreAccess) argument
4135 RequireNonAbstractType(SourceLocation Loc, QualType T, unsigned DiagID, AbstractDiagSelID SelID) argument
4157 RequireNonAbstractType(SourceLocation Loc, QualType T, TypeDiagnoser &Diagnoser) argument
4791 computeImplicitExceptionSpec(Sema &S, SourceLocation Loc, CXXMethodDecl *MD) argument
4828 EvaluateImplicitExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) argument
5075 SourceLocation Loc; member in struct:__anon18035::SpecialMemberDeletionInfo
6372 SourceLocation Loc; local
6657 DiagnoseNamespaceInlineMismatch(Sema &S, SourceLocation KeywordLoc, SourceLocation Loc, IdentifierInfo *II, bool *IsInline, NamespaceDecl *PrevNS) argument
6706 SourceLocation Loc = II ? IdentLoc : LBrace; local
6957 LookupStdInitializerList(Sema &S, SourceLocation Loc) argument
6991 BuildStdInitializerList(QualType Element, SourceLocation Loc) argument
8242 ComputeDefaultedDefaultCtorExceptionSpec(SourceLocation Loc, CXXMethodDecl *MD) argument
8488 SourceLocation Loc = Constructor->getLocEnd().isValid() local
8825 SourceLocation Loc = Constructor->getLocation(); local
8952 SourceLocation Loc = Destructor->getLocEnd().isValid() local
9141 buildMemcpyForAssignmentOp(Sema &S, SourceLocation Loc, QualType T, const ExprBuilder &ToB, const ExprBuilder &FromB) argument
9220 buildSingleCopyAssignRecursively(Sema &S, SourceLocation Loc, QualType T, const ExprBuilder &To, const ExprBuilder &From, bool CopyingBaseSubobject, bool Copying, unsigned Depth = 0) argument
9410 buildSingleCopyAssign(Sema &S, SourceLocation Loc, QualType T, const ExprBuilder &To, const ExprBuilder &From, bool CopyingBaseSubobject, bool Copying) argument
9654 SourceLocation Loc = CopyAssignOperator->getLocEnd().isValid() local
10061 SourceLocation Loc = MoveAssignOperator->getLocEnd().isValid() local
10378 SourceLocation Loc = CopyConstructor->getLocEnd().isValid() local
10536 SourceLocation Loc = MoveConstructor->getLocEnd().isValid() local
10792 CompleteConstructorCall(CXXConstructorDecl *Constructor, MultiExprArg ArgsPtr, SourceLocation Loc, SmallVectorImpl<Expr*> &ConvertedArgs, bool AllowExplicit, bool IsListInitialization) argument
11306 BuildExceptionDeclaration(Scope *S, TypeSourceInfo *TInfo, SourceLocation StartLoc, SourceLocation Loc, IdentifierInfo *Name) argument
11746 SourceLocation Loc = DS.getLocStart(); local
11820 SourceLocation Loc = D.getIdentifierLoc(); local
12517 MarkVTableUsed(SourceLocation Loc, CXXRecordDecl *Class, bool DefinitionRequired) argument
12580 SourceLocation Loc = VTableUses[I].second; local
12654 MarkVirtualMemberExceptionSpecsNeeded(SourceLocation Loc, const CXXRecordDecl *RD) argument
12661 MarkVirtualMembersReferenced(SourceLocation Loc, const CXXRecordDecl *RD) argument
13071 SourceLocation Loc = D.getIdentifierLoc(); local
[all...]
H A DSemaExprObjC.cpp149 static bool validateBoxingMethod(Sema &S, SourceLocation Loc, argument
154 S.Diag(Loc, diag::err_undeclared_boxing_method) << Sel << Class->getName();
161 S.Diag(Loc, diag::err_objc_literal_method_sig)
173 static ObjCMethodDecl *getNSNumberFactoryMethod(Sema &S, SourceLocation Loc, argument
182 S.Diag(Loc, diag::err_invalid_nsnumber_type)
203 Loc, Sema::LookupOrdinaryName);
214 S.Diag(Loc, diag::err_undeclared_nsnumber);
218 S.Diag(Loc, diag::err_undeclared_nsnumber);
248 if (!validateBoxingMethod(S, Loc, S.NSNumberDecl, Sel, Method))
1117 ObjCMethodDecl *Sema::tryCaptureObjCSelf(SourceLocation Loc) { argument
1505 SourceLocation Loc = RExpr->getLocStart(); local
1976 BuildClassMessageImplicit(QualType ReceiverType, bool isSuperReceiver, SourceLocation Loc, Selector Sel, ObjCMethodDecl *Method, MultiExprArg Args) argument
2075 SourceLocation Loc = SuperLoc.isValid()? SuperLoc local
2202 BuildInstanceMessageImplicit(Expr *Receiver, QualType ReceiverType, SourceLocation Loc, Selector Sel, ObjCMethodDecl *Method, MultiExprArg Args) argument
2253 SourceLocation Loc = SuperLoc.isValid()? SuperLoc : Receiver->getLocStart(); local
2698 SourceLocation Loc = OSE->getAtLoc(); local
3503 checkObjCBridgeRelatedComponents(SourceLocation Loc, QualType DestType, QualType SrcType, ObjCInterfaceDecl *&RelatedClass, ObjCMethodDecl *&ClassMethod, ObjCMethodDecl *&InstanceMethod, TypedefNameDecl *&TDNDecl, bool CfToNs) argument
3569 CheckObjCBridgeRelatedConversions(SourceLocation Loc, QualType DestType, QualType SrcType, Expr *&SrcExpr) argument
[all...]
/external/clang/include/clang/AST/
H A DCommentSema.h64 DiagnosticBuilder Diag(SourceLocation Loc, unsigned DiagID) { argument
65 return Diags.Report(Loc, DiagID);
159 VerbatimBlockComment *actOnVerbatimBlockStart(SourceLocation Loc,
162 VerbatimBlockLineComment *actOnVerbatimBlockLine(SourceLocation Loc,
H A DExpr.h233 bool isUnusedResultAWarning(const Expr *&WarnExpr, SourceLocation &Loc,
293 /// \param Loc [in,out] - A source location which *may* be filled
297 isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc = nullptr) const;
384 /// \param Loc A source location that might be filled with a relevant location
386 Classification ClassifyModifiable(ASTContext &Ctx, SourceLocation &Loc) const{
387 return ClassifyImpl(Ctx, &Loc);
425 Classification ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const;
480 /// valid i-c-e, return false and fill in Loc (if specified) with the location
486 SourceLocation *Loc = nullptr,
489 SourceLocation *Loc
815 SourceLocation Loc; member in class:clang::OpaqueValueExpr
818 OpaqueValueExpr(SourceLocation Loc, QualType T, ExprValueKind VK, ExprObjectKind OK = OK_Ordinary, Expr *SourceExpr = nullptr) argument
897 SourceLocation Loc; member in class:clang::DeclRefExpr
1180 SourceLocation Loc; member in class:clang::PredefinedExpr
1265 SourceLocation Loc; member in class:clang::IntegerLiteral
1313 SourceLocation Loc; member in class:clang::CharacterLiteral
1350 SourceLocation Loc; member in class:clang::FloatingLiteral
1498 Create(const ASTContext &C, StringRef Str, StringKind Kind, bool Pascal, QualType Ty, SourceLocation Loc) argument
1633 setLParen(SourceLocation Loc) argument
1637 setRParen(SourceLocation Loc) argument
1664 SourceLocation Loc; member in class:clang::StringLiteral::UnaryOperator
3640 GNUNullExpr(QualType Ty, SourceLocation Loc) argument
3877 setLBraceLoc(SourceLocation Loc) argument
3879 setRBraceLoc(SourceLocation Loc) argument
[all...]
H A DTemplateBase.h533 void setLAngleLoc(SourceLocation Loc) { LAngleLoc = Loc; } argument
534 void setRAngleLoc(SourceLocation Loc) { RAngleLoc = Loc; } argument
550 void addArgument(const TemplateArgumentLoc &Loc) { argument
551 Arguments.push_back(Loc);
/external/clang/include/clang/Rewrite/Frontend/
H A DFixItRewriter.h123 void Diag(SourceLocation Loc, unsigned DiagID);
/external/clang/lib/ARCMigrate/
H A DTransProtectedScope.cpp190 bool isInRange(SourceLocation Loc, SourceRange R) { argument
191 if (Loc.isInvalid())
193 return !SM.isBeforeInTranslationUnit(Loc, R.getBegin()) &&
194 SM.isBeforeInTranslationUnit(Loc, R.getEnd());
/external/clang/tools/libclang/
H A DCIndexer.h102 /// \brief If \c Loc resides inside the definition of \c MI and it points at
106 SourceLocation Loc,
/external/llvm/include/llvm/Analysis/
H A DMemoryDependenceAnalysis.h371 void getNonLocalPointerDependency(const AliasAnalysis::Location &Loc,
401 MemDepResult getPointerDependencyFrom(const AliasAnalysis::Location &Loc,
426 const AliasAnalysis::Location &Loc,
431 MemDepResult GetNonLocalInfoForBlock(const AliasAnalysis::Location &Loc,
/external/clang/lib/AST/
H A DASTImporter.cpp83 SourceLocation &Loc);
241 DiagnosticBuilder Diag1(SourceLocation Loc, unsigned DiagID) { argument
246 return C1.getDiagnostics().Report(Loc, DiagID);
249 DiagnosticBuilder Diag2(SourceLocation Loc, unsigned DiagID) { argument
254 return C2.getDiagnostics().Report(Loc, DiagID);
1811 SourceLocation &Loc) {
1830 Loc = Importer.Import(D->getLocation());
1866 // NOTE: To.Name and To.Loc are already imported.
1882 SourceLocation Loc = From.getCXXLiteralOperatorNameLoc(); local
1883 To.setCXXLiteralOperatorNameLoc(Importer.Import(Loc));
1808 ImportDeclParts(NamedDecl *D, DeclContext *&DC, DeclContext *&LexicalDC, DeclarationName &Name, SourceLocation &Loc) argument
2240 SourceLocation Loc; local
2308 SourceLocation Loc; local
2382 SourceLocation Loc; local
2467 SourceLocation Loc; local
2593 SourceLocation Loc; local
2649 SourceLocation Loc; local
2855 SourceLocation Loc; local
2911 SourceLocation Loc; local
2975 SourceLocation Loc; local
3025 SourceLocation Loc; local
3201 SourceLocation Loc; local
3312 SourceLocation Loc; local
3436 SourceLocation Loc; local
3581 SourceLocation Loc; local
3736 SourceLocation Loc; local
3967 SourceLocation Loc; local
4155 SourceLocation Loc; local
5059 ToDiag(SourceLocation Loc, unsigned DiagID) argument
5067 FromDiag(SourceLocation Loc, unsigned DiagID) argument
[all...]
H A DExprClassification.cpp35 Cl::Kinds Kind, SourceLocation &Loc);
37 Cl Expr::ClassifyImpl(ASTContext &Ctx, SourceLocation *Loc) const {
71 if (Loc)
72 modifiable = IsModifiable(Ctx, this, kind, *Loc);
571 Cl::Kinds Kind, SourceLocation &Loc) {
580 Loc = CE->getExprLoc();
648 Expr::isModifiableLvalue(ASTContext &Ctx, SourceLocation *Loc) const {
650 Classification VC = ClassifyModifiable(Ctx, Loc ? *Loc : dummy);
570 IsModifiable(ASTContext &Ctx, const Expr *E, Cl::Kinds Kind, SourceLocation &Loc) argument
H A DExprCXX.cpp488 return Loc;
498 SourceLocation End = Loc;
772 CXXDefaultArgExpr::Create(const ASTContext &C, SourceLocation Loc, argument
775 return new (Mem) CXXDefaultArgExpr(CXXDefaultArgExprClass, Loc, Param,
779 CXXDefaultInitExpr::CXXDefaultInitExpr(const ASTContext &C, SourceLocation Loc, argument
786 Field(Field), Loc(Loc) {
828 SourceLocation Loc = getParenOrBraceRange().getEnd(); local
829 if (Loc.isInvalid() && getNumArgs())
830 Loc
834 Create(const ASTContext &C, QualType T, SourceLocation Loc, CXXConstructorDecl *D, bool Elidable, ArrayRef<Expr*> Args, bool HadMultipleCandidates, bool ListInitialization, bool ZeroInitialization, ConstructionKind ConstructKind, SourceRange ParenOrBraceRange) argument
850 CXXConstructExpr(const ASTContext &C, StmtClass SC, QualType T, SourceLocation Loc, CXXConstructorDecl *D, bool elidable, ArrayRef<Expr*> args, bool HadMultipleCandidates, bool ListInitialization, bool ZeroInitialization, ConstructionKind ConstructKind, SourceRange ParenOrBraceRange) argument
888 LambdaCapture(SourceLocation Loc, bool Implicit, LambdaCaptureKind Kind, VarDecl *Var, SourceLocation EllipsisLoc) argument
1482 TypeTraitExpr(QualType T, SourceLocation Loc, TypeTrait Kind, ArrayRef<TypeSourceInfo *> Args, SourceLocation RParenLoc, bool Value) argument
1511 Create(const ASTContext &C, QualType T, SourceLocation Loc, TypeTrait Kind, ArrayRef<TypeSourceInfo *> Args, SourceLocation RParenLoc, bool Value) argument
[all...]
/external/clang/lib/CodeGen/
H A DCGDebugInfo.h207 void CreateLexicalBlock(SourceLocation Loc);
217 void setLocation(SourceLocation Loc);
225 void EmitLocation(CGBuilderTy &Builder, SourceLocation Loc,
230 /// \param Loc The location of the function header.
233 SourceLocation Loc, SourceLocation ScopeLoc,
242 void EmitLexicalBlockStart(CGBuilderTy &Builder, SourceLocation Loc);
246 void EmitLexicalBlockEnd(CGBuilderTy &Builder, SourceLocation Loc);
294 SourceLocation Loc);
335 llvm::DIFile getOrCreateFile(SourceLocation Loc);
400 unsigned getLineNumber(SourceLocation Loc);
[all...]
/external/clang/lib/Frontend/
H A DDependencyFile.cpp38 void FileChanged(SourceLocation Loc, FileChangeReason Reason,
48 SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(Loc)));
157 void FileChanged(SourceLocation Loc, FileChangeReason Reason,
229 void DFGImpl::FileChanged(SourceLocation Loc, argument
242 SM.getFileEntryForID(SM.getFileID(SM.getExpansionLoc(Loc)));
/external/llvm/lib/IR/
H A DDebugLoc.cpp138 DILocation Loc(N);
139 MDNode *Scope = Loc.getScope();
141 return get(Loc.getLineNumber(), Loc.getColumnNumber(), Scope,
142 Loc.getOrigLocation());
/external/clang/lib/StaticAnalyzer/Core/
H A DSimpleSValBuilder.cpp26 SVal evalCastFromLoc(Loc val, QualType castTy) override;
39 Loc lhs, Loc rhs, QualType resultTy) override;
41 Loc lhs, NonLoc rhs, QualType resultTy) override;
63 assert(Val.getAs<Loc>() || Val.getAs<NonLoc>());
64 return Val.getAs<Loc>() ? evalCastFromLoc(Val.castAs<Loc>(), CastTy)
70 bool isLocType = Loc::isLocType(castTy);
124 SVal SimpleSValBuilder::evalCastFromLoc(Loc val, QualType castTy) {
132 if (Loc
[all...]
/external/clang/lib/Parse/
H A DParseExprCXX.cpp795 SourceLocation Loc; local
802 Loc = ConsumeToken();
818 Loc = ConsumeToken();
950 Loc, Kind == LCK_ByRef, Id, InitExpr);
954 Intro.addCapture(Kind, Loc, Id, EllipsisLoc, Init, InitCaptureParsedType);
1586 /// \param Loc The location of the start of the statement that requires this
1595 SourceLocation Loc,
1618 = Actions.ActOnBooleanCondition(getCurScope(), Loc, ExprOut.get());
1633 SourceLocation Loc; local
1634 ExprResult AsmLabel(ParseSimpleAsm(&Loc));
1593 ParseCXXCondition(ExprResult &ExprOut, Decl *&DeclOut, SourceLocation Loc, bool ConvertToBoolean) argument
1722 SourceLocation Loc = Tok.getLocation(); local
2791 SourceLocation Loc = ConsumeToken(); local
2848 SourceLocation Loc = ConsumeToken(); local
2891 SourceLocation Loc = ConsumeToken(); local
[all...]
/external/llvm/lib/MC/MCParser/
H A DDarwinAsmParser.cpp433 bool DarwinAsmParser::parseDirectiveIndirectSymbol(StringRef, SMLoc Loc) { argument
440 return Error(Loc, "indirect symbol not in a symbol pointer or stub "
547 SMLoc Loc = getLexer().getLoc(); local
551 return Error(Loc, "expected identifier after '.section' directive");
580 return Error(Loc, ErrorStr.c_str());
593 bool DarwinAsmParser::parseDirectivePushSection(StringRef S, SMLoc Loc) { argument
596 if (parseDirectiveSection(S, Loc)) {
840 SMLoc Loc = getParser().getTok().getLoc(); local
849 return Error(Loc, "unknown region type in '.data_region' directive");
/external/clang/lib/Lex/
H A DLiteralSupport.cpp80 FullSourceLoc Loc, unsigned CharWidth,
105 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
111 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
134 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
159 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
182 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
193 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
202 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
206 Diag(Diags, Features, Loc, ThisTokBegin, EscapeBegin, ThisTokBuf,
262 FullSourceLoc Loc, DiagnosticsEngin
77 ProcessCharEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, bool &HadError, FullSourceLoc Loc, unsigned CharWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument
259 ProcessUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, uint32_t &UcnVal, unsigned short &UcnLen, FullSourceLoc Loc, DiagnosticsEngine *Diags, const LangOptions &Features, bool in_char_string_literal = false) argument
340 FullSourceLoc Loc; local
366 EncodeUCNEscape(const char *ThisTokBegin, const char *&ThisTokBuf, const char *ThisTokEnd, char *&ResultBuf, bool &HadError, FullSourceLoc Loc, unsigned CharByteWidth, DiagnosticsEngine *Diags, const LangOptions &Features) argument
946 assert(C < radix && �); CharVal = C; OldVal = Val; Val *= RadixVal; OverflowOccurred |= Val.udiv(RadixVal) != OldVal; Val += CharVal; OverflowOccurred |= Val.ult(CharVal); } return OverflowOccurred; } llvm::APFloat::opStatus NumericLiteralParser::GetFloatValue(llvm::APFloat &Result) { using llvm::APFloat; unsigned n = std::min(SuffixBegin - ThisTokBegin, ThisTokEnd - ThisTokBegin); llvm::SmallString<16> Buffer; StringRef Str(ThisTokBegin, n); if (Str.find(�) != StringRef::npos) { Buffer.reserve(n); std::remove_copy_if(Str.begin(), Str.end(), std::back_inserter(Buffer), &isDigitSeparator); Str = Buffer; } return Result.convertFromString(Str, APFloat::rmNearestTiesToEven); } CharLiteralParser::CharLiteralParser(const char *begin, const char *end, SourceLocation Loc, Preprocessor &PP, tok::TokenKind kind) { HadError = false; Kind = kind; const char *TokBegin = begin; if (Kind != tok::char_constant) { ++begin; } assert(begin[0] == � && �); ++begin; if (end[-1] != �) { const char *UDSuffixEnd = end; do { --end; } while (end[-1] != �); expandUCNs(UDSuffixBuf, StringRef(end, UDSuffixEnd - end)); UDSuffixOffset = end - TokBegin; } assert(end != begin && �); --end; assert(PP.getTargetInfo().getCharWidth() == 8 && �); assert(PP.getTargetInfo().getIntWidth() <= 64 && (PP.getTargetInfo().getIntWidth() & 7) == 0 && �); assert(PP.getTargetInfo().getWCharWidth() <= 64 && �); SmallVector<uint32_t, 4> codepoint_buffer; codepoint_buffer.resize(end - begin); uint32_t *buffer_begin = &codepoint_buffer.front(); uint32_t *buffer_end = buffer_begin + codepoint_buffer.size(); uint32_t largest_character_for_kind; if (tok::wide_char_constant == Kind) { largest_character_for_kind = 0xFFFFFFFFu >> (32-PP.getTargetInfo().getWCharWidth()); } else if (tok::utf16_char_constant == Kind) { largest_character_for_kind = 0xFFFF; } else if (tok::utf32_char_constant == Kind) { largest_character_for_kind = 0x10FFFF; } else { largest_character_for_kind = 0x7Fu; } while (begin != end) { if (begin[0] != �) { char const *start = begin; do { ++begin; } while (begin != end && *begin != �); char const *tmp_in_start = start; uint32_t *tmp_out_start = buffer_begin; ConversionResult res = ConvertUTF8toUTF32(reinterpret_cast<UTF8 const **>(&start), reinterpret_cast<UTF8 const *>(begin), &buffer_begin, buffer_end, strictConversion); if (res != conversionOK) { bool NoErrorOnBadEncoding = isAscii(); unsigned Msg = diag::err_bad_character_encoding; if (NoErrorOnBadEncoding) Msg = diag::warn_bad_character_encoding; PP.Diag(Loc, Msg); if (NoErrorOnBadEncoding) { start = tmp_in_start; buffer_begin = tmp_out_start; for (; start != begin; ++start, ++buffer_begin) *buffer_begin = static_cast<uint8_t>(*start); } else { HadError = true; } } else { for (; tmp_out_start < buffer_begin; ++tmp_out_start) { if (*tmp_out_start > largest_character_for_kind) { HadError = true; PP.Diag(Loc, diag::err_character_too_large); } } } continue; } if (begin[1] == � || begin[1] == �) { unsigned short UcnLen = 0; if (!ProcessUCNEscape(TokBegin, begin, end, *buffer_begin, UcnLen, FullSourceLoc(Loc, PP.getSourceManager()), &PP.getDiagnostics(), PP.getLangOpts(), true)) { HadError = true; } else if (*buffer_begin > largest_character_for_kind) argument
[all...]
/external/clang/include/clang/Serialization/
H A DASTBitCodes.h181 unsigned Loc; member in struct:clang::serialization::DeclOffset
185 DeclOffset() : Loc(0), BitOffset(0) { }
186 DeclOffset(SourceLocation Loc, uint32_t BitOffset) argument
187 : Loc(Loc.getRawEncoding()),
190 Loc = L.getRawEncoding();
/external/clang/include/clang/StaticAnalyzer/Core/PathSensitive/
H A DProgramState.h209 ProgramStateRef bindLoc(Loc location,
217 ProgramStateRef killBinding(Loc LV) const;
257 Loc getLValue(const VarDecl *D, const LocationContext *LC) const;
259 Loc getLValue(const CompoundLiteralExpr *literal,
281 SVal getSVal(Loc LV, QualType T = QualType()) const;
284 SVal getRawSVal(Loc LV, QualType T= QualType()) const;
518 SVal ArrayToPointer(Loc Array, QualType ElementTy) {
653 if (Optional<Loc> L = LV.getAs<Loc>())
658 inline Loc ProgramStat
[all...]

Completed in 859 milliseconds

1234567891011>>