[clang] [clang] support Wold-style-declaration as gcc (PR #78837)

2024-01-20 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: None (SihangZhu) Changes Storage-class specifiers like static are not the first things in a declaration. According to the C Standard, this usage is obsolescent. This patch add a diagnose to warn it. This is a counterpart of gcc's Wold-sty

[clang] [clang] support Wold-style-declaration as gcc (PR #78837)

2024-01-20 Thread via cfe-commits
https://github.com/SihangZhu edited https://github.com/llvm/llvm-project/pull/78837 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] [clang] support Wold-style-declaration as gcc (PR #78837)

2024-01-20 Thread via cfe-commits
https://github.com/SihangZhu created https://github.com/llvm/llvm-project/pull/78837 Storage-class specifiers like static are not the first things in a declaration. According to the C Standard, this usage is obsolescent. This patch add a diagnose to warn it. This is a counterpart of gcc's Wswi