clang-tools 22.0.0git
clang::find_all_symbols::FindAllSymbols Class Reference

FindAllSymbols collects all classes, free standing functions and global variables with some extra information such as the path of the header file, the namespaces they are contained in, the type of variables and the parameter types of functions. More...

#include <FindAllSymbols.h>

Inheritance diagram for clang::find_all_symbols::FindAllSymbols:
[legend]

Public Member Functions

 FindAllSymbols (SymbolReporter *Reporter, HeaderMapCollector *Collector=nullptr)
void registerMatchers (ast_matchers::MatchFinder *MatchFinder)
void run (const ast_matchers::MatchFinder::MatchResult &result) override

Protected Member Functions

void onEndOfTranslationUnit () override

Detailed Description

FindAllSymbols collects all classes, free standing functions and global variables with some extra information such as the path of the header file, the namespaces they are contained in, the type of variables and the parameter types of functions.

NOTE:

  • Symbols declared in main files are not collected since they can not be included.
  • Member functions are not collected because accessing them must go through the class. #include fixer only needs the class name to find headers.

Definition at line 34 of file FindAllSymbols.h.

Constructor & Destructor Documentation

◆ FindAllSymbols()

clang::find_all_symbols::FindAllSymbols::FindAllSymbols ( SymbolReporter * Reporter,
HeaderMapCollector * Collector = nullptr )
inlineexplicit

Definition at line 36 of file FindAllSymbols.h.

Member Function Documentation

◆ onEndOfTranslationUnit()

void clang::find_all_symbols::FindAllSymbols::onEndOfTranslationUnit ( )
overrideprotected

Definition at line 261 of file FindAllSymbols.cpp.

◆ registerMatchers()

void clang::find_all_symbols::FindAllSymbols::registerMatchers ( ast_matchers::MatchFinder * MatchFinder)

Definition at line 117 of file FindAllSymbols.cpp.

◆ run()

void clang::find_all_symbols::FindAllSymbols::run ( const ast_matchers::MatchFinder::MatchResult & result)
override

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