|
clang-tools 22.0.0git
|
HeaderMappCollector collects all remapping header files. More...
#include <HeaderMapCollector.h>
Public Types | |
| typedef llvm::StringMap< std::string > | HeaderMap |
| typedef std::vector< std::pair< const char *, const char * > > | RegexHeaderMap |
Public Member Functions | |
| HeaderMapCollector ()=default | |
| HeaderMapCollector (const RegexHeaderMap *RegexHeaderMappingTable) | |
| void | addHeaderMapping (llvm::StringRef OrignalHeaderPath, llvm::StringRef MappingHeaderPath) |
| llvm::StringRef | getMappedHeader (llvm::StringRef Header) const |
Check if there is a mapping from Header or a regex pattern that matches it to another header name. | |
HeaderMappCollector collects all remapping header files.
This maps complete header names or header name regex patterns to header names.
Definition at line 22 of file HeaderMapCollector.h.
| typedef llvm::StringMap<std::string> clang::find_all_symbols::HeaderMapCollector::HeaderMap |
Definition at line 24 of file HeaderMapCollector.h.
| typedef std::vector<std::pair<const char *, const char *> > clang::find_all_symbols::HeaderMapCollector::RegexHeaderMap |
Definition at line 25 of file HeaderMapCollector.h.
|
default |
|
explicit |
Definition at line 15 of file HeaderMapCollector.cpp.
|
inline |
Definition at line 30 of file HeaderMapCollector.h.
| llvm::StringRef clang::find_all_symbols::HeaderMapCollector::getMappedHeader | ( | llvm::StringRef | Header | ) | const |
Check if there is a mapping from Header or a regex pattern that matches it to another header name.
| Header | A header name. |
Header itself if there is no mapping for it; otherwise, return a mapped header name. Definition at line 26 of file HeaderMapCollector.cpp.
Referenced by clang::find_all_symbols::getIncludePath().