Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
main.cpp File Reference
#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 <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 , CriticalChecks = PrivateHeaderChecks , AllChecks = NamespaceChecks | PrivateHeaderChecks | 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)
 
void utils::printInternalError ()
 
std::filesystem::path utils::normilizedPath (const std::string &path)
 
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 117 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 
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]

[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 1658 of file main.cpp.

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

+ Here is the call graph for this function:

◆ MasterHeaderIncludeComparator()

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

Definition at line 60 of file main.cpp.

References GlobalHeaderRegex().

+ Here is the call graph for this function:

Variable Documentation

◆ ErrorMessagePreamble

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

Definition at line 55 of file main.cpp.

Referenced by SyncScanner::parseHeader(), and SyncScanner::sync().

◆ LinkerScriptCommentAlignment

constexpr int LinkerScriptCommentAlignment = 55
constexpr

Definition at line 51 of file main.cpp.

Referenced by SyncScanner::parseVersionScriptContent().

◆ WarningMessagePreamble

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

Definition at line 56 of file main.cpp.