Doxygen
|
Clang parser object for a single translation unit, which consists of a source file and the directly or indirectly included headers 更多...
#include <clangparser.h>
Public 成员函数 | |
ClangTUParser (const ClangParser &parser, const FileDef *fd) | |
virtual | ~ClangTUParser () |
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. 更多... | |
void | switchToFile (const FileDef *fd) |
Switches to another file within the translation unit started with start(). 更多... | |
StringVector | filesInSameTU () const |
Returns the list of files for this translation unit 更多... | |
std::string | lookup (uint line, const char *symbol) |
Looks for symbol which should be found at line. 更多... | |
void | writeSources (CodeOutputInterface &ol, const FileDef *fd) |
writes the syntax highlighted source code for a file 更多... | |
Private 成员函数 | |
void | detectFunctionBody (const char *s) |
void | writeLineNumber (CodeOutputInterface &ol, const FileDef *fd, uint line, bool writeLineAnchor) |
void | codifyLines (CodeOutputInterface &ol, const FileDef *fd, const char *text, uint &line, uint &column, const char *fontClass=0) |
void | writeMultiLineCodeLink (CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const Definition *d, const char *text) |
void | linkIdentifier (CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const char *text, int tokenIndex) |
void | linkMacro (CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const char *text) |
void | linkInclude (CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const char *text) |
ClangTUParser (const ClangTUParser &)=delete | |
ClangTUParser & | operator= (const ClangTUParser &)=delete |
Private 属性 | |
std::unique_ptr< Private > | p |
Clang parser object for a single translation unit, which consists of a source file and the directly or indirectly included headers
在文件 clangparser.h 第 21 行定义.
ClangTUParser::ClangTUParser | ( | const ClangParser & | parser, |
const FileDef * | fd | ||
) |
|
virtual |
|
privatedelete |
|
private |
|
private |
StringVector ClangTUParser::filesInSameTU | ( | ) | const |
Returns the list of files for this translation unit
|
private |
|
private |
|
private |
std::string ClangTUParser::lookup | ( | uint | line, |
const char * | symbol | ||
) |
Looks for symbol which should be found at line.
returns a clang unique reference to the symbol.
在文件 clangparser.cpp 第 920 行定义.
|
privatedelete |
void ClangTUParser::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.
在文件 clangparser.cpp 第 916 行定义.
被这些函数引用 parseFile().
void ClangTUParser::switchToFile | ( | const FileDef * | fd | ) |
Switches to another file within the translation unit started with start().
[in] | fd | The file definition with the name of the file to switch to. |
在文件 clangparser.cpp 第 912 行定义.
被这些函数引用 parseFile(), FileDefImpl::parseSource() , 以及 FileDefImpl::writeSourceBody().
|
private |
|
private |
void ClangTUParser::writeSources | ( | CodeOutputInterface & | ol, |
const FileDef * | fd | ||
) |
writes the syntax highlighted source code for a file
[out] | ol | The output generator list to write to. |
[in] | fd | The file to write sources for. |
被这些函数引用 FileDefImpl::parseSource() , 以及 FileDefImpl::writeSourceBody().
|
private |
在文件 clangparser.h 第 70 行定义.