For when we want to change a configuration option from an enum into a
struct. The need arose when working on D119599.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Looks ok for me, but I have no experience in this area.
I added some more reviewers, let's see what they say.
llvm/docs/YamlIO.rst | ||
---|---|---|
567 | Reformat. |
Could you explain more why you can't just update the configuration YAML to use the new format type? I'm not sure we really want to be getting into the business of supporting backwards-compatible YAMLIO code.
In clang-format we have an option which is currently an enum. Now @sstwcw wants to add some functionality to that, where we (as the main clang-format developers) said we have to convert the enum into a struct. But don't want to go the way (again) to add the enumerator Custom and then a second option with the struct. We would like to have the struct using the name of the current enum, but need to be compatible to the .clang-format files.
llvm/include/llvm/Support/YAMLTraits.h | ||
---|---|---|
1090 | Does this REALLY need to be a macro? It looks like a function would suffice to me. |
llvm/include/llvm/Support/YAMLTraits.h | ||
---|---|---|
1090 | It doesn't really need a macro. |
Reformat.