Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
main.cpp File Reference

(73d00d05477fb6da25164b37135bb19a300bea8d)

#include <iostream>
#include <fstream>
#include <string>
#include <string_view>
#include <cstring>
#include <sstream>
#include <filesystem>
#include <unordered_map>
#include <vector>
#include <regex>
#include <map>
#include <set>
#include <stdexcept>
#include <array>
+ Include dependency graph for main.cpp:

Go to the source code of this file.

Classes

class  utils::DummyOutputStream
 
class  CommandLineOptions
 
class  SyncScanner
 

Namespaces

namespace  utils
 

Typedefs

using FileStamp = std::filesystem::file_time_type
 

Enumerations

enum  ErrorCodes { NoError = 0 , InvalidArguments , SyncFailed }
 
enum  HeaderChecks {
  NoChecks = 0 , NamespaceChecks = 1 , PrivateHeaderChecks = 2 , IncludeChecks = 4 ,
  WeMeantItChecks = 8 , PragmaOnceChecks = 16 , CriticalChecks = PrivateHeaderChecks | PragmaOnceChecks , AllChecks = NamespaceChecks | CriticalChecks | IncludeChecks | WeMeantItChecks
}
 

Functions

static const std::regex GlobalHeaderRegex ("^q(.*)global\\.h$")
 
bool MasterHeaderIncludeComparator (const std::string &a, const std::string &b)
 
std::string utils::asciiToLower (std::string s)
 
std::string utils::asciiToUpper (std::string s)
 
bool utils::parseVersion (const std::string &version, int &major, int &minor)
 
void utils::printInternalError ()
 
void utils::printFilesystemError (const std::filesystem::filesystem_error &fserr, std::string_view errorMsg)
 
std::filesystem::path utils::normilizedPath (const std::string &path)
 
bool utils::createDirectories (const std::string &path, std::string_view errorMsg, bool *exists=nullptr)
 
int main (int argc, char *argv[])
 [2]
 

Variables

constexpr int LinkerScriptCommentAlignment = 55
 
constexpr std::string_view ErrorMessagePreamble = "ERROR: "
 
constexpr std::string_view WarningMessagePreamble = "WARNING: "
 
utils::DummyOutputStream utils::DummyOutput
 

Typedef Documentation

◆ FileStamp

using FileStamp = std::filesystem::file_time_type

Definition at line 179 of file main.cpp.

Enumeration Type Documentation

◆ ErrorCodes

enum ErrorCodes
Enumerator
NoError 
InvalidArguments 
SyncFailed 

Definition at line 33 of file main.cpp.

◆ HeaderChecks

Enumerator
NoChecks 
NamespaceChecks 
PrivateHeaderChecks 
IncludeChecks 
WeMeantItChecks 
PragmaOnceChecks 
CriticalChecks 
AllChecks 

Definition at line 40 of file main.cpp.

Function Documentation

◆ GlobalHeaderRegex()

static const std::regex GlobalHeaderRegex ( "^q(.*)global\\.h$" )
static

Referenced by MasterHeaderIncludeComparator(), and SyncScanner::processHeader().

+ Here is the caller graph for this function:

◆ main()

int main ( int argc,
char * argv[] )

[2]

[3]

[2]

[printing a custom type]

[printing a custom type] [storing a custom value]

[storing a custom value]

[retrieving a custom value]

[retrieving a custom value]

[0]

[0] [1]

[1]

[0]

[0]

[1]

[1] [2]

[2]

[0]

[0]

[2]

[2]

[22]

[22]

[3]

[3]

[4]

[4]

[10]

[10]

[qcinfo_stream]

[qcinfo_stream]

[11]

[11]

[12]

[12]

[13]

[13]

[qcinfo_printf]

[qcinfo_printf]

[14]

[14]

[15]

[15]

[16]

[16]

[17]

[17]

[0]

[0]

[1]

[1]

[2]

[2]

[Window class using revision]

[Window class using revision]

[0]

[0]

[0]

[0]

[1]

[1]

[2]

[2]

[0]

[0]

[write output] [start stream]

[start stream]

[write element]

[write element]

[finish stream]

[finish stream] [write output]

[1]

[1]

[0]

[0]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1]

[0]

[0] //! [1]

[1] //! [2]

[2]

[0]

[0]

[1]

[1]

[Adding a resource]

[Adding a resource]

[Inserting an image with a cursor]

[Inserting an image with a cursor]

[Inserting an image using HTML]

[Inserting an image using HTML]

[0]

[0] //! [1]

[1]

Definition at line 1831 of file main.cpp.

References InvalidArguments, CommandLineOptions::isValid(), NoError, CommandLineOptions::printHelp(), and CommandLineOptions::printHelpOnly().

+ Here is the call graph for this function:

◆ MasterHeaderIncludeComparator()

bool MasterHeaderIncludeComparator ( const std::string & a,
const std::string & b )

Definition at line 61 of file main.cpp.

References GlobalHeaderRegex().

+ Here is the call graph for this function:

Variable Documentation

◆ ErrorMessagePreamble

constexpr std::string_view ErrorMessagePreamble = "ERROR: "
constexpr

◆ LinkerScriptCommentAlignment

constexpr int LinkerScriptCommentAlignment = 55
constexpr

Definition at line 52 of file main.cpp.

Referenced by SyncScanner::parseVersionScriptContent().

◆ WarningMessagePreamble

constexpr std::string_view WarningMessagePreamble = "WARNING: "
constexpr

Definition at line 57 of file main.cpp.

Referenced by SyncScanner::generateDeprecatedHeaders().