![]() |
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 70 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 1576 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.
If parsing C++ header file as source, do not use the precompiled header as the source file itself is likely already included in the PCH and therefore interferes visiting the TU's children.
Definition at line 1836 of file clangcodeparser.cpp.
References flags_, fromCXSourceLocation(), hasTooManyTopics(), CodeParser::isWorthWarningAbout(), kClangDontDisplayDiagnostics, Doc::location(), ClangVisitor::nodeForCommentAtLocation(), printDiagnostics(), Doc::topicsUsed(), and ClangVisitor::visitChildren().