[PSDK] define __analysis_noreturn for clang static analyzer

This commit is contained in:
Jérôme Gardou 2020-12-11 13:11:03 +01:00
parent f095ff418b
commit 003ad0ec07

View file

@ -258,7 +258,11 @@ __ANNOTATION(SAL_failureDefault(enum __SAL_failureKind));
#define __class_code_content(typ)
#define __analysis_assert(e)
#define __analysis_hint(hint)
#ifndef __clang__
#define __analysis_noreturn
#else
#define __analysis_noreturn __attribute__((analyzer_noreturn))
#endif
/* Internal defintions */
#define __inner_data_source(src_raw)
#define __inner_this_data_source(src_raw)