Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <clangcodeparser.h>
Public Member Functions | |
ClangCodeParser (QDocDatabase *qdb, Config &, const std::vector< QByteArray > &include_paths, const QList< QByteArray > &defines, std::optional< std::reference_wrapper< const PCHFile > > pch) | |
ParsedCppFileIR | parse_cpp_file (const QString &filePath) |
Get ready to parse the C++ cpp file identified by filePath and add its parsed contents to the database. | |
Definition at line 68 of file clangcodeparser.h.
ClangCodeParser::ClangCodeParser | ( | QDocDatabase * | qdb, |
Config & | config, | ||
const std::vector< QByteArray > & | include_paths, | ||
const QList< QByteArray > & | defines, | ||
std::optional< std::reference_wrapper< const PCHFile > > | pch ) |
Definition at line 1447 of file clangcodeparser.cpp.
ParsedCppFileIR ClangCodeParser::parse_cpp_file | ( | const QString & | filePath | ) |
Get ready to parse the C++ cpp file identified by filePath and add its parsed contents to the database.
location is used for reporting errors.
Call matchDocsAndStuff() to do all the parsing and tree building.
Definition at line 1693 of file clangcodeparser.cpp.
References flags_, fromCXSourceLocation(), hasTooManyTopics(), CodeParser::isWorthWarningAbout(), kClangDontDisplayDiagnostics, Doc::location(), ClangVisitor::nodeForCommentAtLocation(), printDiagnostics(), Doc::topicsUsed(), and ClangVisitor::visitChildren().