Changes in / [fc276f3:eae8b37]


Ignore:
Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.hpp

    rfc276f3 reae8b37  
    1010// Created On       : Mon May 18 07:44:20 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Dec  2 15:14:13 2024
    13 // Update Count     : 75
     12// Last Modified On : Thu Dec 14 13:48:07 2023
     13// Update Count     : 72
    1414//
    1515
     
    6060        {"self-assign"              , Severity::Warn, "self assignment of expression: %s"                          },
    6161        {"reference-conversion"     , Severity::Warn, "rvalue to reference conversion of rvalue: %s"               },
     62        {"qualifiers-zero_t-one_t"  , Severity::Warn, "questionable use of type qualifier(s) with %s"              },
    6263        {"aggregate-forward-decl"   , Severity::Warn, "forward declaration of nested aggregate: %s"                },
    6364        {"superfluous-decl"         , Severity::Warn, "declaration does not allocate storage: %s"                  },
     
    7172        SelfAssignment,
    7273        RvalueToReferenceConversion,
     74        BadQualifiersZeroOne,
    7375        AggrForwardDecl,
    7476        SuperfluousDecl,
  • src/Parser/DeclarationNode.cpp

    rfc276f3 reae8b37  
    1010// Created On       : Sat May 16 12:34:05 2015
    1111// Last Modified By : Peter A. Buhr
    12 // Last Modified On : Mon Dec  2 15:04:12 2024
    13 // Update Count     : 1558
     12// Last Modified On : Thu Aug 22 14:11:47 2024
     13// Update Count     : 1555
    1414//
    1515
     
    455455
    456456        checkQualifiers( type, q->type );
     457        TypeData::BuiltinType const builtin = type->builtintype;
     458        if ( (builtin == TypeData::Zero || builtin == TypeData::One) && q->type->qualifiers.any() && error.length() == 0 ) {
     459                SemanticWarning( yylloc, Warning::BadQualifiersZeroOne, TypeData::builtinTypeNames[builtin] );
     460        } // if
    457461        type = ::addQualifiers( type, q->type );
    458462        q->type = nullptr;
Note: See TracChangeset for help on using the changeset viewer.