reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/lib/Sema/SemaDeclAttr.cpp
 2639   if (AL.getNumArgs() > 0) {
 2640     Expr *E = AL.getArgAsExpr(0);
 2644       S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 2645           << AL << 1 << AANT_ArgumentIntegerConstant << E->getSourceRange();
 2650       S.Diag(AL.getLoc(), diag::err_attribute_sentinel_less_than_zero)
 2659   if (AL.getNumArgs() > 1) {
 2660     Expr *E = AL.getArgAsExpr(1);
 2664       S.Diag(AL.getLoc(), diag::err_attribute_argument_n_type)
 2665           << AL << 2 << AANT_ArgumentIntegerConstant << E->getSourceRange();
 2673       S.Diag(AL.getLoc(), diag::err_attribute_sentinel_not_zero_or_one)
 2682       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_named_arguments);
 2687       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 0;
 2692       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 0;
 2697       S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << 1;
 2708         S.Diag(AL.getLoc(), diag::warn_attribute_sentinel_not_variadic) << m;
 2712       S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 2713           << AL << ExpectedFunctionMethodOrBlock;
 2717     S.Diag(AL.getLoc(), diag::warn_attribute_wrong_decl_type)
 2718         << AL << ExpectedFunctionMethodOrBlock;
 2721   D->addAttr(::new (S.Context) SentinelAttr(S.Context, AL, sentinel, nullPos));