]> granicus.if.org Git - clang/commitdiff
Replace "#if __clang__" by "#if __has_feature(attribute_analyzer_noreturn)" to be...
authorTed Kremenek <kremenek@apple.com>
Tue, 9 Nov 2010 18:54:17 +0000 (18:54 +0000)
committerTed Kremenek <kremenek@apple.com>
Tue, 9 Nov 2010 18:54:17 +0000 (18:54 +0000)
Patch by Jean-Daniel Dupas!

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118603 91177308-0d34-0410-b5e6-96231b3b80d8

www/analyzer/annotations.html

index 5184aeddfef49f9597492f6c461537741f21ea66..f43e361cca56f653c2ec06f574cbd9e5f0817605 100644 (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