[all-commits] [llvm/llvm-project] 4df84a: [clang-doc] Centralize TypeInfo creation.

Paul Kirth via All-commits all-commits at lists.llvm.org
Tue Sep 20 10:56:30 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4df84ac377dfc88da0217dc8cbb9aa69be6cbe55
      https://github.com/llvm/llvm-project/commit/4df84ac377dfc88da0217dc8cbb9aa69be6cbe55
  Author: Brett Wilson <brettw at google.com>
  Date:   2022-09-20 (Tue, 20 Sep 2022)

  Changed paths:
    M clang-tools-extra/clang-doc/Representation.h
    M clang-tools-extra/clang-doc/Serialize.cpp

  Log Message:
  -----------
  [clang-doc] Centralize TypeInfo creation.

Several different places in the code had similar computations for the parameters that were eventually passed to the TypeInfo constructor.

This centralizes that code in one function, and allows passing TypeInfo to the various other *Info structures that need it.

Remove some "auto" types and replace with the real type for getting declarations. This was making some duplicate checking difficult to see.

Reviewed By: paulkirth

Differential Revision: https://reviews.llvm.org/D134225




More information about the All-commits mailing list