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.h File Reference

(ddbc7a6f21d513d529c79ab0e13bc7362e1e3872)

#include "codeparser.h"
#include "inclusionpolicy.h"
#include "parsererror.h"
#include "config.h"
#include <QtCore/qtemporarydir.h>
#include <QtCore/QStringList>
#include <optional>
Include dependency graph for clangcodeparser.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  ParsedCppFileIR
struct  PCHFile
struct  FnCommandParser
class  ClangCodeParser

Typedefs

typedef struct CXTranslationUnitImpl * CXTranslationUnit

Functions

std::optional< PCHFilebuildPCH (QDocDatabase *qdb, QString module_header, const std::set< Config::HeaderFilePath > &all_headers, const std::vector< QByteArray > &include_paths, const QList< QByteArray > &defines, const InclusionPolicy &policy)
 Building the PCH must be possible when there are no .cpp files, so it is moved here to its own member function, and it is called after the list of header files is complete.

Typedef Documentation

◆ CXTranslationUnit

typedef struct CXTranslationUnitImpl* CXTranslationUnit

Definition at line 17 of file clangcodeparser.h.

Function Documentation

◆ buildPCH()

std::optional< PCHFile > buildPCH ( QDocDatabase * qdb,
QString module_header,
const std::set< Config::HeaderFilePath > & all_headers,
const std::vector< QByteArray > & include_paths,
const QList< QByteArray > & defines,
const InclusionPolicy & policy )

Building the PCH must be possible when there are no .cpp files, so it is moved here to its own member function, and it is called after the list of header files is complete.

Definition at line 1680 of file clangcodeparser.cpp.

References flags_, kClangDontDisplayDiagnostics, printDiagnostics(), TranslationUnit::tu, and ClangVisitor::visitChildren().

Here is the call graph for this function: