Wrapper for to let libclang assisted parsing. More...
#include <clangparser.h>
Public Member Functions | |
| void | start (const char *fileName, QStrList &filesInTranslationUnit) |
| void | switchToFile (const char *fileName) |
| void | finish () |
| QCString | lookup (uint line, const char *symbol) |
| void | writeSources (CodeOutputInterface &ol, FileDef *fd) |
Static Public Member Functions | |
| static ClangParser * | instance () |
Private Member Functions | |
| void | linkIdentifier (CodeOutputInterface &ol, FileDef *fd, uint &line, uint &column, const char *text, int tokenIndex) |
| void | linkMacro (CodeOutputInterface &ol, FileDef *fd, uint &line, uint &column, const char *text) |
| void | linkInclude (CodeOutputInterface &ol, FileDef *fd, uint &line, uint &column, const char *text) |
| void | determineInputFilesInSameTu (QStrList &filesInTranslationUnit) |
| ClangParser () | |
| virtual | ~ClangParser () |
Private Attributes | |
| Private * | p |
Static Private Attributes | |
| static ClangParser * | s_instance = 0 |
Wrapper for to let libclang assisted parsing.
Definition at line 11 of file clangparser.h.
|
private |
Definition at line 931 of file clangparser.cpp.
|
privatevirtual |
Definition at line 935 of file clangparser.cpp.
|
private |
| void ClangParser::finish | ( | ) |
Finishes parsing a translation unit. Free any resources that were needed for parsing.
Definition at line 918 of file clangparser.cpp.
|
static |
|
private |
|
private |
|
private |
Looks for symbol which should be found at line and returns a clang unique reference to the symbol.
Definition at line 922 of file clangparser.cpp.
| void ClangParser::start | ( | const char * | fileName, |
| QStrList & | filesInTranslationUnit | ||
| ) |
Start parsing a file.
| [in] | fileName | The name of the file to parse. |
| [in,out] | filesInTranslationUnit | Other files that are part of the input and included by the file. The function will return a subset of the files, only including the onces that were actually found during parsing. |
Definition at line 910 of file clangparser.cpp.
| void ClangParser::switchToFile | ( | const char * | fileName | ) |
Switches to another file within the translation unit started with start().
| [in] | fileName | The name of the file to switch to. |
Definition at line 914 of file clangparser.cpp.
| void ClangParser::writeSources | ( | CodeOutputInterface & | ol, |
| 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. |
Definition at line 927 of file clangparser.cpp.
|
private |
Definition at line 60 of file clangparser.h.
|
staticprivate |
Definition at line 64 of file clangparser.h.
1.8.11