Changes in src/Common/SemanticError.h [610354a:b1f2007d]
- File:
-
- 1 edited
-
src/Common/SemanticError.h (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Common/SemanticError.h
r610354a rb1f2007d 10 10 // Created On : Mon May 18 07:44:20 2015 11 11 // Last Modified By : Peter A. Buhr 12 // Last Modified On : Thu Dec 14 13:48:07202313 // Update Count : 7212 // Last Modified On : Mon Dec 11 21:54:22 2023 13 // Update Count : 54 14 14 // 15 15 … … 28 28 __attribute__((noreturn, format(printf, 2, 3))) void SemanticError( CodeLocation location, const char fmt[], ... ); 29 29 30 __attribute__((noreturn)) static inline void SemanticError( CodeLocation location, std::string error ) { 31 SemanticErrorThrow = true; 32 throw SemanticErrorException( location, error ); 33 } 30 __attribute__((noreturn)) void SemanticError( CodeLocation location, std::string error ); 34 31 35 32 __attribute__((noreturn)) static inline void SemanticError( const ast::ParseNode * obj, const std::string & error ) { … … 79 76 CppCopy, 80 77 DeprecTraitSyntax, 81 NUMBER_OF_WARNINGS, // MUST be last warning78 NUMBER_OF_WARNINGS, // MUST be the last warning 82 79 }; 83 80 … … 87 84 ); 88 85 89 void SemanticWarning( CodeLocation loc, Warning warn, ... ); 86 #define SemanticWarning(loc, id, ...) SemanticWarningImpl(loc, id, WarningFormats[(int)id].message, ##__VA_ARGS__) 90 87 91 void SemanticWarning_SuppressAll(); 92 void SemanticWarning_EnableAll(); 88 void SemanticWarningImpl (CodeLocation loc, Warning warn, const char * const fmt, ...) __attribute__((format(printf, 3, 4))); 89 90 void SemanticWarning_SuppressAll (); 91 void SemanticWarning_EnableAll (); 93 92 void SemanticWarning_WarningAsError(); 94 void SemanticWarning_Set (const char * const name, Severity s);93 void SemanticWarning_Set (const char * const name, Severity s); 95 94 96 95 // SKULLDUGGERY: cfa.cc is built before SemanticError.cc but needs this routine.
Note:
See TracChangeset
for help on using the changeset viewer.