[PATCH] D157076: [clang][ExtractAPI] Add support for C++ class templates and concepts

Erick Velez via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Aug 16 16:45:03 PDT 2023


evelez7 updated this revision to Diff 550937.
evelez7 marked 5 inline comments as done.
evelez7 added a comment.

Address review feedback

- Handle inheriting from a template parameter.
- Add a new test to check inheriting from a template parameter.
- Move base class gathering to a new private method for code reuse.
- Move Template class to API.h and convert getTemplate functions to constructors.
- Rename all instances of Spec to Specialization.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D157076/new/

https://reviews.llvm.org/D157076

Files:
  clang/include/clang/ExtractAPI/API.h
  clang/include/clang/ExtractAPI/DeclarationFragments.h
  clang/include/clang/ExtractAPI/ExtractAPIVisitor.h
  clang/include/clang/ExtractAPI/Serialization/SerializerBase.h
  clang/include/clang/ExtractAPI/Serialization/SymbolGraphSerializer.h
  clang/lib/ExtractAPI/API.cpp
  clang/lib/ExtractAPI/DeclarationFragments.cpp
  clang/lib/ExtractAPI/Serialization/SymbolGraphSerializer.cpp
  clang/test/ExtractAPI/class_template.cpp
  clang/test/ExtractAPI/class_template_param_inheritance.cpp
  clang/test/ExtractAPI/class_template_partial_spec.cpp
  clang/test/ExtractAPI/class_template_spec.cpp
  clang/test/ExtractAPI/concept.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D157076.550937.patch
Type: text/x-patch
Size: 61820 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20230816/32e0a5fc/attachment-0001.bin>


More information about the cfe-commits mailing list