Namespaces | |
asthelpers | |
details | |
Classes | |
struct | IsClangNewerThan |
class | ArrayInitCodeGenerator |
class | StructuredBindingsCodeGenerator |
class | UsingCodeGenerator |
Handle using statements which pull functions ore members from a base class into the class. More... | |
class | LambdaInitCaptureCodeGenerator |
A special code generator for Lambda init captures which use std::move . More... | |
class | LambdaNameOnlyCodeGenerator |
class | BindingDeclFinder |
Find a DeclRefExpr belonging to a DecompositionDecl . More... | |
class | TemporaryDeclFinder |
Find a DeclRefExpr belonging to a DecompositionDecl . More... | |
class | ContinueASTTransformer |
class | CppInsightsCommentStmt |
struct | LifetimeEntry |
class | LifetimeTracker |
class | CodeGenerator |
More or less the heart of C++ Insights. More... | |
class | LambdaCodeGenerator |
class | MultiStmtDeclCodeGenerator |
struct | CoroutineASTData |
class | CoroutinesCodeGenerator |
A special generator for coroutines. It is only activated, if -show-coroutines-transformation is given as a command line option. More... | |
class | CfrontCodeGenerator |
A special generator for coroutines. It is only activated, if -show-coroutines-transformation is given as a command line option. More... | |
class | CodeGeneratorVariant |
A special container which creates either a CodeGenerator or a CfrontCodeGenerator depending on the command line options. More... | |
class | CoroutineASTTransformer |
Find a SuspendsExpr's in a coroutine body statement for early transformation. More... | |
struct | CppInsightsPrintingPolicy |
struct | overloaded |
struct | ScopeHelper |
Track the scope we are currently in to build a properly scoped variable. More... | |
class | ScopeHandler |
The ScopeHandler tracks the current scope. More... | |
class | StringStream |
Specialization for ::llvm::raw_string_ostream with an internal std::string buffer. More... | |
class | FinalAction |
A helper which invokes a lambda when the scope is destroyed. More... | |
struct | is |
Handy helper to avoid longish comparisons. More... | |
class | P0315Visitor |
! Find a LambdaExpr inside a Decltype More... | |
struct | BackupAndRestore |
class | MyOptional |
class | Once |
A helper object which returns a boolean value just once and toggles it after the first query. More... | |
class | OutputFormatHelper |
The C++ Insights formatter. More... | |
Typedefs | |
using | GlobalInsertMap = std::pair< bool, std::string_view > |
using | OnceTrue = Once< true > |
Returns true only once, following checks return false. More... | |
using | OnceFalse = Once< false > |
Returns false only once, following checks return true. More... | |
Enumerations | |
enum class | GlobalInserts { HeaderNew , HeaderException , HeaderUtility , HeaderStddef , HeaderAssert , HeaderStdlib , FuncCxaStart , FuncCxaAtExit , FuncMalloc , FuncFree , FuncMemset , FuncMemcpy , FuncCxaVecNew , FuncCxaVecCtor , FuncCxaVecDel , FuncCxaVecDtor , FuncVtableStruct , FuncCxaPureVirtual , MAX } |
Functions | |
static MemberExpr * | AccessMember (std::string_view name, const ValueDecl *vd, QualType type) |
static bool | IsCopyOrMoveCtor (const CXXConstructorDecl *ctor) |
static bool | IsCopyOrMoveAssign (const CXXMethodDecl *stmt) |
static std::string | GetSpecialMemberName (const ValueDecl *vd, QualType type) |
std::string | GetSpecialMemberName (const ValueDecl *vd) |
static bool | HasCtor (QualType t) |
static bool | HasDtor (QualType t) |
static auto * | CallVecDeleteOrDtor (Expr *objectParam, QualType allocatedType, std::string_view name, uint64_t size) |
static auto * | CallVecDelete (Expr *objectParam, QualType allocatedType) |
static auto * | CallVecDtor (Expr *objectParam, const ConstantArrayType *ar) |
static auto * | CallVecNewOrCtor (std::string_view ctorName, Expr *objectParam, QualType allocatedType, Expr *arraySizeExpr, std::string_view funName) |
static auto * | CallVecNew (std::string_view ctorName, Expr *objectParam, QualType allocatedType, Expr *arraySizeExpr) |
static auto * | CallVecCtor (std::string_view ctorName, const VarDecl *objectParam, QualType allocatedType, Expr *arraySizeExpr) |
static void | InsertVtblPtr (const CXXMethodDecl *stmt, const CXXRecordDecl *cur, StmtsContainer &bodyStmts) |
static void | ProcessFields (CXXRecordDecl *recordDecl, const CXXRecordDecl *rd) |
static std::string | GetFirstPolymorphicBaseName (const RecordDecl *decl, const RecordDecl *to) |
static const CXXRecordDecl * | GetFirstPolymorphicBase (const RecordDecl *decl) |
! Find the first polymorphic base class. More... | |
BUILD_OPT_AND (IsPointer, QualType) | |
BUILD_OPT_AND (IsPOD, QualType) | |
BUILD_OPT_AND_O (CanonicalType, const InitListExpr &, QualType) | |
static std::string | AccessToStringWithColon (const AccessSpecifier &access) |
static std::string_view | GetCastName (const CastKind castKind, bool constnessChange=false) |
static std::string_view | GetTagDeclTypeName (const TagDecl &decl) |
static std::string_view | ArrowOrDot (bool isArrow) |
template<typename T > | |
static T | ValueOrDefault (bool b, T v) |
template<typename T > | |
static T | ValueOr (bool b, T val, T el) |
static std::optional< std::string > | GetFieldDeclNameForLambda (const FieldDecl &fieldDecl, const CXXRecordDecl &cxxRecordDecl) |
static std::string_view | GetStorageClassAsString (const StorageClass &sc) |
static std::string | GetStorageClassAsStringWithSpace (const StorageClass &sc) |
static std::string | GetQualifiers (const VarDecl &vd) |
static std::string | FormatVarTemplateSpecializationDecl (const Decl *decl, std::string &&defaultName) |
int | GetGlobalVtablePos (const CXXRecordDecl *record, const CXXRecordDecl *recordB) |
void | PushVtableEntry (const CXXRecordDecl *record, const CXXRecordDecl *recordB, VarDecl *decl) |
static void | PushGlobalVariable (const Expr *callExpr) |
static void | PushGlobalVariableDtor (const Expr *callExpr) |
std::string | EmitGlobalVariableCtors () |
static bool | IsPrimaryTemplatePackExpansionExpr (const ParenListExpr *stmt) |
static std::string | GetTypeConstraintAsString (const TypeConstraint *typeConstraint) |
static std::string_view | Ellipsis (bool b) |
static std::string_view | EllipsisSpace (bool b) |
static std::optional< std::pair< QualType, APValue > > | EvaluateNTTPAsConstantExpr (const Expr *expr) |
Evaluates a potential NTTP as a constant expression. More... | |
template<typename... Args> | |
static bool | IsStmtRequiringSemi (const Stmt *stmt) |
static bool | IsConstQualifiedType (QualType type) |
static auto & | GetRecordLayout (const RecordDecl *recordDecl) |
auto | GetSpaces (std::string::size_type offset) |
static FieldDecl * | AddField (CoroutineASTData &astData, std::string_view name, QualType type) |
static auto * | CreateCoroFunctionDecl (std::string funcName, QualType type) |
static void | SetFunctionBody (FunctionDecl *fd, StmtsContainer &bodyStmts) |
static std::string | BuildSuspendVarName (const OpaqueValueExpr *stmt) |
static std::optional< std::string > | FindValue (llvm::DenseMap< const Expr *, std::pair< const DeclRefExpr *, std::string >> &map, const Expr *key) |
static void | ToDo (std::string_view name, OutputFormatHelper &outputFormatHelper, std::source_location loc) |
void | ToDo (const Stmt *stmt, OutputFormatHelper &outputFormatHelper, std::source_location loc) |
void | ToDo (const Decl *stmt, OutputFormatHelper &outputFormatHelper, std::source_location loc) |
void | ToDo (const class TemplateArgument &stmt, class OutputFormatHelper &outputFormatHelper, std::source_location loc=std::source_location::current()) |
Helper function to generate TODO comments for an unsupported TemplateArgument. More... | |
void | DPrint ([[maybe_unused]] const char *fmt, [[maybe_unused]] const auto &... args) |
Debug print which is disabled in release-mode. More... | |
void | Error (const char *fmt, const auto &... args) |
Log an error. More... | |
void | Dump ([[maybe_unused]] const auto *stmt) |
void | Error (const Decl *stmt, const char *fmt, const auto &... args) |
Log an error. More... | |
void | Error (const Stmt *stmt, const char *fmt, const auto &... args) |
Log an error. More... | |
void | ToDo (const class Stmt *stmt, class OutputFormatHelper &outputFormatHelper, std::source_location loc=std::source_location::current()) |
Helper function to generate TODO comments for an unsupported Stmt. More... | |
void | ToDo (const class Decl *stmt, class OutputFormatHelper &outputFormatHelper, std::source_location loc=std::source_location::current()) |
Helper function to generate TODO comments for an unsupported Decl. More... | |
void | AddGLobalInsertMapEntry (GlobalInserts idx, std::string_view value) |
void | EnableGlobalInsert (GlobalInserts idx) |
static std::string | GetNamePlain (const NamedDecl &decl) |
std::string | GetPlainName (const DeclRefExpr &DRE) |
STRONG_BOOL (InsightsSuppressScope) | |
STRONG_BOOL (InsightsCanonicalTypes) | |
static std::string | GetUnqualifiedScopelessName (const Type *type, const InsightsSuppressScope supressScope) |
void | ReplaceAll (std::string &str, std::string_view from, std::string_view to) |
std::string | GetNestedName (const NestedNameSpecifier *nns, const IgnoreNamespace ignoreNamespace) |
static const std::string | GetAsCPPStyleString (const QualType &t, const CppInsightsPrintingPolicy &printingPolicy) |
std::string | BuildInternalVarName (const std::string_view &varName) |
static std::string | BuildInternalVarName (const std::string_view &varName, const SourceLocation &loc, const SourceManager &sm) |
void | InsertBefore (std::string &source, const std::string_view &find, const std::string_view &replace) |
static void | InsertAfter (std::string &source, const std::string_view &find, const std::string_view &replace) |
std::string | MakeLineColumnName (const SourceManager &sm, const SourceLocation &loc, const std::string_view &prefix) |
static std::string | MakeLineColumnName (const Decl &decl, const std::string_view prefix) |
std::string | GetLambdaName (const CXXRecordDecl &lambda) |
static std::string | GetAnonymStructOrUnionName (const CXXRecordDecl &cxxRecordDecl) |
std::string | BuildRetTypeName (const Decl &decl) |
const QualType | GetDesugarType (const QualType &QT) |
Remove decltype from a QualType, if possible. More... | |
static const VarDecl * | GetVarDeclFromDeclRefExpr (const DeclRefExpr &declRefExpr) |
std::string | GetDeclContext (const DeclContext *ctx, WithTemplateParameters withTemplateParameters) |
static bool | HasOverload (const FunctionDecl *fd) |
std::string | GetCfrontOverloadedFunctionName (const FunctionDecl *fd) |
STRONG_BOOL (UseLexicalParent) | |
static bool | NeedsNamespace (const Decl &decl, UseLexicalParent useLexicalParent) |
static const SubstTemplateTypeParmType * | GetSubstTemplateTypeParmType (const Type *t) |
static const DeclRefExpr * | FindVarDeclRef (const Stmt *stmt) |
static std::string | GetTemplateParameterPackArgumentName (std::string_view name, const Decl *decl) |
std::string | GetName (const NamedDecl &nd, const QualifiedName qualifiedName) |
std::string | BuildTemplateParamObjectName (std::string name) |
std::string | GetName (const TemplateParamObjectDecl &decl) |
std::string | GetName (const CXXRecordDecl &RD) |
std::string | GetTemporaryName (const Expr &tmp) |
std::string | GetName (const CXXTemporaryObjectExpr &tmp) |
std::string | GetName (const QualType &t, const Unqualified unqualified) |
std::string | GetUnqualifiedScopelessName (const Type *type) |
QualType | GetType (QualType) |
In Cfront mode we transform references to pointers. More... | |
template<typename QT , typename SUB_T , typename SUB_T2 = void> | |
static bool | HasTypeWithSubType (const QualType &t) |
template<typename QT , typename SUB_T > | |
static bool | HasTypePath (const QualType &t) |
std::string | GetTypeNameAsParameter (const QualType &t, std::string_view varName, const Unqualified unqualified) |
void | AppendTemplateTypeParamName (OutputFormatHelper &ofm, const TemplateTypeParmDecl *decl, const bool isParameter, const TemplateTypeParmType *type) |
static bool | IsTrivialStaticClassVarDecl (const DeclRefExpr &declRefExpr) |
APValue * | GetEvaluatedValue (const VarDecl &varDecl) |
Get the evaluated APValue from a VarDecl More... | |
bool | IsEvaluatable (const VarDecl &varDecl) |
Check whether a VarDecl s initialization can be done a compile-time. More... | |
bool | IsTrivialStaticClassVarDecl (const VarDecl &varDecl) |
std::string | GetName (const DeclRefExpr &declRefExpr) |
const DeclRefExpr * | FindDeclRef (const Stmt *stmt) |
Go deep in a Stmt if necessary and look to all childs for a DeclRefExpr. More... | |
std::string | GetName (const VarDecl &VD) |
static std::optional< bool > | EvaluateAsBoolenCondition (const Expr &expr, const Decl &decl) |
const std::string | GetNoExcept (const FunctionDecl &decl) |
const std::string_view | GetConst (const FunctionDecl &decl) |
std::string | GetElaboratedTypeKeyword (const ElaboratedTypeKeyword keyword) |
uint64_t | GetSize (const ConstantArrayType *arrayType) |
template<class... Ts> | |
overloaded (Ts...) -> overloaded< Ts... > | |
bool | IsStaticStorageClass (const CXXMethodDecl *md) |
bool | IsReferenceType (const ValueDecl *decl) |
bool | IsReferenceType (const DeclRefExpr *decl) |
bool | Contains (const std::string_view source, const std::string_view search) |
template<typename K , typename V , typename U > | |
bool | Contains (const llvm::DenseMap< K, V > &map, const U &key) |
const SourceManager & | GetSM (const Decl &decl) |
const LangOptions & | GetLangOpts (const Decl &decl) |
STRONG_BOOL (QualifiedName) | |
std::string | GetNameAsFunctionPointer (const QualType &t) |
std::string | GetLambdaName (const LambdaExpr &lambda) |
bool | IsAnonymousStructOrUnion (const CXXRecordDecl *cxxRecordDecl) |
Check whether this is an anonymous struct or union. More... | |
QualType | GetDesugarReturnType (const FunctionDecl &FD) |
STRONG_BOOL (Unqualified) | |
STRONG_BOOL (WithTemplateParameters) | |
STRONG_BOOL (IgnoreNamespace) | |
template<typename QT , typename SUB_T > | |
static bool | TypeContainsSubType (const QualType &t) |
template<typename T , typename TFunc > | |
void | for_each (T start, T end, TFunc &&func) |
template<typename T > | |
is (T) -> is< T > | |
std::string | ToString (const llvm::APSInt &val) |
uint64_t | Normalize (const llvm::APInt &arg) |
std::string | Normalize (const llvm::APSInt &arg) |
std::string | Normalize (const llvm::APFloat &arg) |
std::string | Normalize (const APValue &arg) |
std::string_view | Normalize (const StringRef &arg) |
static std::string | Normalize (const CharUnits &arg) |
template<class T > | |
decltype(auto) | Normalize (const T &arg) |
std::string | StrCat (const auto &... args) |
Variables | |
static llvm::DenseMap< std::pair< const CXXRecordDecl *, const CXXRecordDecl * >, int > | mThisPointerOffset {} |
Store the this pointer offset from derived to base class. More... | |
template<typename T > | |
std::function | Isa |
static SmallVector< std::pair< std::pair< const CXXRecordDecl *, const CXXRecordDecl * >, VarDecl * >, 10 > | gVtables {} |
static SmallVector< Expr *, 10 > | globalVarCtors {} |
static SmallVector< Expr *, 10 > | globalVarDtors {} |
constexpr std::string_view | CORO_FRAME_NAME {"__f"sv} |
const std::string | CORO_FRAME_ACCESS {StrCat(CORO_FRAME_NAME, "->"sv)} |
const std::string | CORO_FRAME_ACCESS_THIS {StrCat(CORO_FRAME_ACCESS, kwInternalThis)} |
const std::string | SUSPEND_INDEX_NAME {BuildInternalVarName("suspend_index"sv)} |
const std::string | INITIAL_AWAIT_SUSPEND_CALLED_NAME {BuildInternalVarName("initial_await_suspend_called"sv)} |
const std::string | RESUME_LABEL_PREFIX {BuildInternalVarName("resume"sv)} |
const std::string | FINAL_SUSPEND_NAME {BuildInternalVarName("final_suspend"sv)} |
static constinit std::array< GlobalInsertMap, static_cast< size_t >GlobalInserts::MAX)> | gGlobalInserts {} |
using clang::insights::GlobalInsertMap = typedef std::pair<bool, std::string_view> |
Definition at line 97 of file Insights.cpp.
using clang::insights::OnceFalse = typedef Once<false> |
Returns false only once, following checks return true.
Definition at line 57 of file InsightsOnce.h.
using clang::insights::OnceTrue = typedef Once<true> |
Returns true only once, following checks return false.
Definition at line 55 of file InsightsOnce.h.
|
strong |
Definition at line 40 of file Insights.h.
|
static |
Definition at line 33 of file CfrontCodeGenerator.cpp.
References clang::insights::asthelpers::AccessMember(), and clang::insights::asthelpers::mkVarDeclRefExpr().
Referenced by clang::insights::CfrontCodeGenerator::InsertArg(), clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl(), and InsertVtblPtr().
|
static |
Definition at line 80 of file CodeGenerator.cpp.
|
static |
Definition at line 61 of file CoroutinesCodeGenerator.cpp.
References clang::insights::CoroutineASTData::mFrameType, and clang::insights::asthelpers::mkFieldDecl().
Referenced by clang::insights::CoroutinesCodeGenerator::InsertArg(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), ProcessFields(), clang::insights::CoroutineASTTransformer::VisitCoroutineBodyStmt(), and clang::insights::CoroutineASTTransformer::VisitDeclStmt().
void clang::insights::AddGLobalInsertMapEntry | ( | GlobalInserts | idx, |
std::string_view | value | ||
) |
void clang::insights::AppendTemplateTypeParamName | ( | OutputFormatHelper & | ofm, |
const TemplateTypeParmDecl * | decl, | ||
const bool | isParameter, | ||
const TemplateTypeParmType * | type | ||
) |
Definition at line 1339 of file InsightsHelpers.cpp.
References clang::insights::OutputFormatHelper::Append(), and clang::insights::StringStream::Print().
Referenced by clang::insights::CodeGenerator::InsertTemplateParameters().
|
static |
Definition at line 281 of file CodeGenerator.cpp.
clang::insights::BUILD_OPT_AND | ( | IsPOD | , |
QualType | |||
) |
Definition at line 57 of file CodeGenerator.cpp.
References GetGlobalAST().
clang::insights::BUILD_OPT_AND | ( | IsPointer | , |
QualType | |||
) |
Definition at line 48 of file CodeGenerator.cpp.
clang::insights::BUILD_OPT_AND_O | ( | CanonicalType | , |
const InitListExpr & | , | ||
QualType | |||
) |
Definition at line 75 of file CodeGenerator.cpp.
std::string clang::insights::BuildInternalVarName | ( | const std::string_view & | varName | ) |
Definition at line 220 of file InsightsHelpers.cpp.
References StrCat().
Referenced by clang::insights::OutputFormatHelper::AppendParameterList(), BuildInternalVarName(), BuildSuspendVarName(), CreateCoroFunctionDecl(), GetName(), GetTemplateParameterPackArgumentName(), GetTemporaryName(), clang::insights::CodeGenerator::HandleLocalStaticNonTrivialClass(), clang::insights::CfrontCodeGenerator::InsertArg(), and clang::insights::CoroutinesCodeGenerator::InsertCoroutine().
|
static |
Definition at line 227 of file InsightsHelpers.cpp.
References BuildInternalVarName(), and StrCat().
std::string clang::insights::BuildRetTypeName | ( | const Decl & | decl | ) |
Definition at line 285 of file InsightsHelpers.cpp.
References MakeLineColumnName().
Referenced by clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
|
static |
Definition at line 96 of file CoroutinesCodeGenerator.cpp.
References BuildInternalVarName(), GetGlobalAST(), and MakeLineColumnName().
Referenced by clang::insights::CoroutinesCodeGenerator::InsertArg(), and clang::insights::CoroutineASTTransformer::VisitCoawaitExpr().
std::string clang::insights::BuildTemplateParamObjectName | ( | std::string | name | ) |
Definition at line 1117 of file InsightsHelpers.cpp.
References ReplaceAll().
Referenced by GetName(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), and clang::insights::CodeGenerator::InsertTemplateArg().
|
static |
Definition at line 290 of file CfrontCodeGenerator.cpp.
References CallVecNewOrCtor(), EnableGlobalInsert(), FuncCxaVecCtor, and clang::insights::asthelpers::mkDeclRefExpr().
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
static |
Definition at line 215 of file CfrontCodeGenerator.cpp.
References CallVecDeleteOrDtor(), EnableGlobalInsert(), and FuncCxaVecDel.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
static |
Definition at line 202 of file CfrontCodeGenerator.cpp.
References clang::insights::asthelpers::Call(), clang::insights::asthelpers::CastToVoidFunPtr(), GetSpecialMemberName(), clang::insights::asthelpers::Int32(), and clang::insights::asthelpers::Sizeof().
Referenced by CallVecDelete(), and CallVecDtor().
|
static |
Definition at line 223 of file CfrontCodeGenerator.cpp.
References CallVecDeleteOrDtor(), EnableGlobalInsert(), FuncCxaVecDtor, and GetSize().
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
static |
Definition at line 281 of file CfrontCodeGenerator.cpp.
References CallVecNewOrCtor(), EnableGlobalInsert(), and FuncCxaVecNew.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
static |
Definition at line 253 of file CfrontCodeGenerator.cpp.
References clang::insights::asthelpers::Call(), clang::insights::asthelpers::CastToVoidFunPtr(), GetSpecialMemberName(), HasDtor(), clang::insights::asthelpers::Int32(), kwNull, and clang::insights::asthelpers::Sizeof().
Referenced by CallVecCtor(), and CallVecNew().
|
inline |
Definition at line 65 of file InsightsHelpers.h.
|
inline |
Definition at line 58 of file InsightsHelpers.h.
Referenced by GetName(), GetTypeNameAsParameter(), and clang::insights::CoroutineASTTransformer::VisitDeclRefExpr().
|
static |
Definition at line 81 of file CoroutinesCodeGenerator.cpp.
References BuildInternalVarName(), CORO_FRAME_NAME, clang::insights::asthelpers::Function(), and clang::insights::asthelpers::VoidTy().
Referenced by clang::insights::CoroutinesCodeGenerator::InsertCoroutine().
|
inline |
Debug print which is disabled in release-mode.
It takes a variable number of parameters which are normalized if they are a std::string or a StringRef.
Definition at line 71 of file DPrint.h.
References clang::insights::details::FPrintf().
Referenced by clang::insights::CfrontCodeGenerator::InsertArg(), clang::insights::LambdaCodeGenerator::InsertArg(), and clang::insights::CodeGenerator::InsertArg().
|
inline |
|
static |
Definition at line 1733 of file CodeGenerator.cpp.
References kwElipsis, and ValueOrDefault().
Referenced by clang::insights::CodeGenerator::InsertAttribute(), and clang::insights::CodeGenerator::InsertTemplateParameters().
|
static |
Definition at line 1739 of file CodeGenerator.cpp.
References kwElipsisSpace, and ValueOrDefault().
Referenced by clang::insights::CodeGenerator::InsertTemplateParameters().
std::string clang::insights::EmitGlobalVariableCtors | ( | ) |
Definition at line 1124 of file CodeGenerator.cpp.
References clang::insights::asthelpers::StmtsContainer::AddBodyStmts(), clang::insights::OutputFormatHelper::AppendNewLine(), cxaAtExit, cxaStart, clang::insights::asthelpers::Function(), globalVarCtors, globalVarDtors, gVtables, clang::insights::asthelpers::InitList(), clang::insights::CodeGenerator::InsertArg(), clang::insights::asthelpers::mkCompoundStmt(), clang::insights::asthelpers::mkDeclRefExpr(), clang::insights::asthelpers::VoidTy(), clang::insights::CfrontCodeGenerator::VtableData(), and clang::insights::CfrontCodeGenerator::CfrontVtableData::VtblArrayVar().
Referenced by CppInsightASTConsumer::HandleTranslationUnit().
void clang::insights::EnableGlobalInsert | ( | GlobalInserts | idx | ) |
Definition at line 106 of file Insights.cpp.
References gGlobalInserts.
Referenced by CallVecCtor(), CallVecDelete(), CallVecDtor(), CallVecNew(), clang::insights::CodeGenerator::HandleLocalStaticNonTrivialClass(), clang::insights::CfrontCodeGenerator::InsertArg(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), clang::insights::CodeGenerator::InsertMethodBody(), and main().
|
inline |
Log an error.
Definition at line 80 of file DPrint.h.
References clang::insights::details::FPrintf().
Referenced by Error(), clang::insights::CodeGenerator::GetValueOfValueInit(), main(), and ToDo().
|
inline |
|
inline |
|
static |
Definition at line 1503 of file InsightsHelpers.cpp.
Referenced by GetNoExcept().
|
static |
Evaluates a potential NTTP as a constant expression.
Used for C++20's struct/class as NTTP.
Definition at line 1748 of file CodeGenerator.cpp.
References GetGlobalAST().
Referenced by clang::insights::CodeGenerator::InsertTemplateArg(), and clang::insights::CodeGenerator::InsertTemplateParameters().
const DeclRefExpr * clang::insights::FindDeclRef | ( | const Stmt * | stmt | ) |
Go deep in a Stmt if necessary and look to all childs for a DeclRefExpr.
Definition at line 1448 of file InsightsHelpers.cpp.
Referenced by GetName(), clang::insights::CoroutinesCodeGenerator::InsertArg(), and clang::insights::CoroutineASTTransformer::VisitCoroutineBodyStmt().
|
static |
Definition at line 818 of file CoroutinesCodeGenerator.cpp.
Referenced by clang::insights::CoroutinesCodeGenerator::InsertArg().
|
static |
Definition at line 1012 of file InsightsHelpers.cpp.
Referenced by GetTemplateParameterPackArgumentName().
void clang::insights::for_each | ( | T | start, |
T | end, | ||
TFunc && | func | ||
) |
Definition at line 218 of file InsightsHelpers.h.
Referenced by clang::insights::CodeGenerator::FillConstantArray().
|
static |
Definition at line 873 of file CodeGenerator.cpp.
|
static |
Definition at line 278 of file InsightsHelpers.cpp.
References MakeLineColumnName().
Referenced by GetName().
|
static |
Definition at line 214 of file InsightsHelpers.cpp.
Referenced by clang::insights::details::GetName().
|
static |
Definition at line 93 of file CodeGenerator.cpp.
References clang::insights::is< T >::any_of(), kwReinterpretCast, and kwStaticCast.
std::string clang::insights::GetCfrontOverloadedFunctionName | ( | const FunctionDecl * | fd | ) |
Definition at line 900 of file InsightsHelpers.cpp.
References GetInsightsOptions(), GetName(), GetSpecialMemberName(), HasOverload(), and ReplaceAll().
Referenced by GetName().
const std::string_view clang::insights::GetConst | ( | const FunctionDecl & | decl | ) |
Definition at line 1549 of file InsightsHelpers.cpp.
References kwSpaceConst.
Referenced by clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
std::string clang::insights::GetDeclContext | ( | const DeclContext * | ctx, |
WithTemplateParameters | withTemplateParameters | ||
) |
Definition at line 321 of file InsightsHelpers.cpp.
References clang::insights::OutputFormatHelper::Append(), clang::insights::CodeGenerator::InsertTemplateArgs(), and clang::insights::CodeGenerator::InsertTemplateParameters().
Referenced by clang::insights::details::GetQualifiedName(), and clang::insights::CodeGenerator::ParseDeclContext().
|
inline |
Definition at line 166 of file InsightsHelpers.h.
References GetDesugarType().
Referenced by clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
const QualType clang::insights::GetDesugarType | ( | const QualType & | QT | ) |
Remove decltype from a QualType, if possible.
Definition at line 292 of file InsightsHelpers.cpp.
Referenced by GetDesugarReturnType(), HasTypePath(), HasTypeWithSubType(), clang::insights::LambdaCodeGenerator::InsertArg(), and TypeContainsSubType().
std::string clang::insights::GetElaboratedTypeKeyword | ( | const ElaboratedTypeKeyword | keyword | ) |
Definition at line 1561 of file InsightsHelpers.cpp.
Referenced by clang::insights::details::BuildNamespace().
APValue * clang::insights::GetEvaluatedValue | ( | const VarDecl & | varDecl | ) |
Get the evaluated APValue from a VarDecl
Returns nullptr
is the VarDecl
is not evaluatable.
Definition at line 1370 of file InsightsHelpers.cpp.
Referenced by IsEvaluatable().
|
static |
Get the name of a FieldDecl
in case this FieldDecl
is part of a lambda. The name has to be retrieved from the capture fields or can be __this
.
Definition at line 597 of file CodeGenerator.cpp.
References GetName(), and kwInternalThis.
|
static |
! Find the first polymorphic base class.
Definition at line 1010 of file CfrontCodeGenerator.cpp.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
static |
Definition at line 830 of file CfrontCodeGenerator.cpp.
References GetName().
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
int clang::insights::GetGlobalVtablePos | ( | const CXXRecordDecl * | record, |
const CXXRecordDecl * | recordB | ||
) |
Definition at line 1093 of file CodeGenerator.cpp.
References gVtables.
Referenced by InsertVtblPtr().
std::string clang::insights::GetLambdaName | ( | const CXXRecordDecl & | lambda | ) |
Definition at line 271 of file InsightsHelpers.cpp.
References MakeLineColumnName().
Referenced by GetLambdaName(), GetName(), clang::insights::LambdaNameOnlyCodeGenerator::InsertArg(), and clang::insights::P0315Visitor::VisitLambdaExpr().
|
inline |
Definition at line 123 of file InsightsHelpers.h.
References GetLambdaName().
|
inline |
Definition at line 83 of file InsightsHelpers.h.
Referenced by clang::insights::CodeGenerator::HandleLocalStaticNonTrivialClass().
std::string clang::insights::GetName | ( | const CXXRecordDecl & | RD | ) |
Definition at line 1140 of file InsightsHelpers.cpp.
References GetAnonymStructOrUnionName(), GetLambdaName(), GetNestedName(), clang::insights::details::GetQualifiedName(), NeedsNamespace(), and clang::insights::ScopeHandler::RemoveCurrentScope().
std::string clang::insights::GetName | ( | const CXXTemporaryObjectExpr & | tmp | ) |
Definition at line 1170 of file InsightsHelpers.cpp.
References GetTemporaryName().
std::string clang::insights::GetName | ( | const DeclRefExpr & | declRefExpr | ) |
Definition at line 1402 of file InsightsHelpers.cpp.
References BuildInternalVarName(), GetCfrontOverloadedFunctionName(), GetName(), GetPlainName(), clang::insights::details::GetQualifiedName(), clang::insights::details::GetScope(), GetTemplateParameterPackArgumentName(), GetVarDeclFromDeclRefExpr(), IsTrivialStaticClassVarDecl(), kwReinterpretCast, NeedsNamespace(), clang::insights::ScopeHandler::RemoveCurrentScope(), and StrCat().
std::string clang::insights::GetName | ( | const NamedDecl & | nd, |
const QualifiedName | qualifiedName | ||
) |
Definition at line 1095 of file InsightsHelpers.cpp.
References GetCfrontOverloadedFunctionName(), GetNamePlain(), clang::insights::details::GetScope(), GetTemplateParameterPackArgumentName(), NeedsNamespace(), and clang::insights::ScopeHandler::RemoveCurrentScope().
Referenced by clang::insights::OutputFormatHelper::AppendParameterList(), clang::insights::CfrontCodeGenerator::FormatCast(), GetCfrontOverloadedFunctionName(), GetFieldDeclNameForLambda(), GetFirstPolymorphicBaseName(), GetName(), GetSpecialMemberName(), clang::insights::CfrontCodeGenerator::InsertArg(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl(), clang::insights::CodeGenerator::InsertLambdaStaticInvoker(), clang::insights::CodeGenerator::InsertTemplateArgsObjectParam(), clang::insights::CodeGenerator::InsertTemplateParameters(), ProcessFields(), clang::insights::ScopeHandler::ScopeHandler(), clang::insights::CoroutineASTTransformer::VisitCoroutineBodyStmt(), clang::insights::TemporaryDeclFinder::VisitCXXTemporaryObjectExpr(), clang::insights::CoroutineASTTransformer::VisitDeclStmt(), and clang::insights::CfrontCodeGenerator::CfrontVtableData::VtblPtrField().
std::string clang::insights::GetName | ( | const QualType & | t, |
const Unqualified | unqualified | ||
) |
Definition at line 1176 of file InsightsHelpers.cpp.
References clang::insights::details::GetName().
std::string clang::insights::GetName | ( | const TemplateParamObjectDecl & | decl | ) |
Definition at line 1131 of file InsightsHelpers.cpp.
References BuildTemplateParamObjectName(), clang::insights::StringStream::Print(), and clang::insights::ScopeHandler::RemoveCurrentScope().
std::string clang::insights::GetName | ( | const VarDecl & | VD | ) |
Definition at line 1474 of file InsightsHelpers.cpp.
References BuildInternalVarName(), Contains(), FindDeclRef(), GetPlainName(), GetSM(), GetTemplateParameterPackArgumentName(), kwOperator, and clang::insights::ScopeHandler::RemoveCurrentScope().
std::string clang::insights::GetNameAsFunctionPointer | ( | const QualType & | t | ) |
|
static |
Definition at line 87 of file InsightsHelpers.cpp.
References GetInsightsOptions().
Referenced by GetName(), and GetPlainName().
std::string clang::insights::GetNestedName | ( | const NestedNameSpecifier * | nns, |
const IgnoreNamespace | ignoreNamespace | ||
) |
Definition at line 202 of file InsightsHelpers.cpp.
References clang::insights::details::BuildNamespace().
Referenced by GetName(), clang::insights::CodeGenerator::InsertNamespace(), and clang::insights::CodeGenerator::InsertQualifierAndName().
const std::string clang::insights::GetNoExcept | ( | const FunctionDecl & | decl | ) |
Definition at line 1515 of file InsightsHelpers.cpp.
References clang::insights::details::ConvertToBoolString(), EvaluateAsBoolenCondition(), clang::insights::CodeGenerator::InsertArg(), kwCommentStart, kwSpaceCCommentEnd, kwSpaceNoexcept, and StrCat().
Referenced by clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
std::string clang::insights::GetPlainName | ( | const DeclRefExpr & | DRE | ) |
Definition at line 106 of file InsightsHelpers.cpp.
References GetNamePlain(), and clang::insights::ScopeHandler::RemoveCurrentScope().
Referenced by GetName(), and clang::insights::CoroutinesCodeGenerator::InsertArg().
|
static |
Definition at line 855 of file CodeGenerator.cpp.
References GetStorageClassAsStringWithSpace(), kwConstExprSpace, and kwInlineSpace.
Referenced by clang::insights::StructuredBindingsCodeGenerator::InsertArg().
|
static |
Definition at line 3361 of file CodeGenerator.cpp.
References GetGlobalAST().
uint64_t clang::insights::GetSize | ( | const ConstantArrayType * | arrayType | ) |
Definition at line 1573 of file InsightsHelpers.cpp.
Referenced by CallVecDtor(), clang::insights::CodeGenerator::FillConstantArray(), and clang::insights::CfrontCodeGenerator::InsertArg().
|
inline |
Definition at line 77 of file InsightsHelpers.h.
Referenced by GetName(), clang::insights::CodeGenerator::InsertTemplateGuardBegin(), and MakeLineColumnName().
auto clang::insights::GetSpaces | ( | std::string::size_type | offset | ) |
Definition at line 3368 of file CodeGenerator.cpp.
std::string clang::insights::GetSpecialMemberName | ( | const ValueDecl * | vd | ) |
Definition at line 166 of file CfrontCodeGenerator.cpp.
References clang::insights::asthelpers::GetRecordDeclType(), and GetSpecialMemberName().
|
static |
Definition at line 138 of file CfrontCodeGenerator.cpp.
References GetName(), and StrCat().
Referenced by CallVecDeleteOrDtor(), CallVecNewOrCtor(), GetCfrontOverloadedFunctionName(), GetSpecialMemberName(), clang::insights::CfrontCodeGenerator::InsertArg(), and clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl().
|
static |
Definition at line 833 of file CodeGenerator.cpp.
Referenced by GetStorageClassAsStringWithSpace().
|
static |
Definition at line 843 of file CodeGenerator.cpp.
References GetStorageClassAsString().
Referenced by GetQualifiers(), and clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
|
static |
Definition at line 1000 of file InsightsHelpers.cpp.
Referenced by GetTemplateParameterPackArgumentName().
|
static |
Definition at line 107 of file CodeGenerator.cpp.
References kwClassSpace, kwStructSpace, and kwUnionSpace.
|
static |
Definition at line 1056 of file InsightsHelpers.cpp.
References BuildInternalVarName(), FindVarDeclRef(), GetSubstTemplateTypeParmType(), and StrCat().
Referenced by GetName().
std::string clang::insights::GetTemporaryName | ( | const Expr & | tmp | ) |
Definition at line 1164 of file InsightsHelpers.cpp.
References BuildInternalVarName(), GetGlobalAST(), and MakeLineColumnName().
Referenced by GetName(), clang::insights::TemporaryDeclFinder::TemporaryDeclFinder(), and clang::insights::TemporaryDeclFinder::VisitMaterializeTemporaryExpr().
QualType clang::insights::GetType | ( | QualType | t | ) |
In Cfront mode we transform references to pointers.
Definition at line 1194 of file InsightsHelpers.cpp.
References GetGlobalAST(), and GetInsightsOptions().
Referenced by clang::insights::OutputFormatHelper::AppendParameterList(), and clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
|
static |
Definition at line 1720 of file CodeGenerator.cpp.
References clang::insights::StringStream::Print().
Referenced by clang::insights::CodeGenerator::InsertTemplateParameters().
std::string clang::insights::GetTypeNameAsParameter | ( | const QualType & | t, |
std::string_view | varName, | ||
const Unqualified | unqualified | ||
) |
Definition at line 1243 of file InsightsHelpers.cpp.
References Contains(), clang::insights::details::GetName(), InsertAfter(), InsertBefore(), and StrCat().
Referenced by clang::insights::OutputFormatHelper::AppendParameterList(), clang::insights::StructuredBindingsCodeGenerator::InsertArg(), clang::insights::CodeGenerator::InsertFunctionNameWithReturnType(), and clang::insights::CodeGenerator::InsertTemplateParameters().
std::string clang::insights::GetUnqualifiedScopelessName | ( | const Type * | type | ) |
Definition at line 1188 of file InsightsHelpers.cpp.
References GetUnqualifiedScopelessName().
|
static |
Definition at line 1182 of file InsightsHelpers.cpp.
References clang::insights::details::GetName().
Referenced by clang::insights::details::BuildNamespace(), GetUnqualifiedScopelessName(), and clang::insights::CodeGenerator::InsertCXXMethodHeader().
|
static |
Definition at line 312 of file InsightsHelpers.cpp.
Referenced by GetName(), and IsTrivialStaticClassVarDecl().
|
static |
Definition at line 182 of file CfrontCodeGenerator.cpp.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg(), and clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl().
|
static |
Definition at line 192 of file CfrontCodeGenerator.cpp.
Referenced by CallVecNewOrCtor(), clang::insights::CfrontCodeGenerator::InsertArg(), and clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl().
|
static |
Definition at line 882 of file InsightsHelpers.cpp.
References GetGlobalCI().
Referenced by GetCfrontOverloadedFunctionName().
|
static |
Definition at line 1231 of file InsightsHelpers.cpp.
References GetDesugarType().
|
static |
Definition at line 1205 of file InsightsHelpers.cpp.
References GetDesugarType().
|
static |
Definition at line 245 of file InsightsHelpers.cpp.
Referenced by GetTypeNameAsParameter().
void clang::insights::InsertBefore | ( | std::string & | source, |
const std::string_view & | find, | ||
const std::string_view & | replace | ||
) |
Definition at line 235 of file InsightsHelpers.cpp.
Referenced by GetTypeNameAsParameter().
|
static |
Definition at line 441 of file CfrontCodeGenerator.cpp.
References AccessMember(), clang::insights::asthelpers::StmtsContainer::AddBodyStmts(), clang::insights::asthelpers::ArraySubscript(), clang::insights::asthelpers::Assign(), GetGlobalVtablePos(), clang::insights::asthelpers::GetRecordDeclType(), kwInternalThis, clang::insights::asthelpers::mkDeclRefExpr(), clang::insights::asthelpers::Ptr(), clang::insights::CfrontCodeGenerator::VtableData(), clang::insights::CfrontCodeGenerator::CfrontVtableData::VtblArrayVar(), and clang::insights::CfrontCodeGenerator::CfrontVtableData::VtblPtrField().
Referenced by clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl().
clang::insights::is | ( | T | ) | -> is< T > |
|
inline |
Check whether this is an anonymous struct or union.
There is a dedicated function isAnonymousStructOrUnion
which at this point no longer returns true. Hence this method uses an empty record decl name as indication for an anonymous struct/union.
Definition at line 146 of file InsightsHelpers.h.
|
static |
Definition at line 2667 of file CodeGenerator.cpp.
|
static |
Definition at line 132 of file CfrontCodeGenerator.cpp.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg(), and clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl().
|
static |
Definition at line 126 of file CfrontCodeGenerator.cpp.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg(), and clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl().
bool clang::insights::IsEvaluatable | ( | const VarDecl & | varDecl | ) |
Check whether a VarDecl
s initialization can be done a compile-time.
This method checks, whether a VarDecl
is initialized by a constant expression.
Definition at line 1381 of file InsightsHelpers.cpp.
References GetEvaluatedValue().
Referenced by IsTrivialStaticClassVarDecl().
|
static |
Definition at line 1196 of file CodeGenerator.cpp.
|
inline |
Definition at line 49 of file InsightsHelpers.h.
References IsReferenceType().
|
inline |
Definition at line 43 of file InsightsHelpers.h.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg(), and IsReferenceType().
|
inline |
Definition at line 37 of file InsightsHelpers.h.
Referenced by clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl(), and clang::insights::CodeGenerator::InsertFunctionNameWithReturnType().
|
static |
Definition at line 2447 of file CodeGenerator.cpp.
Referenced by clang::insights::CodeGenerator::HandleCompoundStmt().
|
static |
Definition at line 1360 of file InsightsHelpers.cpp.
References GetVarDeclFromDeclRefExpr().
Referenced by GetName().
bool clang::insights::IsTrivialStaticClassVarDecl | ( | const VarDecl & | varDecl | ) |
Definition at line 1387 of file InsightsHelpers.cpp.
References IsEvaluatable().
|
static |
Definition at line 265 of file InsightsHelpers.cpp.
References GetSM(), and MakeLineColumnName().
std::string clang::insights::MakeLineColumnName | ( | const SourceManager & | sm, |
const SourceLocation & | loc, | ||
const std::string_view & | prefix | ||
) |
Definition at line 255 of file InsightsHelpers.cpp.
References StrCat().
Referenced by BuildRetTypeName(), BuildSuspendVarName(), GetAnonymStructOrUnionName(), GetLambdaName(), GetTemporaryName(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), and MakeLineColumnName().
|
static |
Definition at line 978 of file InsightsHelpers.cpp.
Referenced by GetName().
|
inline |
Definition at line 72 of file InsightsStrCat.h.
References Normalize().
|
inlinestatic |
Definition at line 90 of file InsightsStrCat.h.
|
inline |
Definition at line 54 of file InsightsStrCat.h.
|
inline |
Definition at line 42 of file InsightsStrCat.h.
Referenced by Normalize().
|
inline |
Definition at line 48 of file InsightsStrCat.h.
References ToString().
|
inline |
Definition at line 84 of file InsightsStrCat.h.
|
inline |
Definition at line 97 of file InsightsStrCat.h.
References clang::insights::details::ConvertToBoolString().
Referenced by clang::insights::details::StrCat().
clang::insights::overloaded | ( | Ts... | ) | -> overloaded< Ts... > |
|
static |
Definition at line 798 of file CfrontCodeGenerator.cpp.
References AddField(), GetGlobalAST(), GetName(), clang::insights::asthelpers::mkFieldDecl(), RETURN_IF, and clang::insights::CfrontCodeGenerator::VtableData().
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
|
static |
Definition at line 1112 of file CodeGenerator.cpp.
References globalVarCtors.
|
static |
Definition at line 1118 of file CodeGenerator.cpp.
References globalVarDtors.
void clang::insights::PushVtableEntry | ( | const CXXRecordDecl * | record, |
const CXXRecordDecl * | recordB, | ||
VarDecl * | decl | ||
) |
Definition at line 1106 of file CodeGenerator.cpp.
References gVtables.
Referenced by clang::insights::CfrontCodeGenerator::InsertArg().
void clang::insights::ReplaceAll | ( | std::string & | str, |
std::string_view | from, | ||
std::string_view | to | ||
) |
Definition at line 149 of file InsightsHelpers.cpp.
Referenced by BuildTemplateParamObjectName(), GetCfrontOverloadedFunctionName(), and clang::insights::CoroutinesCodeGenerator::InsertCoroutine().
|
static |
Definition at line 90 of file CoroutinesCodeGenerator.cpp.
References clang::insights::asthelpers::mkCompoundStmt().
Referenced by clang::insights::CoroutinesCodeGenerator::InsertCoroutine().
|
inline |
Definition at line 120 of file InsightsStrCat.h.
References clang::insights::details::StrCat().
Referenced by clang::insights::OutputFormatHelper::AppendParameterList(), BuildInternalVarName(), GetName(), GetNoExcept(), GetSpecialMemberName(), GetTemplateParameterPackArgumentName(), GetTypeNameAsParameter(), clang::insights::CfrontCodeGenerator::InsertArg(), clang::insights::CoroutinesCodeGenerator::InsertArg(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), clang::insights::CfrontCodeGenerator::InsertCXXMethodDecl(), MakeLineColumnName(), ToDo(), clang::insights::CoroutineASTTransformer::VisitCoawaitExpr(), and clang::insights::CfrontCodeGenerator::CfrontVtableData::VtblPtrField().
clang::insights::STRONG_BOOL | ( | IgnoreNamespace | ) |
clang::insights::STRONG_BOOL | ( | InsightsCanonicalTypes | ) |
clang::insights::STRONG_BOOL | ( | InsightsSuppressScope | ) |
clang::insights::STRONG_BOOL | ( | QualifiedName | ) |
clang::insights::STRONG_BOOL | ( | Unqualified | ) |
clang::insights::STRONG_BOOL | ( | UseLexicalParent | ) |
clang::insights::STRONG_BOOL | ( | WithTemplateParameters | ) |
void clang::insights::ToDo | ( | const class Decl * | stmt, |
class OutputFormatHelper & | outputFormatHelper, | ||
std::source_location | loc = std::source_location::current() |
||
) |
Helper function to generate TODO comments for an unsupported Decl.
void clang::insights::ToDo | ( | const class Stmt * | stmt, |
class OutputFormatHelper & | outputFormatHelper, | ||
std::source_location | loc = std::source_location::current() |
||
) |
Helper function to generate TODO comments for an unsupported Stmt.
void clang::insights::ToDo | ( | const class TemplateArgument & | stmt, |
class OutputFormatHelper & | outputFormatHelper, | ||
std::source_location | loc | ||
) |
Helper function to generate TODO comments for an unsupported TemplateArgument.
Definition at line 69 of file DPrint.cpp.
void clang::insights::ToDo | ( | const Decl * | stmt, |
OutputFormatHelper & | outputFormatHelper, | ||
std::source_location | loc | ||
) |
Definition at line 52 of file DPrint.cpp.
void clang::insights::ToDo | ( | const Stmt * | stmt, |
OutputFormatHelper & | outputFormatHelper, | ||
std::source_location | loc | ||
) |
Definition at line 34 of file DPrint.cpp.
|
static |
Definition at line 19 of file DPrint.cpp.
References clang::insights::OutputFormatHelper::Append(), and kwSpaceCCommentEnd.
Referenced by clang::insights::CodeGenerator::InsertArg(), and ToDo().
|
inline |
Definition at line 32 of file InsightsStrCat.h.
References clang::insights::details::ConvertToBoolString().
Referenced by clang::insights::details::Normalize(), and Normalize().
|
static |
Definition at line 203 of file InsightsHelpers.h.
References GetDesugarType().
|
static |
Definition at line 299 of file CodeGenerator.cpp.
Referenced by clang::insights::CodeGenerator::InsertConstructorExpr(), and clang::insights::CodeGenerator::InsertTemplateParameters().
|
static |
Definition at line 288 of file CodeGenerator.cpp.
Referenced by Ellipsis(), EllipsisSpace(), and clang::insights::CodeGenerator::InsertQualifierAndName().
const std::string clang::insights::CORO_FRAME_ACCESS {StrCat(CORO_FRAME_NAME, "->"sv)} |
Definition at line 27 of file CoroutinesCodeGenerator.cpp.
Referenced by clang::insights::CoroutinesCodeGenerator::InsertArg(), clang::insights::CoroutinesCodeGenerator::InsertCoroutine(), and clang::insights::CoroutineASTTransformer::VisitCoawaitExpr().
const std::string clang::insights::CORO_FRAME_ACCESS_THIS {StrCat(CORO_FRAME_ACCESS, kwInternalThis)} |
Definition at line 28 of file CoroutinesCodeGenerator.cpp.
Referenced by clang::insights::CoroutinesCodeGenerator::InsertCoroutine().
|
constexpr |
Definition at line 26 of file CoroutinesCodeGenerator.cpp.
Referenced by CreateCoroFunctionDecl(), and clang::insights::CoroutinesCodeGenerator::InsertCoroutine().
const std::string clang::insights::FINAL_SUSPEND_NAME {BuildInternalVarName("final_suspend"sv)} |
Definition at line 32 of file CoroutinesCodeGenerator.cpp.
Referenced by clang::insights::CoroutinesCodeGenerator::InsertArg().
|
static |
Definition at line 99 of file Insights.cpp.
Referenced by AddGLobalInsertMapEntry(), EnableGlobalInsert(), and CppInsightASTConsumer::HandleTranslationUnit().
|
static |
Definition at line 1089 of file CodeGenerator.cpp.
Referenced by EmitGlobalVariableCtors(), and PushGlobalVariable().
|
static |
Definition at line 1090 of file CodeGenerator.cpp.
Referenced by EmitGlobalVariableCtors(), and PushGlobalVariableDtor().
|
static |
Definition at line 1088 of file CodeGenerator.cpp.
Referenced by EmitGlobalVariableCtors(), GetGlobalVtablePos(), and PushVtableEntry().
const std::string clang::insights::INITIAL_AWAIT_SUSPEND_CALLED_NAME {BuildInternalVarName("initial_await_suspend_called"sv)} |
Definition at line 30 of file CoroutinesCodeGenerator.cpp.
Referenced by clang::insights::CoroutineASTTransformer::VisitCoroutineBodyStmt().
std::function clang::insights::Isa |
Definition at line 67 of file CodeGenerator.cpp.
|
static |
Store the this
pointer offset from derived to base class.
Definition at line 30 of file CfrontCodeGenerator.cpp.
Referenced by clang::insights::CfrontCodeGenerator::FormatCast(), and clang::insights::CfrontCodeGenerator::InsertArg().
const std::string clang::insights::RESUME_LABEL_PREFIX {BuildInternalVarName("resume"sv)} |
Definition at line 31 of file CoroutinesCodeGenerator.cpp.
const std::string clang::insights::SUSPEND_INDEX_NAME {BuildInternalVarName("suspend_index"sv)} |
Definition at line 29 of file CoroutinesCodeGenerator.cpp.
Referenced by clang::insights::CoroutineASTTransformer::VisitCoroutineBodyStmt().