doxygen
|
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>
Classes | |
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... | |
Clang parser object for a single translation unit, which consists of a source file and the directly or indirectly included headers.
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.
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. |
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. |