/external/llvm-project/clang/lib/ARCMigrate/ |
D | Transforms.cpp | 416 SourceLocation AttrLoc; in rewritePropertyAttribute() local 430 AttrLoc = tok.getLocation(); in rewritePropertyAttribute() 435 if (AttrLoc.isValid() && AfterTok.is(tok::unknown)) in rewritePropertyAttribute() 440 if (AttrLoc.isInvalid()) in rewritePropertyAttribute() 445 if (toAttr.empty() && AttrLoc.isValid() && AfterTok.isNot(tok::unknown)) { in rewritePropertyAttribute() 451 Pass.TA.remove(SourceRange(AttrLoc, AfterTok.getLocation())); in rewritePropertyAttribute() 453 Pass.TA.remove(SourceRange(BeforeTok.getLocation(), AttrLoc)); in rewritePropertyAttribute()
|
/external/clang/lib/ARCMigrate/ |
D | Transforms.cpp | 420 SourceLocation AttrLoc; in rewritePropertyAttribute() local 434 AttrLoc = tok.getLocation(); in rewritePropertyAttribute() 439 if (AttrLoc.isValid() && AfterTok.is(tok::unknown)) in rewritePropertyAttribute() 444 if (AttrLoc.isInvalid()) in rewritePropertyAttribute() 449 if (toAttr.empty() && AttrLoc.isValid() && AfterTok.isNot(tok::unknown)) { in rewritePropertyAttribute() 455 Pass.TA.remove(SourceRange(AttrLoc, AfterTok.getLocation())); in rewritePropertyAttribute() 457 Pass.TA.remove(SourceRange(BeforeTok.getLocation(), AttrLoc)); in rewritePropertyAttribute()
|
/external/compiler-rt/lib/ubsan/ |
D | ubsan_handlers.h | 136 SourceLocation AttrLoc; member 144 SourceLocation AttrLoc; member
|
D | ubsan_handlers.cc | 485 if (!Data->AttrLoc.isInvalid()) in handleNonNullReturn() 486 Diag(Data->AttrLoc, DL_Note, "returns_nonnull attribute specified here"); in handleNonNullReturn() 511 if (!Data->AttrLoc.isInvalid()) in handleNonNullArg() 512 Diag(Data->AttrLoc, DL_Note, "nonnull attribute specified here"); in handleNonNullArg()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaType.cpp | 2534 SourceLocation AttrLoc) { in BuildVectorType() argument 2541 Diag(AttrLoc, diag::err_attribute_invalid_vector_type) << CurType; in BuildVectorType() 2546 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType() 2551 Diag(AttrLoc, diag::err_attribute_argument_type) in BuildVectorType() 2558 return Context.getDependentVectorType(CurType, SizeExpr, AttrLoc, in BuildVectorType() 2564 Diag(AttrLoc, diag::err_attribute_size_too_large) in BuildVectorType() 2572 Diag(AttrLoc, diag::err_attribute_zero_size) in BuildVectorType() 2578 Diag(AttrLoc, diag::err_attribute_invalid_size) in BuildVectorType() 2584 Diag(AttrLoc, diag::err_attribute_size_too_large) in BuildVectorType() 2597 SourceLocation AttrLoc) { in BuildExtVectorType() argument [all …]
|
D | SemaDeclAttr.cpp | 1603 SourceLocation AttrLoc = TmpAttr.getLocation(); in AddAssumeAlignedAttr() local 1606 Diag(AttrLoc, diag::warn_attribute_return_pointers_refs_only) in AddAssumeAlignedAttr() 1615 Diag(AttrLoc, diag::err_attribute_argument_n_type) in AddAssumeAlignedAttr() 1619 Diag(AttrLoc, diag::err_attribute_argument_type) in AddAssumeAlignedAttr() 1626 Diag(AttrLoc, diag::err_alignment_not_power_of_two) in AddAssumeAlignedAttr() 1637 Diag(AttrLoc, diag::err_attribute_argument_n_type) in AddAssumeAlignedAttr() 1651 SourceLocation AttrLoc = CI.getLoc(); in AddAllocAlignAttr() local 1655 Diag(AttrLoc, diag::warn_attribute_return_pointers_refs_only) in AddAllocAlignAttr() 3756 SourceLocation AttrLoc = CI.getLoc(); in AddAlignValueAttr() local 3768 Diag(AttrLoc, diag::warn_attribute_pointer_or_reference_only) in AddAlignValueAttr() [all …]
|
/external/llvm-project/compiler-rt/lib/ubsan/ |
D | ubsan_handlers.h | 180 SourceLocation AttrLoc; member 190 SourceLocation AttrLoc; member
|
D | ubsan_handlers.cpp | 690 if (!Data->AttrLoc.isInvalid()) in handleNonNullReturn() 691 Diag(Data->AttrLoc, DL_Note, ET, "%0 specified here") in handleNonNullReturn() 737 if (!Data->AttrLoc.isInvalid()) in handleNonNullArg() 738 Diag(Data->AttrLoc, DL_Note, ET, "%0 specified here") in handleNonNullArg()
|
/external/llvm-project/clang/include/clang/Basic/ |
D | AttributeCommonInfo.h | 80 AttributeCommonInfo(SourceLocation AttrLoc) in AttributeCommonInfo() argument 81 : AttrRange(AttrLoc), ScopeLoc(), AttrKind(0), SyntaxUsed(0), in AttributeCommonInfo()
|
/external/llvm-project/clang/lib/Index/ |
D | IndexDecl.cpp | 153 SourceLocation AttrLoc; in handleObjCMethod() local 158 AttrLoc = isGetter ? in handleObjCMethod() 165 if (AttrLoc.isValid()) { in handleObjCMethod() 166 MethodLoc = AttrLoc; in handleObjCMethod() 170 } else if (AttrLoc.isValid()) { in handleObjCMethod() 171 IndexCtx.handleReference(D, AttrLoc, cast<NamedDecl>(D->getDeclContext()), in handleObjCMethod()
|
/external/clang/lib/Sema/ |
D | SemaType.cpp | 2286 SourceLocation AttrLoc) { in BuildExtVectorType() argument 2297 Diag(AttrLoc, diag::err_attribute_invalid_vector_type) << T; in BuildExtVectorType() 2304 Diag(AttrLoc, diag::err_attribute_argument_type) in BuildExtVectorType() 2315 Diag(AttrLoc, diag::err_attribute_zero_size) in BuildExtVectorType() 2321 Diag(AttrLoc, diag::err_attribute_size_too_large) in BuildExtVectorType() 2329 return Context.getDependentSizedExtVectorType(T, ArraySize, AttrLoc); in BuildExtVectorType() 4102 SourceLocation AttrLoc; in GetFullTypeForDeclarator() local 4108 AttrLoc = Attr->getLoc(); in GetFullTypeForDeclarator() 4113 if (AttrLoc.isInvalid()) { in GetFullTypeForDeclarator() 4118 AttrLoc = Attr->getLoc(); in GetFullTypeForDeclarator() [all …]
|
D | SemaDeclAttr.cpp | 1323 SourceLocation AttrLoc = AttrRange.getBegin(); in AddAssumeAlignedAttr() local 1326 Diag(AttrLoc, diag::warn_attribute_return_pointers_refs_only) in AddAssumeAlignedAttr() 1335 Diag(AttrLoc, diag::err_attribute_argument_n_type) in AddAssumeAlignedAttr() 1339 Diag(AttrLoc, diag::err_attribute_argument_type) in AddAssumeAlignedAttr() 1346 Diag(AttrLoc, diag::err_alignment_not_power_of_two) in AddAssumeAlignedAttr() 1356 Diag(AttrLoc, diag::err_attribute_argument_n_type) in AddAssumeAlignedAttr() 3104 SourceLocation AttrLoc = AttrRange.getBegin(); in AddAlignValueAttr() local 3116 Diag(AttrLoc, diag::warn_attribute_pointer_or_reference_only) in AddAlignValueAttr() 3131 Diag(AttrLoc, diag::err_alignment_not_power_of_two) in AddAlignValueAttr() 3187 SourceLocation AttrLoc = AttrRange.getBegin(); in AddAlignedAttr() local [all …]
|
D | SemaStmt.cpp | 484 StmtResult Sema::ActOnAttributedStmt(SourceLocation AttrLoc, in ActOnAttributedStmt() argument 488 AttributedStmt *LS = AttributedStmt::Create(Context, AttrLoc, Attrs, SubStmt); in ActOnAttributedStmt()
|
/external/llvm-project/clang/include/clang/AST/ |
D | TypeLoc.h | 1678 SourceLocation AttrLoc; member 1691 return getLocalData()->AttrLoc; in getAttrNameLoc() 1694 getLocalData()->AttrLoc = loc; in setAttrNameLoc() 1779 SourceLocation AttrLoc; member 1791 SourceLocation getAttrNameLoc() const { return getLocalData()->AttrLoc; } in getAttrNameLoc() 1792 void setAttrNameLoc(SourceLocation loc) { getLocalData()->AttrLoc = loc; } in setAttrNameLoc()
|
D | ASTContext.h | 1355 SourceLocation AttrLoc, 1371 SourceLocation AttrLoc) const; 1385 SourceLocation AttrLoc) const; 1389 SourceLocation AttrLoc) const;
|
D | Stmt.h | 154 SourceLocation AttrLoc; variable 1854 AttributedStmtBits.AttrLoc = Loc; in AttributedStmt() 1861 AttributedStmtBits.AttrLoc = SourceLocation{}; in AttributedStmt() 1877 SourceLocation getAttrLoc() const { return AttributedStmtBits.AttrLoc; } in getAttrLoc()
|
/external/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 3798 SourceLocation ScopeLoc, AttrLoc; in ParseCXX11AttributeSpecifier() local 3801 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 3809 ScopeLoc = AttrLoc; in ParseCXX11AttributeSpecifier() 3811 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 3833 !SeenAttrs.insert(std::make_pair(AttrName, AttrLoc)).second) in ParseCXX11AttributeSpecifier() 3834 Diag(AttrLoc, diag::err_cxx11_attribute_repeated) in ParseCXX11AttributeSpecifier() 3839 AttrParsed = ParseCXX11AttributeArgs(AttrName, AttrLoc, attrs, endLoc, in ParseCXX11AttributeSpecifier() 3844 SourceRange(ScopeLoc.isValid() ? ScopeLoc : AttrLoc, in ParseCXX11AttributeSpecifier() 3845 AttrLoc), in ParseCXX11AttributeSpecifier()
|
/external/llvm-project/clang/lib/Parse/ |
D | ParseDeclCXX.cpp | 4208 SourceLocation ScopeLoc, AttrLoc; in ParseCXX11AttributeSpecifier() local 4211 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 4219 ScopeLoc = AttrLoc; in ParseCXX11AttributeSpecifier() 4221 AttrName = TryParseCXX11AttributeIdentifier(AttrLoc); in ParseCXX11AttributeSpecifier() 4243 !SeenAttrs.insert(std::make_pair(AttrName, AttrLoc)).second) in ParseCXX11AttributeSpecifier() 4244 Diag(AttrLoc, diag::err_cxx11_attribute_repeated) in ParseCXX11AttributeSpecifier() 4249 AttrParsed = ParseCXX11AttributeArgs(AttrName, AttrLoc, attrs, endLoc, in ParseCXX11AttributeSpecifier() 4255 SourceRange(ScopeLoc.isValid() ? ScopeLoc : AttrLoc, AttrLoc), in ParseCXX11AttributeSpecifier()
|
/external/clang/include/clang/AST/ |
D | TypeLoc.h | 720 SourceLocation AttrLoc; member 763 return getLocalData()->AttrLoc; in getAttrNameLoc() 766 getLocalData()->AttrLoc = loc; in setAttrNameLoc()
|
D | Stmt.h | 832 SourceLocation AttrLoc; variable 838 : Stmt(AttributedStmtClass), SubStmt(SubStmt), AttrLoc(Loc), in AttributedStmt() 861 SourceLocation getAttrLoc() const { return AttrLoc; } in getAttrLoc() 868 SourceLocation getLocStart() const LLVM_READONLY { return AttrLoc; } in getLocStart()
|
D | ASTContext.h | 1183 SourceLocation AttrLoc) const;
|
/external/llvm-project/clang/lib/CodeGen/ |
D | CGCall.cpp | 3403 SourceLocation AttrLoc; in EmitReturnValueCheck() local 3409 AttrLoc = RetNNAttr->getLocation(); in EmitReturnValueCheck() 3416 AttrLoc = FTL.getReturnLoc().findNullabilityLoc(); in EmitReturnValueCheck() 3437 llvm::Constant *StaticData[] = {EmitCheckSourceLocation(AttrLoc)}; in EmitReturnValueCheck() 3799 SourceLocation AttrLoc; in EmitNonNullArgCheck() local 3803 AttrLoc = NNAttr->getLocation(); in EmitNonNullArgCheck() 3807 AttrLoc = PVD->getTypeSourceInfo()->getTypeLoc().findNullabilityLoc(); in EmitNonNullArgCheck() 3815 EmitCheckSourceLocation(ArgLoc), EmitCheckSourceLocation(AttrLoc), in EmitNonNullArgCheck()
|
/external/llvm-project/clang/lib/AST/ |
D | ASTContext.cpp | 3870 SourceLocation AttrLoc, in getDependentVectorType() argument 3882 *this, VecType, QualType(Canon, 0), SizeExpr, AttrLoc, VecKind); in getDependentVectorType() 3887 *this, VecType, QualType(), SizeExpr, AttrLoc, VecKind); in getDependentVectorType() 3899 *this, VecType, CanonTy, SizeExpr, AttrLoc, VecKind); in getDependentVectorType() 3941 SourceLocation AttrLoc) const { in getDependentSizedExtVectorType() 3955 SizeExpr, AttrLoc); in getDependentSizedExtVectorType() 3961 AttrLoc); in getDependentSizedExtVectorType() 3972 *this, vecType, CanonExtTy, SizeExpr, AttrLoc); in getDependentSizedExtVectorType() 4015 SourceLocation AttrLoc) const { in getDependentSizedMatrixType() 4027 *this, CanonElementTy, QualType(), RowExpr, ColumnExpr, AttrLoc); in getDependentSizedMatrixType() [all …]
|
/external/llvm-project/clang/include/clang/Sema/ |
D | Sema.h | 1798 QualType BuildVectorType(QualType T, Expr *VecSize, SourceLocation AttrLoc); 1800 SourceLocation AttrLoc); 1802 SourceLocation AttrLoc); 1805 SourceLocation AttrLoc); 1809 SourceLocation AttrLoc); 4516 StmtResult ActOnAttributedStmt(SourceLocation AttrLoc,
|
/external/clang/lib/AST/ |
D | ASTContext.cpp | 2948 SourceLocation AttrLoc) const { in getDependentSizedExtVectorType() 2962 SizeExpr, AttrLoc); in getDependentSizedExtVectorType() 2968 AttrLoc); in getDependentSizedExtVectorType() 2979 DependentSizedExtVectorType(*this, vecType, Canon, SizeExpr, AttrLoc); in getDependentSizedExtVectorType()
|