[clang] [Clang] Add diagnostic when scoped enumeration requires an explicit conversion for binary operations (PR #152698)
Yanzuo Liu via cfe-commits
cfe-commits at lists.llvm.org
Fri Aug 8 20:54:41 PDT 2025
================
@@ -1,5 +1,6 @@
// RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++11 -verify -triple x86_64-apple-darwin %s
// RUN: %clang_cc1 -fsyntax-only -pedantic -std=c++17 -verify -triple x86_64-apple-darwin %s
----------------
zwuis wrote:
We can change `-verify` to `-verify=expected,cxx11-17` so that we can use `// cxx11-17-warning {{...}}` instead of adding `#if` block for some test cases. See <https://clang.llvm.org/docs/InternalsManual.html#testing>.
https://github.com/llvm/llvm-project/pull/152698
More information about the cfe-commits
mailing list