[all-commits] [llvm/llvm-project] 1c3320: [clang-doc] add a JSON generator (#142483)

Erick Velez via All-commits all-commits at lists.llvm.org
Tue Jun 10 08:40:03 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1c3320cdde8f846a28afd2f2a83ca23edb25e92b
      https://github.com/llvm/llvm-project/commit/1c3320cdde8f846a28afd2f2a83ca23edb25e92b
  Author: Erick Velez <erickvelez7 at gmail.com>
  Date:   2025-06-10 (Tue, 10 Jun 2025)

  Changed paths:
    M clang-tools-extra/clang-doc/CMakeLists.txt
    M clang-tools-extra/clang-doc/Generators.cpp
    M clang-tools-extra/clang-doc/Generators.h
    A clang-tools-extra/clang-doc/JSONGenerator.cpp
    M clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
    A clang-tools-extra/test/clang-doc/json/class-template.cpp
    A clang-tools-extra/test/clang-doc/json/class.cpp
    A clang-tools-extra/test/clang-doc/json/method-template.cpp
    M clang-tools-extra/unittests/clang-doc/CMakeLists.txt
    A clang-tools-extra/unittests/clang-doc/JSONGeneratorTest.cpp

  Log Message:
  -----------
  [clang-doc] add a JSON generator (#142483)

Adds a JSON generator backend to emit mapped information as JSON. This will enable a better testing format for upcoming changes. It can also potentially serve to feed our other backend generators in the future, like Mustache which already serializes information to JSON before emitting as HTML.

This patch contains functionality to emit classes and provides most of the basis of the generator.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list