浏览该文件的文档.
14 namespace clang {
namespace tooling {
15 class CompilationDatabase;
43 std::string
lookup(
uint line,
const char *symbol);
55 uint &line,
uint &column,
const char *fontClass=0);
61 const char *text,
int tokenIndex);
71 std::unique_ptr<Private>
p;
84 const clang::tooling::CompilationDatabase *
database()
const;
86 std::unique_ptr<Private>
p;
std::vector< std::string > StringVector
void switchToFile(const FileDef *fd)
Switches to another file within the translation unit started with start().
The common base class of all entity definitions found in the sources.
void linkMacro(CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const char *text)
This file contains a number of basic enums and types.
void writeMultiLineCodeLink(CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const Definition *d, const char *text)
static ClangParser * s_instance
const clang::tooling::CompilationDatabase * database() const
void codifyLines(CodeOutputInterface &ol, const FileDef *fd, const char *text, uint &line, uint &column, const char *fontClass=0)
std::string lookup(uint line, const char *symbol)
Looks for symbol which should be found at line.
static ClangParser * instance()
Returns the one and only instance of the class
std::unique_ptr< Private > p
void linkIdentifier(CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const char *text, int tokenIndex)
void writeSources(CodeOutputInterface &ol, const FileDef *fd)
writes the syntax highlighted source code for a file
std::unique_ptr< Private > p
ClangTUParser & operator=(const ClangTUParser &)=delete
void detectFunctionBody(const char *s)
void writeLineNumber(CodeOutputInterface &ol, const FileDef *fd, uint line, bool writeLineAnchor)
void linkInclude(CodeOutputInterface &ol, const FileDef *fd, uint &line, uint &column, const char *text)
std::unique_ptr< ClangTUParser > createTUParser(const FileDef *fd) const
void parse()
Parse the file given at construction time as a translation unit This file should already be preproces...
Output interface for code parser.
Clang parser object for a single translation unit, which consists of a source file and the directly o...
A model of a file symbol.
Wrapper for to let libclang assisted parsing.
StringVector filesInSameTU() const
Returns the list of files for this translation unit
ClangTUParser(const ClangParser &parser, const FileDef *fd)