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

Typedefs

using TranslatorMessageVector = std::vector<TranslatorMessage>
 

Functions

void loadCPP (Translator &translator, const QStringList &filenames, ConversionData &cd, bool *fail)
 
void collectMessages (TranslatorMessageVector &result, TranslationRelatedStore &store)
 
TranslatorMessage translatorMessage (const TranslationRelatedStore &store, const QString &id, bool plural, bool isID, bool isWarningOnly=false)
 
void correctAstTranslationContext (ReadSynchronizedRef< TranslationRelatedStore > &ast, WriteSynchronizedRef< TranslationRelatedStore > &newAst, const TranslationStores &qDecl)
 
void finalize (ReadSynchronizedRef< TranslationRelatedStore > &ast, WriteSynchronizedRef< TranslationRelatedStore > &newAst)
 
bool stringContainsTranslationInformation (llvm::StringRef ba)
 
bool hasAliases ()
 
std::vector< std::string > getAliasFunctionDefinition ()
 

Typedef Documentation

◆ TranslatorMessageVector

Definition at line 298 of file cpp_clang.h.

Function Documentation

◆ collectMessages()

void ClangCppParser::collectMessages ( TranslatorMessageVector & result,
TranslationRelatedStore & store )

Definition at line 529 of file cpp_clang.cpp.

References TranslationRelatedStore::isValid().

+ Here is the call graph for this function:

◆ correctAstTranslationContext()

void ClangCppParser::correctAstTranslationContext ( ReadSynchronizedRef< TranslationRelatedStore > & ast,
WriteSynchronizedRef< TranslationRelatedStore > & newAst,
const TranslationStores & qDecl )

Definition at line 705 of file cpp_clang.cpp.

◆ finalize()

Definition at line 698 of file cpp_clang.cpp.

◆ getAliasFunctionDefinition()

std::vector< std::string > ClangCppParser::getAliasFunctionDefinition ( )

Definition at line 165 of file cpp_clang.cpp.

◆ hasAliases()

bool ClangCppParser::hasAliases ( )

Definition at line 395 of file cpp_clang.cpp.

◆ loadCPP()

void ClangCppParser::loadCPP ( Translator & translator,
const QStringList & filenames,
ConversionData & cd,
bool * fail )

Definition at line 403 of file cpp_clang.cpp.

References LupdateToolActionFactory::LupdateToolActionFactory().

+ Here is the call graph for this function:

◆ stringContainsTranslationInformation()

bool ClangCppParser::stringContainsTranslationInformation ( llvm::StringRef ba)

Definition at line 284 of file cpp_clang.cpp.

Referenced by LupdatePPCallbacks::SourceRangeSkipped().

+ Here is the caller graph for this function:

◆ translatorMessage()

TranslatorMessage ClangCppParser::translatorMessage ( const TranslationRelatedStore & store,
const QString & id,
bool plural,
bool isID,
bool isWarningOnly = false )

Definition at line 636 of file cpp_clang.cpp.

References TranslatorMessage::setExtras(), TranslatorMessage::setLineNumber(), and TranslatorMessage::setWarningOnly().

+ Here is the call graph for this function: