Changeset af39199d for src/Common/SemanticError.h
- Timestamp:
- May 3, 2018, 12:23:14 PM (5 years ago)
- Branches:
- ADT, aaron-thesis, arm-eh, 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:
- 01b8ccf1
- Parents:
- 7ca8441c
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r7ca8441c raf39199d 7 7 // SemanticError.h -- 8 8 // 9 // Author : Richard C. Bilson9 // Author : Thierry Delisle 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Wed May 2 1 5:00:01201813 // Update Count : 2 312 // Last Modified On : Wed May 2 18:13:15 2018 13 // Update Count : 29 14 14 // 15 15 … … 17 17 18 18 #include "ErrorObjects.h" 19 #include <cstring> 19 20 20 21 //----------------------------------------------------------------------------- … … 76 77 void SemanticWarning_Set (const char * const name, Severity s); 77 78 79 // SKULLDUGGERY: cfa.cc is built before SemanticError.cc but needs this routine. 80 static inline bool SemanticWarning_Exist(const char * const name) { 81 for ( const auto & w : WarningFormats ) { 82 if ( std::strcmp( name, w.name ) == 0 ) return true; 83 } 84 return false; 85 } 86 78 87 //----------------------------------------------------------------------------- 79 88 // Helpers
Note: See TracChangeset
for help on using the changeset viewer.