MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches
MayaFlux::Reflect::Tool::RequestCollector Class Reference

Turns each MF_DESCRIBE alias in the scanned translation unit into a RecordRequest. More...

#include <Collector.hpp>

Inheritance diagram for MayaFlux::Reflect::Tool::RequestCollector:
Collaboration diagram for MayaFlux::Reflect::Tool::RequestCollector:

Public Member Functions

void attach (clang::ast_matchers::MatchFinder &finder)
 Registers the matcher for the marker aliases on finder.
const std::vector< std::string > & errors () const noexcept
std::size_t matched () const noexcept
 Marker aliases the matcher reached, before any filtering.
const RequestMap & requests () const noexcept
void run (const clang::ast_matchers::MatchFinder::MatchResult &result) override
std::size_t skipped () const noexcept
 Marker aliases ignored for sitting in a system header or an invalid location.

Private Member Functions

void describe_nested (const clang::CXXRecordDecl *record, const std::filesystem::path &header, unsigned line, const clang::SourceManager &manager)
bool store (const std::filesystem::path &header, RecordRequest request, const std::string &where)

Private Attributes

std::vector< std::string > m_errors
std::size_t m_matched {}
RequestMap m_requests
std::size_t m_skipped {}

Detailed Description

Turns each MF_DESCRIBE alias in the scanned translation unit into a RecordRequest.

Attach it to a MatchFinder, run the finder, then read requests() and errors(). Requests are grouped by the header holding the marker.

Definition at line 14 of file Collector.hpp.


The documentation for this class was generated from the following files: