[PATCH] D134225: [clang-doc] Centralize TypeInfo creation.
Brett Wilson via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Mon Sep 19 14:29:40 PDT 2022
brettw created this revision.
brettw added a reviewer: paulkirth.
brettw added a project: clang-tools-extra.
Herald added a project: All.
brettw requested review of this revision.
Herald added a subscriber: cfe-commits.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D134225
Files:
clang-tools-extra/clang-doc/Representation.h
clang-tools-extra/clang-doc/Serialize.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D134225.461361.patch
Type: text/x-patch
Size: 7420 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20220919/5f14b611/attachment.bin>
More information about the cfe-commits
mailing list