Home
last modified time | relevance | path

Searched refs:AttrLoc (Results 1 – 16 of 16) sorted by relevance

/external/clang/lib/ARCMigrate/
DTransforms.cpp420 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/
Dubsan_handlers.h136 SourceLocation AttrLoc; member
144 SourceLocation AttrLoc; member
Dubsan_handlers.cc485 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/clang/lib/Sema/
DSemaType.cpp2286 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 …]
DSemaDeclAttr.cpp1323 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 …]
DSemaStmt.cpp484 StmtResult Sema::ActOnAttributedStmt(SourceLocation AttrLoc, in ActOnAttributedStmt() argument
488 AttributedStmt *LS = AttributedStmt::Create(Context, AttrLoc, Attrs, SubStmt); in ActOnAttributedStmt()
DTreeTransform.h1166 StmtResult RebuildAttributedStmt(SourceLocation AttrLoc, in RebuildAttributedStmt() argument
1169 return SemaRef.ActOnAttributedStmt(AttrLoc, Attrs, SubStmt); in RebuildAttributedStmt()
/external/clang/lib/Parse/
DParseDeclCXX.cpp3798 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()
DParseDecl.cpp322 SourceLocation AttrLoc = ScopeLoc.isValid() ? ScopeLoc : AttrNameLoc; in ParseAttributeArgsCommon() local
323 Attrs.addNew(AttrName, SourceRange(AttrLoc, RParen), ScopeName, ScopeLoc, in ParseAttributeArgsCommon()
/external/clang/include/clang/AST/
DTypeLoc.h720 SourceLocation AttrLoc; member
763 return getLocalData()->AttrLoc; in getAttrNameLoc()
766 getLocalData()->AttrLoc = loc; in setAttrNameLoc()
DStmt.h832 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()
DASTContext.h1183 SourceLocation AttrLoc) const;
/external/swiftshader/third_party/LLVM/lib/AsmParser/
DLLParser.cpp884 LocTy AttrLoc = Lex.getLoc(); in ParseOptionalAttrs() local
890 return Error(AttrLoc, "invalid use of function-only attribute"); in ParseOptionalAttrs()
896 return Error(AttrLoc, "invalid use of attribute on a function"); in ParseOptionalAttrs()
899 return Error(AttrLoc, "invalid use of parameter-only attribute"); in ParseOptionalAttrs()
/external/clang/lib/AST/
DASTContext.cpp2948 SourceLocation AttrLoc) const { in getDependentSizedExtVectorType()
2962 SizeExpr, AttrLoc); in getDependentSizedExtVectorType()
2968 AttrLoc); in getDependentSizedExtVectorType()
2979 DependentSizedExtVectorType(*this, vecType, Canon, SizeExpr, AttrLoc); in getDependentSizedExtVectorType()
/external/clang/include/clang/Sema/
DSema.h1249 SourceLocation AttrLoc);
3394 StmtResult ActOnAttributedStmt(SourceLocation AttrLoc,
/external/clang/lib/Serialization/
DASTReaderStmt.cpp182 S->AttrLoc = ReadSourceLocation(Record, Idx); in VisitAttributedStmt()