[cfe-dev] Q_ASSERT and Clang static analyzer
Jordan Rose
jordan_rose at apple.com
Tue Aug 20 10:00:22 PDT 2013
On Aug 20, 2013, at 9:50 , Stephen Kelly <steveire at gmail.com> wrote:
> Jordan Rose wrote:
>> Obviously, the best case is to get them to start using
>> __attribute__((noreturn)) and/or __attribute__((analyzer_noreturn)). I can
>> see adding qtFatal to the list, though, since Qt is a fairly widespread
>> toolkit.
>
> qt_assert is already __attribute__((noreturn)).
>
> #ifndef Q_CC_MSVC
> Q_NORETURN
> #endif
> Q_CORE_EXPORT void qt_assert(const char *assertion, const char *file, int
> line) Q_DECL_NOTHROW;
Then...why isn't it working? Dmitri, if you have a test case, please file a Bugzilla report, I guess.
Jordan
More information about the cfe-dev
mailing list