Changeset 5786403 for src


Ignore:
Timestamp:
Dec 15, 2024, 10:07:29 PM (3 days ago)
Author:
Peter A. Buhr <pabuhr@…>
Branches:
master
Children:
a16f2b6
Parents:
d30c229
Message:

update semantic warnings

Location:
src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.hpp

    rd30c229 r5786403  
    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 : Sun Dec 15 21:04:32 2024
     13// Update Count     : 77
    1414//
    1515
     
    5858
    5959constexpr WarningData WarningFormats[] = {
    60         {"self-assign"              , Severity::Warn, "self assignment of expression: %s"                          },
    61         {"reference-conversion"     , Severity::Warn, "rvalue to reference conversion of rvalue: %s"              },
    62         {"aggregate-forward-decl"   , Severity::Warn, "forward declaration of nested aggregate: %s"                },
    63         {"superfluous-decl"         , Severity::Warn, "declaration does not allocate storage: %s"                  },
    64         {"superfluous-else"         , Severity::Warn, "else clause never executed for empty loop conditional"      },
    65         {"gcc-attributes"           , Severity::Warn, "invalid attribute: %s"                                      },
    66         {"c++-like-copy"            , Severity::Warn, "Constructor from reference is not a valid copy constructor" },
    67         {"depreciated-trait-syntax" , Severity::Warn, "trait type-parameters are now specified using the forall clause" },
     60        {"self-assign"              , Severity::Warn, "self assignment of expression: %s." },
     61        {"reference-conversion"     , Severity::Warn, "rvalue to reference conversion of rvalue: %s." },
     62        {"aggregate-forward-decl"   , Severity::Warn, "forward declaration of nested aggregate: %s." },
     63        {"superfluous-decl"         , Severity::Warn, "declaration does not declare anything." },
     64        {"superfluous-else"         , Severity::Warn, "else clause never executed for empty loop conditional." },
     65        {"gcc-attributes"           , Severity::Warn, "invalid attribute: %s." },
     66        {"c++-like-copy"            , Severity::Warn, "Constructor from reference is not a valid copy constructor." },
     67        {"depreciated-trait-syntax" , Severity::Warn, "trait type-parameters are now specified using the forall clause." },
    6868};
    6969
  • src/Parser/lex.ll

    rd30c229 r5786403  
    1010 * Created On       : Sat Sep 22 08:58:10 2001
    1111 * Last Modified By : Peter A. Buhr
    12  * Last Modified On : Sun Oct 13 16:49:47 2024
    13  * Update Count     : 876
     12 * Last Modified On : Sun Dec 15 17:23:46 2024
     13 * Update Count     : 877
    1414 */
    1515
     
    425425";"                             { ASCIIOP_RETURN(); }
    426426"."                             { ASCIIOP_RETURN(); }                                   // also operator
    427 "@@"                    { NAMEDOP_RETURN(ATTR); }                               // CFA, attribute shorthand
     427"@["                    { NAMEDOP_RETURN(ATTR); }                               // CFA, attribute shorthand
    428428"..."                   { NAMEDOP_RETURN(ELLIPSIS); }
    429429
Note: See TracChangeset for help on using the changeset viewer.