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

References

tools/clang/lib/Sema/SemaType.cpp
 1269     DeclLoc = DS.getBeginLoc();
 1274   switch (DS.getTypeSpecType()) {
 1279     if (DS.getTypeSpecSign() == DeclSpec::TSS_unspecified)
 1281     else if (DS.getTypeSpecSign() == DeclSpec::TSS_signed)
 1284       assert(DS.getTypeSpecSign() == DeclSpec::TSS_unsigned &&
 1290     if (DS.getTypeSpecSign() == DeclSpec::TSS_unspecified)
 1292     else if (DS.getTypeSpecSign() == DeclSpec::TSS_signed) {
 1293       S.Diag(DS.getTypeSpecSignLoc(), diag::ext_wchar_t_sign_spec)
 1294         << DS.getSpecifierName(DS.getTypeSpecType(),
 1294         << DS.getSpecifierName(DS.getTypeSpecType(),
 1298       assert(DS.getTypeSpecSign() == DeclSpec::TSS_unsigned &&
 1300       S.Diag(DS.getTypeSpecSignLoc(), diag::ext_wchar_t_sign_spec)
 1301         << DS.getSpecifierName(DS.getTypeSpecType(),
 1301         << DS.getSpecifierName(DS.getTypeSpecType(),
 1307       assert(DS.getTypeSpecSign() == DeclSpec::TSS_unspecified &&
 1312       assert(DS.getTypeSpecSign() == DeclSpec::TSS_unspecified &&
 1317       assert(DS.getTypeSpecSign() == DeclSpec::TSS_unspecified &&
 1349       if (DS.isEmpty()) {
 1351             << DS.getSourceRange()
 1352             << FixItHint::CreateInsertion(DS.getBeginLoc(), "int");
 1354     } else if (!DS.hasTypeSpecifier()) {
 1359       if (S.getLangOpts().CPlusPlus && !DS.isTypeSpecPipe()) {
 1361           << DS.getSourceRange();
 1369                  DS.isTypeSpecPipe()) {
 1371           << DS.getSourceRange();
 1375           << DS.getSourceRange();
 1381     if (DS.getTypeSpecSign() != DeclSpec::TSS_unsigned) {
 1382       switch (DS.getTypeSpecWidth()) {
 1392             S.Diag(DS.getTypeSpecWidthLoc(),
 1396             S.Diag(DS.getTypeSpecWidthLoc(), diag::ext_c99_longlong);
 1401       switch (DS.getTypeSpecWidth()) {
 1411             S.Diag(DS.getTypeSpecWidthLoc(),
 1415             S.Diag(DS.getTypeSpecWidthLoc(), diag::ext_c99_longlong);
 1423     switch (DS.getTypeSpecWidth()) {
 1437     if (DS.getTypeSpecSign() == DeclSpec::TSS_unsigned)
 1440     if (DS.isTypeSpecSat())
 1446     switch (DS.getTypeSpecWidth()) {
 1460     if (DS.getTypeSpecSign() == DeclSpec::TSS_unsigned)
 1463     if (DS.isTypeSpecSat())
 1471       S.Diag(DS.getTypeSpecTypeLoc(), diag::err_type_unsupported)
 1473     if (DS.getTypeSpecSign() == DeclSpec::TSS_unsigned)
 1484       S.Diag(DS.getTypeSpecTypeLoc(), diag::err_type_unsupported)
 1491     if (DS.getTypeSpecWidth() == DeclSpec::TSW_long)
 1499       S.Diag(DS.getTypeSpecTypeLoc(), diag::err_type_unsupported)
 1508     S.Diag(DS.getTypeSpecTypeLoc(), diag::err_decimal_unsupported);
 1517     TagDecl *D = dyn_cast_or_null<TagDecl>(DS.getRepAsDecl());
 1526     S.DiagnoseUseOfDecl(D, DS.getTypeSpecTypeNameLoc());
 1528     assert(DS.getTypeSpecWidth() == 0 && DS.getTypeSpecComplex() == 0 &&
 1528     assert(DS.getTypeSpecWidth() == 0 && DS.getTypeSpecComplex() == 0 &&
 1529            DS.getTypeSpecSign() == 0 && "No qualifiers on tag names!");
 1536       = ElaboratedType::getKeywordForTypeSpec(DS.getTypeSpecType());
 1537     Result = S.getElaboratedType(Keyword, DS.getTypeSpecScope(), Result,
 1538                                  DS.isTypeSpecOwned() ? D : nullptr);
 1542     assert(DS.getTypeSpecWidth() == 0 && DS.getTypeSpecComplex() == 0 &&
 1542     assert(DS.getTypeSpecWidth() == 0 && DS.getTypeSpecComplex() == 0 &&
 1543            DS.getTypeSpecSign() == 0 &&
 1545     Result = S.GetTypeFromParser(DS.getRepAsType());
 1555     Result = S.GetTypeFromParser(DS.getRepAsType());
 1559         S.DiagnoseUseOfDecl(TT->getDecl(), DS.getTypeSpecTypeLoc());
 1564     Expr *E = DS.getRepAsExpr();
 1567     Result = S.BuildTypeofExprType(E, DS.getTypeSpecTypeLoc());
 1575     Expr *E = DS.getRepAsExpr();
 1578     Result = S.BuildDecltypeType(E, DS.getTypeSpecTypeLoc());
 1586     Result = S.GetTypeFromParser(DS.getRepAsType());
 1590                                        DS.getTypeSpecTypeLoc());
 1615     Result = S.GetTypeFromParser(DS.getRepAsType());
 1617     Result = S.BuildAtomicType(Result, DS.getTypeSpecTypeLoc());
 1649       S.checkOpenCLDisabledTypeDeclSpec(DS, Result))
 1652   bool IsFixedPointType = DS.getTypeSpecType() == DeclSpec::TST_accum ||
 1653                           DS.getTypeSpecType() == DeclSpec::TST_fract;
 1656   if (DS.isTypeSpecSat() && !IsFixedPointType)
 1657     S.Diag(DS.getTypeSpecSatLoc(), diag::err_invalid_saturation_spec)
 1658         << DS.getSpecifierName(DS.getTypeSpecType(),
 1658         << DS.getSpecifierName(DS.getTypeSpecType(),
 1662   if (DS.getTypeSpecComplex() == DeclSpec::TSC_complex) {
 1664       S.Diag(DS.getTypeSpecComplexLoc(), diag::ext_freestanding_complex);
 1666   } else if (DS.isTypeAltiVecVector()) {
 1670     if (DS.isTypeAltiVecPixel())
 1672     else if (DS.isTypeAltiVecBool())
 1678   if (DS.getTypeSpecComplex() == DeclSpec::TSC_imaginary)
 1679     S.Diag(DS.getTypeSpecComplexLoc(), diag::err_imaginary_not_supported);
 1690   if (!DS.isTypeSpecPipe())
 1691     processTypeAttrs(state, Result, TAL_DeclSpec, DS.getAttributes());
 1694   if (unsigned TypeQuals = DS.getTypeQualifiers()) {
 1705           S, DS, TypeQuals, Result, DeclSpec::TQ_const | DeclSpec::TQ_volatile,
 1723           S, DS, TypeQuals, Result,
 1734         S.Diag(DS.getConstSpecLoc(), diag::ext_duplicate_declspec)
 1739         S.Diag(DS.getVolatileSpecLoc(), diag::ext_duplicate_declspec)
 1747     QualType Qualified = S.BuildQualifiedType(Result, DeclLoc, TypeQuals, &DS);