MayaFlux 1.0.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ scan() [2/2]

bool MayaFlux::Reflect::Tool::scan ( const ScanInput & input,
RequestCollector & collector,
std::string & error )
nodiscard

Parses every header of input in one translation unit and fills collector.

The translation unit borrows the compile command of input.translation_unit, or of the first database entry under a root, then the first entry overall. Its source is replaced in memory by the marker definitions and an include of each header. Precompiled-header inputs are dropped from the command.

Each name in input.stubs is written as an empty header into the scan's temporary directory, which is added as an include path. A header whose sidecar does not exist yet still parses, and the source tree is not touched.

Returns
false with error set when the database, the command or Clang fails.

Definition at line 176 of file Scan.cpp.

177{
178 return scan(input, [&collector](clang::ast_matchers::MatchFinder& finder) { collector.attach(finder); }, error);
179}
void attach(clang::ast_matchers::MatchFinder &finder)
Registers the matcher for the marker aliases on finder.
bool scan(const ScanInput &input, RequestCollector &collector, std::string &error)
Parses every header of input in one translation unit and fills collector.
Definition Scan.cpp:176

References MayaFlux::Reflect::Tool::RequestCollector::attach(), and scan().

Referenced by scan().

Here is the call graph for this function:
Here is the caller graph for this function: