Skip to content

Commit af1f38c

Browse files
committed
[APINotes] remove out ScalarTraits<VersionTuple>
* Its now defined in YAMLTraits, to avoid ODR violation.
1 parent e43af04 commit af1f38c

File tree

1 file changed

+0
-16
lines changed

1 file changed

+0
-16
lines changed

clang/lib/APINotes/APINotesYAMLCompiler.cpp

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -429,22 +429,6 @@ namespace llvm {
429429
}
430430
};
431431

432-
template <>
433-
struct ScalarTraits<VersionTuple> {
434-
static void output(const VersionTuple &value, void*,
435-
llvm::raw_ostream &out) {
436-
out << value;
437-
}
438-
static StringRef input(StringRef scalar, void*, VersionTuple &value) {
439-
if (value.tryParse(scalar))
440-
return "not a version number in the form XX.YY";
441-
442-
return StringRef();
443-
}
444-
445-
static QuotingType mustQuote(StringRef) { return QuotingType::None; }
446-
};
447-
448432
template <>
449433
struct MappingTraits<Param> {
450434
static void mapping(IO &io, Param& p) {

0 commit comments

Comments
 (0)