Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
ClangCodeParser Class Reference

#include <clangcodeparser.h>

Collaboration diagram for ClangCodeParser:

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.

Detailed Description

Definition at line 70 of file clangcodeparser.h.

Constructor & Destructor Documentation

◆ ClangCodeParser()

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.

Member Function Documentation

◆ parse_cpp_file()

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().

Here is the call graph for this function:

The documentation for this class was generated from the following files: