diff --git a/llvm/include/llvm/Support/YAMLTraits.h b/llvm/include/llvm/Support/YAMLTraits.h index 7aeecdee0368f..00f645545a2be 100644 --- a/llvm/include/llvm/Support/YAMLTraits.h +++ b/llvm/include/llvm/Support/YAMLTraits.h @@ -305,62 +305,62 @@ template struct MissingTrait; // Test if ScalarEnumerationTraits is defined on type T. template struct has_ScalarEnumerationTraits { - using Signature_enumeration = void (*)(class IO &, T &); + using SignatureEnumeration = void (*)(class IO &, T &); template using check = - SameType::enumeration>; + SameType::enumeration>; static constexpr bool value = is_detected::value; }; // Test if ScalarBitSetTraits is defined on type T. template struct has_ScalarBitSetTraits { - using Signature_bitset = void (*)(class IO &, T &); + using SignatureBitset = void (*)(class IO &, T &); template - using check = SameType::bitset>; + using check = SameType::bitset>; static constexpr bool value = is_detected::value; }; // Test if ScalarTraits is defined on type T. template struct has_ScalarTraits { - using Signature_input = StringRef (*)(StringRef, void *, T &); - using Signature_output = void (*)(const T &, void *, raw_ostream &); - using Signature_mustQuote = QuotingType (*)(StringRef); + using SignatureInput = StringRef (*)(StringRef, void *, T &); + using SignatureOutput = void (*)(const T &, void *, raw_ostream &); + using SignatureMustQuote = QuotingType (*)(StringRef); template - using check = std::tuple, - SameType, - SameType>; + using check = std::tuple, + SameType, + SameType>; static constexpr bool value = is_detected>::value; }; // Test if BlockScalarTraits is defined on type T. template struct has_BlockScalarTraits { - using Signature_input = StringRef (*)(StringRef, void *, T &); - using Signature_output = void (*)(const T &, void *, raw_ostream &); + using SignatureInput = StringRef (*)(StringRef, void *, T &); + using SignatureOutput = void (*)(const T &, void *, raw_ostream &); template - using check = std::tuple, - SameType>; + using check = std::tuple, + SameType>; static constexpr bool value = is_detected>::value; }; // Test if TaggedScalarTraits is defined on type T. template struct has_TaggedScalarTraits { - using Signature_input = StringRef (*)(StringRef, StringRef, void *, T &); - using Signature_output = void (*)(const T &, void *, raw_ostream &, - raw_ostream &); - using Signature_mustQuote = QuotingType (*)(const T &, StringRef); + using SignatureInput = StringRef (*)(StringRef, StringRef, void *, T &); + using SignatureOutput = void (*)(const T &, void *, raw_ostream &, + raw_ostream &); + using SignatureMustQuote = QuotingType (*)(const T &, StringRef); template - using check = std::tuple, - SameType, - SameType>; + using check = std::tuple, + SameType, + SameType>; static constexpr bool value = is_detected>::value; @@ -368,9 +368,9 @@ template struct has_TaggedScalarTraits { // Test if MappingContextTraits is defined on type T. template struct has_MappingTraits { - using Signature_mapping = void (*)(class IO &, T &, Context &); + using SignatureMapping = void (*)(class IO &, T &, Context &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; @@ -378,18 +378,18 @@ template struct has_MappingTraits { // Test if MappingTraits is defined on type T. template struct has_MappingTraits { - using Signature_mapping = void (*)(class IO &, T &); + using SignatureMapping = void (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; }; // Test if MappingContextTraits::validate() is defined on type T. template struct has_MappingValidateTraits { - using Signature_validate = std::string (*)(class IO &, T &, Context &); + using SignatureValidate = std::string (*)(class IO &, T &, Context &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; @@ -397,18 +397,18 @@ template struct has_MappingValidateTraits { // Test if MappingTraits::validate() is defined on type T. template struct has_MappingValidateTraits { - using Signature_validate = std::string (*)(class IO &, T &); + using SignatureValidate = std::string (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; }; // Test if MappingContextTraits::enumInput() is defined on type T. template struct has_MappingEnumInputTraits { - using Signature_enumInput = void (*)(class IO &, T &); + using SignatureEnumInput = void (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; @@ -416,27 +416,27 @@ template struct has_MappingEnumInputTraits { // Test if MappingTraits::enumInput() is defined on type T. template struct has_MappingEnumInputTraits { - using Signature_enumInput = void (*)(class IO &, T &); + using SignatureEnumInput = void (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; }; // Test if SequenceTraits is defined on type T. template struct has_SequenceMethodTraits { - using Signature_size = size_t (*)(class IO &, T &); + using SignatureSize = size_t (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; }; // Test if CustomMappingTraits is defined on type T. template struct has_CustomMappingTraits { - using Signature_input = void (*)(IO &io, StringRef key, T &v); + using SignatureInput = void (*)(IO &io, StringRef key, T &v); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; @@ -464,18 +464,18 @@ struct has_SequenceTraits // Test if DocumentListTraits is defined on type T template struct has_DocumentListTraits { - using Signature_size = size_t (*)(class IO &, T &); + using SignatureSize = size_t (*)(class IO &, T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; }; template struct has_PolymorphicTraits { - using Signature_getKind = NodeKind (*)(const T &); + using SignatureGetKind = NodeKind (*)(const T &); - template using check = SameType; + template using check = SameType; static constexpr bool value = is_detected>::value; };