[clang] Only emit -Wmicrosoft-goto in C++ mode (PR #138507)

2025-05-05 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem closed https://github.com/llvm/llvm-project/pull/138507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

[clang] Only emit -Wmicrosoft-goto in C++ mode (PR #138507)

2025-05-05 Thread Aaron Ballman via cfe-commits
https://github.com/AaronBallman approved this pull request. LGTM, thank you for catching this! https://github.com/llvm/llvm-project/pull/138507 ___ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-

[clang] Only emit -Wmicrosoft-goto in C++ mode (PR #138507)

2025-05-05 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Hans Wennborg (zmodem) Changes Follow-up to #138009 which added diagnostics for "jump past initialization" in C mode, in which case they're not an MS extension. --- Full diff: https://github.com/llvm/llvm-project/pull/138507.diff 2 File

[clang] Only emit -Wmicrosoft-goto in C++ mode (PR #138507)

2025-05-05 Thread Hans Wennborg via cfe-commits
https://github.com/zmodem created https://github.com/llvm/llvm-project/pull/138507 Follow-up to #138009 which added diagnostics for "jump past initialization" in C mode, in which case they're not an MS extension. Rate limit ยท GitHub body { backgr