Replace "#if __clang__" by "#if __has_feature(attribute_analyzer_noreturn)" to be consistent with all other snippets on this page.

Patch by Jean-Daniel Dupas!

llvm-svn: 118603
This commit is contained in:
Ted Kremenek 2010-11-09 18:54:17 +00:00
parent 94ce9711c1
commit 5fab27aa6c
1 changed files with 1 additions and 1 deletions

View File

@ -442,7 +442,7 @@ the use of preprocessor macros.</p>
<pre class="code_example">
#ifndef CLANG_ANALYZER_NORETURN
#if __clang__
#if __has_feature(attribute_analyzer_noreturn)
<span class="code_highlight">#define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn))</span>
#else
#define CLANG_ANALYZER_NORETURN