[PATCH] D48341: [clang-doc] Adding a second reduce pass

Julie Hockett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Jun 19 16:54:44 PDT 2018


juliehockett created this revision.
juliehockett added reviewers: ioeric, lebedev.ri.
juliehockett added a project: clang-tools-extra.

The first reduce pass combines all duplicate info data into one representation of that declaration info. This second pass iterates through the output of that first pass in order to streamline the outputted documentation.

The result of this pass is that all Function and Enum infos are absorbed into the info of their enclosing scope (i.e. the class or namespace in which they are defined). Namespace and Record infos are passed along to the final output, but the second pass creates a reference to each in its parent scope. As a result, the top-level final outputs are Namespaces and Records (and any declarations internal to functions are discarded).


https://reviews.llvm.org/D48341

Files:
  clang-tools-extra/clang-doc/Representation.cpp
  clang-tools-extra/clang-doc/Representation.h
  clang-tools-extra/clang-doc/YAMLGenerator.cpp
  clang-tools-extra/clang-doc/tool/ClangDocMain.cpp
  clang-tools-extra/test/clang-doc/yaml-comments.cpp
  clang-tools-extra/test/clang-doc/yaml-namespace.cpp
  clang-tools-extra/test/clang-doc/yaml-record.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D48341.151999.patch
Type: text/x-patch
Size: 45779 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180619/3d67e8d1/attachment-0001.bin>


More information about the cfe-commits mailing list