Ignore:
Timestamp:
Mar 1, 2018, 2:48:18 PM (6 years ago)
Author:
Rob Schluntz <rschlunt@…>
Branches:
ADT, aaron-thesis, arm-eh, ast-experimental, cleanup-dtors, deferred_resn, demangler, enum, forall-pointer-decay, jacob/cs343-translation, jenkins-sandbox, master, new-ast, new-ast-unique-expr, new-env, no_list, persistent-indexer, pthread-emulation, qualifiedEnum, resolv-new, with_gc
Children:
a8a2b0a
Parents:
2103a51
Message:

Implement self assignment warning

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.h

    r2103a51 rbabeeda  
    3737
    3838constexpr const char * const WarningFormats[] = {
    39 
     39        "self assignment of expression: %s",
    4040};
    4141
    4242enum class Warning {
     43        SelfAssignment,
    4344        NUMBER_OF_WARNINGS, //This MUST be the last warning
    4445};
Note: See TracChangeset for help on using the changeset viewer.