Changes in / [fc276f3:eae8b37]
- Location:
- src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.hpp
rfc276f3 reae8b37 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 2 15:14:13 202413 // Update Count : 7 512 // Last Modified On : Thu Dec 14 13:48:07 2023 13 // Update Count : 72 14 14 // 15 15 … … 60 60 {"self-assign" , Severity::Warn, "self assignment of expression: %s" }, 61 61 {"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" }, 62 63 {"aggregate-forward-decl" , Severity::Warn, "forward declaration of nested aggregate: %s" }, 63 64 {"superfluous-decl" , Severity::Warn, "declaration does not allocate storage: %s" }, … … 71 72 SelfAssignment, 72 73 RvalueToReferenceConversion, 74 BadQualifiersZeroOne, 73 75 AggrForwardDecl, 74 76 SuperfluousDecl, -
src/Parser/DeclarationNode.cpp
rfc276f3 reae8b37 10 10 // Created On : Sat May 16 12:34:05 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Mon Dec 2 15:04:12202413 // Update Count : 155 812 // Last Modified On : Thu Aug 22 14:11:47 2024 13 // Update Count : 1555 14 14 // 15 15 … … 455 455 456 456 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 457 461 type = ::addQualifiers( type, q->type ); 458 462 q->type = nullptr;
Note: See TracChangeset
for help on using the changeset viewer.