[PATCH] D41102: Setup clang-doc frontend framework

Julie Hockett via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Feb 6 16:18:53 PST 2018


juliehockett updated this revision to Diff 133108.
juliehockett marked 27 inline comments as done.
juliehockett edited the summary of this revision.
juliehockett edited projects, added clang-tools-extra; removed clang.
juliehockett added a comment.

  1. Moved the tool to clang-tools-extra
1. Refactored tool to have two stages to the frontend parsing: the mapping stage (this patch), which uses ASTMatchers to extract declarations and serialize each into an individual key-value pair in the ExecutionContext, and the reducing stage (next patch, not yet implemented), which will take the records in the ExecutionContext and reduce them by key to produce and write the final output of the frontend.
  1. Replaced the YAML serialization with bitcode serialization. Will update again with tests once I've implemented a simple decoder for the serial bitcode format.
  2. Streamlined the emit*Info function call path.
  3. Introduced a new layer into the Info inheritance to better represent each level.


https://reviews.llvm.org/D41102

Files:
  CMakeLists.txt
  clang-doc/CMakeLists.txt
  clang-doc/ClangDoc.cpp
  clang-doc/ClangDoc.h
  clang-doc/ClangDocBinary.cpp
  clang-doc/ClangDocBinary.h
  clang-doc/ClangDocMapper.cpp
  clang-doc/ClangDocMapper.h
  clang-doc/tool/CMakeLists.txt
  clang-doc/tool/ClangDocMain.cpp
  docs/clang-doc.rst

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D41102.133108.patch
Type: text/x-patch
Size: 32396 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20180207/848fed5e/attachment-0001.bin>


More information about the cfe-commits mailing list