From 5e8a246ac9966e6ca43e7bd84db6df78b27d2201 Mon Sep 17 00:00:00 2001 From: Jan Svoboda Date: Tue, 9 Feb 2021 16:30:14 +0100 Subject: [clang][cli] Generate and round-trip Frontend options This patch implements generation of remaining frontend options and tests it by performing parse-generate-parse round trip. Depends on D96269. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D96155 --- clang/lib/Frontend/TestModuleFileExtension.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'clang/lib/Frontend/TestModuleFileExtension.cpp') diff --git a/clang/lib/Frontend/TestModuleFileExtension.cpp b/clang/lib/Frontend/TestModuleFileExtension.cpp index 354aa7f..f7d3f15 100644 --- a/clang/lib/Frontend/TestModuleFileExtension.cpp +++ b/clang/lib/Frontend/TestModuleFileExtension.cpp @@ -127,3 +127,10 @@ TestModuleFileExtension::createExtensionReader( return std::unique_ptr( new TestModuleFileExtension::Reader(this, Stream)); } + +llvm::raw_ostream &clang::operator<<(llvm::raw_ostream &OS, + const TestModuleFileExtension &Extension) { + return OS << Extension.BlockName << ":" << Extension.MajorVersion << ":" + << Extension.MinorVersion << ":" << Extension.Hashed << ":" + << Extension.UserInfo; +} -- cgit v1.1