[all-commits] [llvm/llvm-project] 35823d: [clang-doc] Use llvm RTTI over handrolled casting ...

Paul Kirth via All-commits all-commits at lists.llvm.org
Sat Jun 6 13:46:21 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 35823d13a8460f57be6b73f3dc4f3b93acbcf79d
      https://github.com/llvm/llvm-project/commit/35823d13a8460f57be6b73f3dc4f3b93acbcf79d
  Author: Paul Kirth <paulkirth at google.com>
  Date:   2026-06-06 (Sat, 06 Jun 2026)

  Changed paths:
    M clang-tools-extra/clang-doc/BitcodeWriter.cpp
    M clang-tools-extra/clang-doc/JSONGenerator.cpp
    M clang-tools-extra/clang-doc/MDGenerator.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/clang-doc/YAMLGenerator.cpp
    M clang-tools-extra/clang-doc/tool/ClangDocMain.cpp

  Log Message:
  -----------
  [clang-doc] Use llvm RTTI over handrolled casting (#202059)

Clang-Doc has a limited amount of polymorphism over Info types.
Historically, these have just been cast directly in a few places, but we
can use the existing llvm RTTI implementation to more rigorously
dispatch and query the types involved with only limited extra code.
This should make future changes a bit harder to get wrong.



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