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
LupdatePrivate Namespace Reference

Classes

class  BeforeThanCompare
 

Enumerations

enum  QuoteCompulsary { None = 0x01 , Left = 0x02 , Right = 0x04 , LeftAndRight = Left | Right }
 

Functions

void exploreChildrenForFirstStringLiteral (clang::Stmt *stmt, QString &context)
 
bool isQObjectOrQDeclareTrFunctionMacroDeclared (clang::CXXRecordDecl *recordDecl, QString &context, const clang::SourceManager &sm)
 
QString exploreBases (clang::CXXRecordDecl *recordDecl, const clang::SourceManager &sm)
 
QString lookForContext (clang::CXXRecordDecl *recordDecl, const clang::SourceManager &sm)
 
QString contextForNoopMacro (clang::NamedDecl *namedDecl, const clang::SourceManager &sm)
 
QString contextForFunctionDecl (clang::FunctionDecl *func, const std::string &funcName)
 
static bool capture (const QRegularExpression &exp, const QString &line, QString *i, QString *c)
 
bool hasQuote (llvm::StringRef source)
 
bool trFunctionPresent (llvm::StringRef text)
 
bool isPointWithin (const clang::SourceRange &sourceRange, const clang::SourceLocation &point, const clang::SourceManager &sm)
 
QString fixedLineEndings (const QString &s)
 
QString cleanQuote (llvm::StringRef s, QuoteCompulsary quote)
 
QString cleanQuote (const std::string &token)
 
bool isFileSignificant (const std::string &filePath)
 

Enumeration Type Documentation

◆ QuoteCompulsary

Enumerator
None 
Left 
Right 
LeftAndRight 

Definition at line 231 of file cpp_clang.h.

Function Documentation

◆ capture()

static bool LupdatePrivate::capture ( const QRegularExpression & exp,
const QString & line,
QString * i,
QString * c )
static

Definition at line 204 of file clangtoolastreader.cpp.

References Left.

◆ cleanQuote() [1/2]

QString LupdatePrivate::cleanQuote ( const std::string & token)
inline

Definition at line 262 of file cpp_clang.h.

References LeftAndRight.

◆ cleanQuote() [2/2]

QString LupdatePrivate::cleanQuote ( llvm::StringRef s,
QuoteCompulsary quote )
inline

Definition at line 245 of file cpp_clang.h.

References Left, and Right.

◆ contextForFunctionDecl()

QString LupdatePrivate::contextForFunctionDecl ( clang::FunctionDecl * func,
const std::string & funcName )

Definition at line 190 of file clangtoolastreader.cpp.

◆ contextForNoopMacro()

QString LupdatePrivate::contextForNoopMacro ( clang::NamedDecl * namedDecl,
const clang::SourceManager & sm )

Definition at line 152 of file clangtoolastreader.cpp.

◆ exploreBases()

QString LupdatePrivate::exploreBases ( clang::CXXRecordDecl * recordDecl,
const clang::SourceManager & sm )

Definition at line 124 of file clangtoolastreader.cpp.

◆ exploreChildrenForFirstStringLiteral()

void LupdatePrivate::exploreChildrenForFirstStringLiteral ( clang::Stmt * stmt,
QString & context )

Definition at line 14 of file clangtoolastreader.cpp.

◆ fixedLineEndings()

QString LupdatePrivate::fixedLineEndings ( const QString & s)
inline

Definition at line 220 of file cpp_clang.h.

◆ hasQuote()

bool LupdatePrivate::hasQuote ( llvm::StringRef source)

Definition at line 220 of file clangtoolastreader.cpp.

Referenced by LupdateVisitor::VisitCallExpr().

+ Here is the caller graph for this function:

◆ isFileSignificant()

bool LupdatePrivate::isFileSignificant ( const std::string & filePath)
inline

Definition at line 55 of file filesignificancecheck.h.

Referenced by LupdatePPCallbacks::InclusionDirective(), LupdatePPCallbacks::MacroExpands(), LupdatePPCallbacks::SourceRangeSkipped(), LupdateVisitor::VisitCallExpr(), and LupdateVisitor::VisitNamedDecl().

+ Here is the caller graph for this function:

◆ isPointWithin()

bool LupdatePrivate::isPointWithin ( const clang::SourceRange & sourceRange,
const clang::SourceLocation & point,
const clang::SourceManager & sm )

Definition at line 262 of file clangtoolastreader.cpp.

◆ isQObjectOrQDeclareTrFunctionMacroDeclared()

bool LupdatePrivate::isQObjectOrQDeclareTrFunctionMacroDeclared ( clang::CXXRecordDecl * recordDecl,
QString & context,
const clang::SourceManager & sm )

Definition at line 43 of file clangtoolastreader.cpp.

◆ lookForContext()

QString LupdatePrivate::lookForContext ( clang::CXXRecordDecl * recordDecl,
const clang::SourceManager & sm )

Definition at line 98 of file clangtoolastreader.cpp.

◆ trFunctionPresent()

bool LupdatePrivate::trFunctionPresent ( llvm::StringRef text)

Definition at line 225 of file clangtoolastreader.cpp.