[all-commits] [llvm/llvm-project] 5d0ede: [clang-doc] Serialize record files with mangled name

Erick Velez via All-commits all-commits at lists.llvm.org
Thu Jul 10 11:45:36 PDT 2025


  Branch: refs/heads/users/evelez7/clang-doc-mangle-names
  Home:   https://github.com/llvm/llvm-project
  Commit: 5d0ede1556090b90202fed4955e799aadd281b2b
      https://github.com/llvm/llvm-project/commit/5d0ede1556090b90202fed4955e799aadd281b2b
  Author: Erick Velez <erickvelez7 at gmail.com>
  Date:   2025-07-10 (Thu, 10 Jul 2025)

  Changed paths:
    M clang-tools-extra/clang-doc/BitcodeReader.cpp
    M clang-tools-extra/clang-doc/BitcodeWriter.cpp
    M clang-tools-extra/clang-doc/BitcodeWriter.h
    M clang-tools-extra/clang-doc/JSONGenerator.cpp
    M clang-tools-extra/clang-doc/Representation.cpp
    M clang-tools-extra/clang-doc/Representation.h
    M clang-tools-extra/clang-doc/Serialize.cpp
    M clang-tools-extra/test/clang-doc/json/class-requires.cpp
    A clang-tools-extra/test/clang-doc/json/class-specialization.cpp
    M clang-tools-extra/test/clang-doc/json/class-template.cpp
    M clang-tools-extra/test/clang-doc/json/class.cpp
    M clang-tools-extra/test/clang-doc/json/compound-constraints.cpp
    M clang-tools-extra/test/clang-doc/json/concept.cpp
    M clang-tools-extra/test/clang-doc/json/function-requires.cpp
    M clang-tools-extra/test/clang-doc/json/function-specifiers.cpp
    M clang-tools-extra/test/clang-doc/json/method-template.cpp
    M clang-tools-extra/test/clang-doc/json/namespace.cpp
    M clang-tools-extra/test/clang-doc/json/nested-namespace.cpp
    M clang-tools-extra/unittests/clang-doc/JSONGeneratorTest.cpp

  Log Message:
  -----------
  [clang-doc] Serialize record files with mangled name

This patch changes JSON file serialization. Now, files are serialized
to a single directory instead of nesting them based on namespaces. The
global namespace retains the "index.json" name.

This solves the problem of class template specializations being serialized to the
same file as its base template. This is also planned as part of
future integration with the Mustache 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