doxygen
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...

#include <clangparser.h>

class  Private

## Public Member Functions

ClangTUParser (const ClangParser &parser, const FileDef *fd)

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(). More...

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. More...

void writeSources (CodeOutputInterface &ol, const FileDef *fd)
writes the syntax highlighted source code for a file More...

## Detailed Description

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

## ◆ 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.

## ◆ switchToFile()

 void ClangTUParser::switchToFile ( const FileDef * fd )

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.

## ◆ writeSources()

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

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.

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