[clang-tools-extra] [clang-doc] Introduce Serializer class (PR #184873)

Carlos Alberto Enciso via cfe-commits cfe-commits at lists.llvm.org
Mon Mar 9 01:56:57 PDT 2026


================
@@ -60,7 +60,8 @@ static void BM_EmitInfoFunction(benchmark::State &State) {
   Location Loc;
 
   for (auto _ : State) {
-    auto Result = serialize::emitInfo(Func, FC, Loc, /*PublicOnly=*/false);
+    serialize::ClangDocSerializer Serializer;
+    auto Result = Serializer.emitInfo(Func, FC, Loc, /*PublicOnly=*/false);
     benchmark::DoNotOptimize(Result);
----------------
CarlosAlbertoEnciso wrote:

Causes a compilation error on both Linux and Windows.
`ClangDocSerializer`: is not a member of `clang::doc::serialize`

https://github.com/llvm/llvm-project/pull/184873


More information about the cfe-commits mailing list