3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-02 05:15:52 +00:00

add noreturn attribute #1435

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2018-01-02 08:46:17 -08:00
parent 19e12bbc62
commit 7457fa77cb
2 changed files with 15 additions and 34 deletions

View file

@ -53,12 +53,6 @@ Revision History:
#pragma warning(disable : 4355)
#endif
#ifdef __GNUC__
# define Z3_NORETURN __attribute__((noreturn))
#else
# define Z3_NORETURN
#endif
class ast;
class ast_manager;
@ -1521,7 +1515,7 @@ public:
void compress_ids();
// Equivalent to throw ast_exception(msg)
void raise_exception(char const * msg) Z3_NORETURN;
[[noreturn]] void raise_exception(char const * msg);
bool is_format_manager() const { return m_format_manager == 0; }