Changeset 68e9ace for src/Common/SemanticError.h
- Timestamp:
- May 2, 2018, 5:36:02 PM (5 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r623c16a r68e9ace 46 46 const char * const name; 47 47 const char * const message; 48 mutable Severityseverity;48 const Severity default_severity; 49 49 }; 50 50 51 51 constexpr 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}, 54 54 {"qualifiers-zero_t-one_t", "questionable use of type qualifier %s with %s", Severity::Warn}, 55 55 }; … … 71 71 void SemanticWarningImpl (CodeLocation loc, Warning warn, const char * const fmt, ...) __attribute__((format(printf, 3, 4))); 72 72 73 void SemanticWarning_SuppressAll (); 74 void SemanticWarning_EnableAll (); 75 void SemanticWarning_WarningAsError(); 76 void SemanticWarning_Set (const char * const name, Severity s); 73 77 74 78 //-----------------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.