Ignore:
Timestamp:
May 2, 2018, 5:36:02 PM (6 years ago)
Author:
Thierry Delisle <tdelisle@…>
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, with_gc
Children:
161cdf1
Parents:
623c16a
Message:

Fixed semantic warning severity handling

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Common/SemanticError.h

    r623c16a r68e9ace  
    4646        const char * const name;
    4747        const char * const message;
    48         mutable Severity severity;
     48        const Severity default_severity;
    4949};
    5050
    5151constexpr WarningData WarningFormats[] = {
    52         {"self-assign"         , "self assignment of expression: %s"           , Severity::Warn},
    53         {"reference-conversion", "rvalue to reference conversion of rvalue: %s", Severity::Warn},
     52        {"self-assign"            , "self assignment of expression: %s"            , Severity::Warn},
     53        {"reference-conversion"   , "rvalue to reference conversion of rvalue: %s" , Severity::Warn},
    5454        {"qualifiers-zero_t-one_t", "questionable use of type qualifier %s with %s", Severity::Warn},
    5555};
     
    7171void SemanticWarningImpl (CodeLocation loc, Warning warn, const char * const fmt, ...) __attribute__((format(printf, 3, 4)));
    7272
     73void SemanticWarning_SuppressAll   ();
     74void SemanticWarning_EnableAll     ();
     75void SemanticWarning_WarningAsError();
     76void SemanticWarning_Set           (const char * const name, Severity s);
    7377
    7478//-----------------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.