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