Doxygen
ClangTUParser类 参考

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
 
ClangTUParseroperator= (const ClangTUParser &)=delete
 

Private 属性

std::unique_ptr< Privatep
 

详细描述

Clang parser object for a single translation unit, which consists of a source file and the directly or indirectly included headers

在文件 clangparser.h21 行定义.

构造及析构函数说明

◆ ClangTUParser() [1/2]

ClangTUParser::ClangTUParser ( const ClangParser parser,
const FileDef fd 
)

◆ ~ClangTUParser()

virtual ClangTUParser::~ClangTUParser ( )
virtual

◆ ClangTUParser() [2/2]

ClangTUParser::ClangTUParser ( const ClangTUParser )
privatedelete

成员函数说明

◆ codifyLines()

void ClangTUParser::codifyLines ( CodeOutputInterface ol,
const FileDef fd,
const char *  text,
uint line,
uint column,
const char *  fontClass = 0 
)
private

◆ detectFunctionBody()

void ClangTUParser::detectFunctionBody ( const char *  s)
private

◆ filesInSameTU()

StringVector ClangTUParser::filesInSameTU ( ) const

Returns the list of files for this translation unit

◆ linkIdentifier()

void ClangTUParser::linkIdentifier ( CodeOutputInterface ol,
const FileDef fd,
uint line,
uint column,
const char *  text,
int  tokenIndex 
)
private

◆ linkInclude()

void ClangTUParser::linkInclude ( CodeOutputInterface ol,
const FileDef fd,
uint line,
uint column,
const char *  text 
)
private

◆ linkMacro()

void ClangTUParser::linkMacro ( CodeOutputInterface ol,
const FileDef fd,
uint line,
uint column,
const char *  text 
)
private

◆ lookup()

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.cpp920 行定义.

921 {
922  return std::string();
923 }

◆ operator=()

ClangTUParser& ClangTUParser::operator= ( const ClangTUParser )
privatedelete

◆ parse()

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.cpp916 行定义.

917 {
918 }

被这些函数引用 parseFile().

◆ switchToFile()

void ClangTUParser::switchToFile ( const FileDef fd)

Switches to another file within the translation unit started with start().

参数
[in]fdThe file definition with the name of the file to switch to.

在文件 clangparser.cpp912 行定义.

913 {
914 }

被这些函数引用 parseFile(), FileDefImpl::parseSource() , 以及 FileDefImpl::writeSourceBody().

◆ writeLineNumber()

void ClangTUParser::writeLineNumber ( CodeOutputInterface ol,
const FileDef fd,
uint  line,
bool  writeLineAnchor 
)
private

◆ writeMultiLineCodeLink()

void ClangTUParser::writeMultiLineCodeLink ( CodeOutputInterface ol,
const FileDef fd,
uint line,
uint column,
const Definition d,
const char *  text 
)
private

◆ writeSources()

void ClangTUParser::writeSources ( CodeOutputInterface ol,
const FileDef fd 
)

writes the syntax highlighted source code for a file

参数
[out]olThe output generator list to write to.
[in]fdThe file to write sources for.

被这些函数引用 FileDefImpl::parseSource() , 以及 FileDefImpl::writeSourceBody().

类成员变量说明

◆ p

std::unique_ptr<Private> ClangTUParser::p
private

在文件 clangparser.h70 行定义.


该类的文档由以下文件生成: