Changeset ec6c040 for src/Common
- Timestamp:
 - Mar 19, 2018, 2:07:42 PM (8 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:
 - 2348881
 - Parents:
 - 6470882
 - git-author:
 - Rob Schluntz <rschlunt@…> (03/15/18 14:48:28)
 - git-committer:
 - Rob Schluntz <rschlunt@…> (03/19/18 14:07:42)
 - File:
 - 
      
- 1 edited
 
- 
          
  src/Common/SemanticError.h (modified) (2 diffs)
 
 
Legend:
- Unmodified
 - Added
 - Removed
 
- 
      
src/Common/SemanticError.h
r6470882 rec6c040 38 38 constexpr const char * const WarningFormats[] = { 39 39 "self assignment of expression: %s", 40 "rvalue to reference conversion", 40 41 }; 41 42 42 43 enum class Warning { 43 44 SelfAssignment, 45 RvalueToReferenceConversion, 44 46 NUMBER_OF_WARNINGS, //This MUST be the last warning 45 47 }; … … 50 52 ); 51 53 52 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[(int)id], __VA_ARGS__) 54 // ## used here to allow empty __VA_ARGS__ 55 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[(int)id], ## __VA_ARGS__) 53 56 54 57 void SemanticWarningImpl (CodeLocation loc, Warning warn, const char * const fmt, ...) __attribute__((format(printf, 3, 4)));  
  Note:
 See   TracChangeset
 for help on using the changeset viewer.