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 68 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 1447 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.

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

+ Here is the call graph for this function:

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