From a0eabb7d1dfc7a36ac0a532be192867bed06f352 Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Tue, 9 Nov 2010 18:54:17 +0000 Subject: [PATCH] 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! git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@118603 91177308-0d34-0410-b5e6-96231b3b80d8 --- www/analyzer/annotations.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/analyzer/annotations.html b/www/analyzer/annotations.html index 5184aeddfe..f43e361cca 100644 --- a/www/analyzer/annotations.html +++ b/www/analyzer/annotations.html @@ -442,7 +442,7 @@ the use of preprocessor macros.

 #ifndef CLANG_ANALYZER_NORETURN
-#if __clang__
+#if __has_feature(attribute_analyzer_noreturn)
 #define CLANG_ANALYZER_NORETURN __attribute__((analyzer_noreturn))
 #else
 #define CLANG_ANALYZER_NORETURN
-- 
2.40.0