From 6ccc173b97232a5f685b0b01d916792834feba9e Mon Sep 17 00:00:00 2001 From: Erik Pilkington Date: Tue, 8 Jan 2019 18:24:39 +0000 Subject: __has_feature(pragma_clang_attribute_namespaces) should be __has_extension Thanks to Richard Smith for pointing this out. llvm-svn: 350642 --- clang/docs/LanguageExtensions.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/docs') diff --git a/clang/docs/LanguageExtensions.rst b/clang/docs/LanguageExtensions.rst index 574bb77345a8..e155cefb7890 100644 --- a/clang/docs/LanguageExtensions.rst +++ b/clang/docs/LanguageExtensions.rst @@ -2727,7 +2727,7 @@ Without the namespaces on the macros, ``other_function`` will be annotated with a contrived example, but its very possible for this kind of situation to appear in real code if the pragmas are spread out across a large file. You can test if your version of clang supports namespaces on ``#pragma clang attribute`` with -``__has_feature(pragma_clang_attribute_namespaces)``. +``__has_extension(pragma_clang_attribute_namespaces)``. Subject Match Rules ------------------- -- cgit v1.2.3