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
cpp_clang.h File Reference

(af8e7873980b08e65f5fe1f53e94356aea5cde54)

#include "lupdate.h"
#include "synchronized.h"
#include <QtCore/qloggingcategory.h>
#include <QtCore/qregularexpression.h>
#include <QtCore/qstring.h>
#include <llvm/ADT/StringRef.h>
#include <clang/Basic/SourceLocation.h>
#include <clang/Basic/SourceManager.h>
#include <clang/Basic/FileManager.h>
#include <vector>
#include <iostream>
#include <sstream>
+ Include dependency graph for cpp_clang.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  TranslationRelatedStore
 
struct  Stores
 

Namespaces

namespace  LupdatePrivate
 
namespace  ClangCppParser
 

Macros

#define LUPDATE_CLANG_VERSION_CHECK(major, minor, patch)
 
#define LUPDATE_CLANG_VERSION
 

Typedefs

using TranslationStores = std::vector<TranslationRelatedStore>
 
using ClangCppParser::TranslatorMessageVector = std::vector<TranslatorMessage>
 

Enumerations

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

Functions

QT_WARNING_PUSH QT_WARNING_POP QT_BEGIN_NAMESPACE QString toQt (llvm::StringRef str)
 
QString LupdatePrivate::fixedLineEndings (const QString &s)
 
QString LupdatePrivate::cleanQuote (llvm::StringRef s, QuoteCompulsary quote)
 
QString LupdatePrivate::cleanQuote (const std::string &token)
 
void ClangCppParser::loadCPP (Translator &translator, const QStringList &filenames, ConversionData &cd, bool *fail)
 
void ClangCppParser::collectMessages (TranslatorMessageVector &result, TranslationRelatedStore &store)
 
TranslatorMessage ClangCppParser::translatorMessage (const TranslationRelatedStore &store, const QString &id, bool plural, bool isID, bool isWarningOnly=false)
 
void ClangCppParser::correctAstTranslationContext (ReadSynchronizedRef< TranslationRelatedStore > &ast, WriteSynchronizedRef< TranslationRelatedStore > &newAst, const TranslationStores &qDecl)
 
void ClangCppParser::finalize (ReadSynchronizedRef< TranslationRelatedStore > &ast, WriteSynchronizedRef< TranslationRelatedStore > &newAst)
 
bool ClangCppParser::stringContainsTranslationInformation (llvm::StringRef ba)
 
bool ClangCppParser::hasAliases ()
 
std::vector< std::string > ClangCppParser::getAliasFunctionDefinition ()
 

Macro Definition Documentation

◆ LUPDATE_CLANG_VERSION

#define LUPDATE_CLANG_VERSION
Value:
LUPDATE_CLANG_VERSION_CHECK(LUPDATE_CLANG_VERSION_MAJOR, \
LUPDATE_CLANG_VERSION_MINOR, LUPDATE_CLANG_VERSION_PATCH)
#define LUPDATE_CLANG_VERSION_CHECK(major, minor, patch)
Definition cpp_clang.h:41

Definition at line 42 of file cpp_clang.h.

◆ LUPDATE_CLANG_VERSION_CHECK

#define LUPDATE_CLANG_VERSION_CHECK ( major,
minor,
patch )
Value:
((major<<16)|(minor<<8)|(patch))
manager patch(request, myData, this, [this](QRestReply &reply) { if(reply.isSuccess()) })
[9]

Definition at line 41 of file cpp_clang.h.

Typedef Documentation

◆ TranslationStores

Function Documentation

◆ toQt()

QT_WARNING_PUSH QT_WARNING_POP QT_BEGIN_NAMESPACE QString toQt ( llvm::StringRef str)
inline

Definition at line 36 of file cpp_clang.h.