[cfe-commits] r118603 - /cfe/trunk/www/analyzer/annotations.html
Ted Kremenek
kremenek at apple.com
Tue Nov 9 10:54:17 PST 2010
Author: kremenek
Date: Tue Nov 9 12:54:17 2010
New Revision: 118603
URL: http://llvm.org/viewvc/llvm-project?rev=118603&view=rev
Log:
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!
Modified:
cfe/trunk/www/analyzer/annotations.html
Modified: cfe/trunk/www/analyzer/annotations.html
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/www/analyzer/annotations.html?rev=118603&r1=118602&r2=118603&view=diff
==============================================================================
--- cfe/trunk/www/analyzer/annotations.html (original)
+++ cfe/trunk/www/analyzer/annotations.html Tue Nov 9 12:54:17 2010
@@ -442,7 +442,7 @@
<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
More information about the cfe-commits
mailing list