![]() |
Qt 6.x
The Qt SDK
|
Public Member Functions | |
SyncScanner (CommandLineOptions *commandLineArgs) | |
std::filesystem::path | makeHeaderAbsolute (const std::string &filename) const |
ErrorCodes | sync () |
bool | copyGeneratedHeadersToStagingDirectory (const std::string &outputDirectory, bool skipCleanup=false) |
void | resetCurrentFileInfoData (const std::filesystem::path &headerFile) |
bool | processHeader (const std::filesystem::path &headerFile) |
void | parseVersionScriptContent (const std::string buffer, ParsingResult &result) |
bool | parseHeader (const std::filesystem::path &headerFile, ParsingResult &result, unsigned int skipChecks) |
bool | checkLineForSymbols (const std::string &line, std::string &symbol) |
bool | isHeaderQpa (const std::string &headerFileName) |
bool | isHeaderRhi (const std::string &headerFileName) |
bool | isHeaderPrivate (const std::string &headerFile) |
bool | isHeaderPCH (const std::string &headerFilename) |
bool | isHeader (const std::filesystem::path &path) |
bool | isDocFileHeuristic (const std::string &headerFilePath) |
bool | isHeaderGenerated (const std::string &header) |
bool | generateQtCamelCaseFileIfContentChanged (const std::string &outputFilePath, const std::string &aliasedFilePath) |
bool | generateAliasedHeaderFileIfTimestampChanged (const std::string &outputFilePath, const std::string &aliasedFilePath, const FileStamp &originalStamp=FileStamp::clock::now()) |
bool | writeIfDifferent (const std::string &outputFile, const std::string &buffer) |
bool | generateMasterHeader () |
bool | generateVersionHeader (const std::string &outputFile) |
bool | generateDeprecatedHeaders () |
bool | generateHeaderCheckExceptions () |
bool | generateLinkerVersionScript () |
bool | updateOrCopy (const std::filesystem::path &src, const std::filesystem::path &dst) |
void | updateSymbolDescriptor (const std::string &symbol, const std::string &file, SymbolDescriptor::SourceType type) |
|
inline |
|
inline |
Definition at line 1311 of file main.cpp.
Referenced by parseHeader().
|
inline |
Definition at line 702 of file main.cpp.
References header(), CommandLineOptions::includeDir(), CommandLineOptions::showOnly(), and updateOrCopy().
Referenced by sync().
bool SyncScanner::generateAliasedHeaderFileIfTimestampChanged | ( | const std::string & | outputFilePath, |
const std::string & | aliasedFilePath, | ||
const FileStamp & | originalStamp = FileStamp::clock::now() |
||
) |
Definition at line 1575 of file main.cpp.
References CommandLineOptions::showOnly().
Referenced by processHeader(), and sync().
|
inline |
Definition at line 1448 of file main.cpp.
References QSet< T >::begin(), QSet< T >::end(), CommandLineOptions::includeDir(), it, CommandLineOptions::moduleName(), and writeIfDifferent().
Referenced by sync().
|
inline |
Definition at line 1475 of file main.cpp.
References CommandLineOptions::binaryDir(), header(), CommandLineOptions::moduleName(), and writeIfDifferent().
Referenced by sync().
|
inline |
Definition at line 1486 of file main.cpp.
References CommandLineOptions::versionScriptFile(), and writeIfDifferent().
Referenced by sync().
|
inline |
Definition at line 1402 of file main.cpp.
References utils::asciiToUpper(), CommandLineOptions::includeDir(), CommandLineOptions::moduleName(), outputFile, and writeIfDifferent().
Referenced by sync().
bool SyncScanner::generateQtCamelCaseFileIfContentChanged | ( | const std::string & | outputFilePath, |
const std::string & | aliasedFilePath | ||
) |
Definition at line 1559 of file main.cpp.
References CommandLineOptions::showOnly(), and writeIfDifferent().
Referenced by sync().
|
inline |
Definition at line 1431 of file main.cpp.
References utils::asciiToUpper(), CommandLineOptions::moduleName(), outputFile, and writeIfDifferent().
Referenced by sync().
|
inline |
|
inline |
|
inline |
Definition at line 1387 of file main.cpp.
References CommandLineOptions::generatedHeaders(), and header().
Referenced by processHeader().
|
inline |
Definition at line 1370 of file main.cpp.
Referenced by processHeader().
|
inline |
Definition at line 1365 of file main.cpp.
References CommandLineOptions::privateHeadersRegex().
Referenced by parseHeader(), and resetCurrentFileInfoData().
|
inline |
Definition at line 1355 of file main.cpp.
References CommandLineOptions::qpaHeadersRegex().
Referenced by resetCurrentFileInfoData().
|
inline |
Definition at line 1360 of file main.cpp.
References CommandLineOptions::rhiHeadersRegex().
Referenced by resetCurrentFileInfoData().
std::filesystem::path SyncScanner::makeHeaderAbsolute | ( | const std::string & | filename | ) | const |
Definition at line 1512 of file main.cpp.
References utils::normilizedPath(), and CommandLineOptions::sourceDir().
Referenced by sync().
|
inline |
Definition at line 993 of file main.cpp.
References AllChecks, QString::append(), QString::at(), checkLineForSymbols(), QString::clear(), ErrorMessagePreamble, i, IncludeChecks, CommandLineOptions::includeDir(), isHeaderPrivate(), CommandLineOptions::knownModules(), line, match(), CommandLineOptions::moduleName(), NamespaceChecks, NoChecks, parseVersionScriptContent(), PrivateHeaderChecks, CommandLineOptions::publicNamespaceRegex(), CommandLineOptions::showOnly(), QString::size(), str, updateSymbolDescriptor(), and WeMeantItChecks.
Referenced by processHeader().
|
inline |
Definition at line 914 of file main.cpp.
References CommandLineOptions::binaryDir(), LinkerScriptCommentAlignment, match(), CommandLineOptions::sourceDir(), and str.
Referenced by parseHeader().
|
inline |
Definition at line 752 of file main.cpp.
References AllChecks, CommandLineOptions::binaryDir(), CommandLineOptions::copy(), generateAliasedHeaderFileIfTimestampChanged(), GlobalHeaderRegex(), IncludeChecks, CommandLineOptions::includeDir(), isHeaderGenerated(), isHeaderPCH(), CommandLineOptions::isNonQtModule(), CommandLineOptions::minimal(), NamespaceChecks, NoChecks, parseHeader(), PrivateHeaderChecks, CommandLineOptions::privateIncludeDir(), CommandLineOptions::qpaIncludeDir(), resetCurrentFileInfoData(), CommandLineOptions::rhiIncludeDir(), CommandLineOptions::scanAllMode(), updateOrCopy(), updateSymbolDescriptor(), CommandLineOptions::versionScriptFile(), and WeMeantItChecks.
Referenced by sync().
|
inline |
Definition at line 727 of file main.cpp.
References isHeaderPrivate(), isHeaderQpa(), isHeaderRhi(), and CommandLineOptions::sourceDir().
Referenced by processHeader().
|
inline |
Definition at line 564 of file main.cpp.
References AllChecks, utils::asciiToLower(), QSet< T >::begin(), copyGeneratedHeadersToStagingDirectory(), QSet< T >::end(), error, ErrorMessagePreamble, CommandLineOptions::frameworkIncludeDir(), generateAliasedHeaderFileIfTimestampChanged(), generateDeprecatedHeaders(), generateHeaderCheckExceptions(), generateLinkerVersionScript(), generateMasterHeader(), generateQtCamelCaseFileIfContentChanged(), generateVersionHeader(), header(), CommandLineOptions::headers(), CommandLineOptions::includeDir(), QSet< T >::insert(), isDocFileHeuristic(), CommandLineOptions::isFramework(), isHeader(), CommandLineOptions::isNonQtModule(), it, makeHeaderAbsolute(), CommandLineOptions::minimal(), CommandLineOptions::moduleName(), NoError, processHeader(), CommandLineOptions::scanAllMode(), CommandLineOptions::sourceDir(), CommandLineOptions::stagingDir(), SyncFailed, CommandLineOptions::versionScriptFile(), and CommandLineOptions::warningsAreErrors().
Referenced by main().
bool SyncScanner::updateOrCopy | ( | const std::filesystem::path & | src, |
const std::filesystem::path & | dst | ||
) |
Definition at line 1520 of file main.cpp.
References CommandLineOptions::showOnly().
Referenced by copyGeneratedHeadersToStagingDirectory(), and processHeader().
void SyncScanner::updateSymbolDescriptor | ( | const std::string & | symbol, |
const std::string & | file, | ||
SymbolDescriptor::SourceType | type | ||
) |
Definition at line 1503 of file main.cpp.
References file, and CommandLineOptions::showOnly().
Referenced by parseHeader(), and processHeader().
bool SyncScanner::writeIfDifferent | ( | const std::string & | outputFile, |
const std::string & | buffer | ||
) |
Definition at line 1599 of file main.cpp.
References outputFile, and CommandLineOptions::showOnly().
Referenced by generateDeprecatedHeaders(), generateHeaderCheckExceptions(), generateLinkerVersionScript(), generateMasterHeader(), generateQtCamelCaseFileIfContentChanged(), and generateVersionHeader().