[llvm] [llvm][Support] Add YAMLGenerateSchema for producing YAML schemas (PR #133284)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Oct 27 12:07:59 PDT 2025
================
@@ -732,15 +739,17 @@ class LLVM_ABI IO {
virtual void setAllowUnknownKeys(bool Allow);
template <typename T> void enumCase(T &Val, StringRef Str, const T ConstVal) {
- if (matchEnumScalar(Str, outputting() && Val == ConstVal)) {
+ if (matchEnumScalar(Str,
+ getKind() == IOKind::Outputting && Val == ConstVal)) {
Val = ConstVal;
}
}
// allow anonymous enum values to be used with LLVM_YAML_STRONG_TYPEDEF
template <typename T>
void enumCase(T &Val, StringRef Str, const uint32_t ConstVal) {
- if (matchEnumScalar(Str, outputting() && Val == static_cast<T>(ConstVal))) {
+ if (matchEnumScalar(Str, getKind() == IOKind::Outputting &&
+ Val == static_cast<T>(ConstVal))) {
----------------
EugeneZelenko wrote:
Will be good idea to run Clang-Format. Same in other similar places.
https://github.com/llvm/llvm-project/pull/133284
More information about the llvm-commits
mailing list