Lines Matching defs:ArgLoc
1118 SourceLocation ArgLoc;
1119 if (!SemaRef.checkStringLiteralArgumentAttr(AL, 0, Str, &ArgLoc))
1125 << AL << Str << ArgLoc;
1243 SourceLocation ArgLoc = Loc->Loc;
1248 Diag(ArgLoc, diag::warn_attribute_type_not_supported)
1367 static bool DiagnoseLocalRegisterBinding(Sema &S, SourceLocation &ArgLoc,
1374 S.Diag(ArgLoc, diag::err_hlsl_binding_type_mismatch) << RegTypeNum;
1414 S.Diag(ArgLoc, diag::err_hlsl_space_on_global_constant);
1420 S.Diag(ArgLoc, diag::warn_hlsl_deprecated_register_type_b);
1422 S.Diag(ArgLoc, diag::err_hlsl_binding_type_mismatch) << RegTypeNum;
1425 S.Diag(ArgLoc, diag::warn_hlsl_register_type_c_packoffset);
1427 S.Diag(ArgLoc, diag::err_hlsl_binding_type_mismatch) << RegTypeNum;
1437 S.Diag(ArgLoc, diag::err_hlsl_binding_type_mismatch) << RegTypeNum;
1466 static bool DiagnoseHLSLRegisterAttribute(Sema &S, SourceLocation &ArgLoc,
1476 if (!DiagnoseLocalRegisterBinding(S, ArgLoc, D, RegType, SpecifiedSpace))
1501 SourceLocation ArgLoc = Loc->Loc;
1528 Diag(ArgLoc, diag::err_hlsl_binding_type_invalid) << Slot.substr(0, 1);
1532 Diag(ArgLoc, diag::warn_hlsl_deprecated_register_type_i);
1538 Diag(ArgLoc, diag::err_hlsl_unsupported_register_number);
1553 if (!DiagnoseHLSLRegisterAttribute(SemaRef, ArgLoc, TheDecl, RegType,