[clang] [clang] Remove outdated parts of documentation for #pragma diagnostic (PR #78095)

Vlad Serebrennikov via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 15 07:53:49 PST 2024


================
@@ -1157,19 +1156,16 @@ existed.
   #if foo
   #endif foo // warning: extra tokens at end of #endif directive
 
-  #pragma clang diagnostic push
-  #pragma clang diagnostic ignored "-Wextra-tokens"
+  #pragma GCC diagnostic push
+  #pragma GCC diagnostic ignored "-Wextra-tokens"
 
   #if foo
   #endif foo // no warning
 
-  #pragma clang diagnostic pop
+  #pragma GCC diagnostic pop
----------------
Endilll wrote:

Makes sense, even if we say elsewhere that `GCC` and `clang` can be used interchangeably for pragmas supported by both compilers.

https://github.com/llvm/llvm-project/pull/78095


More information about the cfe-commits mailing list