The ClangTUParser
Class Reference
Clang parser object for a single translation unit, which consists of a source file and the directly or indirectly included headers. More...
Declaration
Included Headers
Public Constructors Index
ClangTUParser (const ClangParser &parser, const FileDef *fd) | |
Public Destructor Index
~ClangTUParser () | |
Public Member Functions Index
void | parse () |
Parse the file given at construction time as a translation unit This file should already be preprocessed by doxygen preprocessor at the time of calling. More... | |
void | switchToFile (const FileDef *fd) |
Switches to another file within the translation unit started with start(). More... | |
StringVector | filesInSameTU () const |
Returns the list of files for this translation unit. More... | |
std::string | lookup (uint32_t line, const char *symbol) |
Looks for symbol which should be found at line. More... | |
void | writeSources (OutputCodeList &ol, const FileDef *fd) |
writes the syntax highlighted source code for a file More... | |
Private Member Functions Index
void | detectFunctionBody (const char *s) |
void | writeLineNumber (OutputCodeList &ol, const FileDef *fd, uint32_t line, bool writeLineAnchor) |
void | codifyLines (OutputCodeList &ol, const FileDef *fd, const char *text, uint32_t &line, uint32_t &column, const char *fontClass=nullptr) |
void | writeMultiLineCodeLink (OutputCodeList &ol, const FileDef *fd, uint32_t &line, uint32_t &column, const Definition *d, const char *text) |
void | linkIdentifier (OutputCodeList &ol, const FileDef *fd, uint32_t &line, uint32_t &column, const char *text, int tokenIndex) |
void | linkMacro (OutputCodeList &ol, const FileDef *fd, uint32_t &line, uint32_t &column, const char *text) |
void | linkInclude (OutputCodeList &ol, const FileDef *fd, uint32_t &line, uint32_t &column, const char *text) |
void | codeFolding (OutputCodeList &ol, const Definition *d, uint32_t line) |
void | endCodeFold (OutputCodeList &ol, uint32_t line) |
Private Member Attributes Index
std::unique_ptr< Private > | p |
Description
Clang parser object for a single translation unit, which consists of a source file and the directly or indirectly included headers.
Definition at line 24 of file clangparser.h.
Public Constructors
ClangTUParser()
|
Declaration at line 27 of file clangparser.h, definition at line 978 of file clangparser.cpp.
Reference p.
Public Destructor
~ClangTUParser()
| virtual |
Declaration at line 29 of file clangparser.h, definition at line 982 of file clangparser.cpp.
Public Member Functions
filesInSameTU()
|
Returns the list of files for this translation unit.
Definition at line 42 of file clangparser.h.
lookup()
|
Looks for symbol which should be found at line.
returns a clang unique reference to the symbol.
Declaration at line 47 of file clangparser.h, definition at line 986 of file clangparser.cpp.
parse()
|
Parse the file given at construction time as a translation unit This file should already be preprocessed by doxygen preprocessor at the time of calling.
Declaration at line 34 of file clangparser.h, definition at line 974 of file clangparser.cpp.
Referenced by parseFile.
switchToFile()
|
Switches to another file within the translation unit started with start().
- Parameters
-
[in] fd The file definition with the name of the file to switch to.
Declaration at line 39 of file clangparser.h, definition at line 970 of file clangparser.cpp.
Referenced by parseFile.
writeSources()
|
writes the syntax highlighted source code for a file
- Parameters
-
[out] ol The output generator list to write to.
[in] fd The file to write sources for.
Definition at line 53 of file clangparser.h.
Private Member Functions
codeFolding()
|
Definition at line 72 of file clangparser.h.
codifyLines()
|
Definition at line 58 of file clangparser.h.
detectFunctionBody()
|
Definition at line 56 of file clangparser.h.
endCodeFold()
|
Definition at line 73 of file clangparser.h.
linkIdentifier()
|
Definition at line 63 of file clangparser.h.
linkInclude()
|
Definition at line 69 of file clangparser.h.
linkMacro()
|
Definition at line 66 of file clangparser.h.
writeLineNumber()
|
Definition at line 57 of file clangparser.h.
writeMultiLineCodeLink()
|
Definition at line 60 of file clangparser.h.
Private Member Attributes
p
|
Definition at line 75 of file clangparser.h.
Referenced by ClangTUParser.
The documentation for this class was generated from the following files:
Generated via doxygen2docusaurus by Doxygen 1.14.0.