LLVM 22.0.0git
llvm::yaml::ScalarBitSetTraits< T, Enable > Struct Template Reference

This class should be specialized by any integer type that is a union of bit values and the YAML representation is a flow sequence of strings. More...

#include "llvm/Support/YAMLTraits.h"

Inheritance diagram for llvm::yaml::ScalarBitSetTraits< T, Enable >:
[legend]

Detailed Description

template<typename T, typename Enable = void>
struct llvm::yaml::ScalarBitSetTraits< T, Enable >

This class should be specialized by any integer type that is a union of bit values and the YAML representation is a flow sequence of strings.

For example:

 struct ScalarBitSetTraits<MyFlags> {
   static void bitset(IO &io, MyFlags &value) {
     io.bitSetCase(value, "big",   flagBig);
     io.bitSetCase(value, "flat",  flagFlat);
     io.bitSetCase(value, "round", flagRound);
   }
 }; 

Definition at line 123 of file YAMLTraits.h.


The documentation for this struct was generated from the following file: