Home
last modified time | relevance | path

Searched refs:AliasDecl (Results 1 – 19 of 19) sorted by relevance

/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedAliasDeclsCheck.cpp29 if (const auto *AliasDecl = Result.Nodes.getNodeAs<NamedDecl>("alias")) { in check() local
30 FoundDecls[AliasDecl] = CharSourceRange::getCharRange( in check()
31 AliasDecl->getBeginLoc(), in check()
33 AliasDecl->getEndLoc(), tok::semi, *Result.SourceManager, in check()
41 if (const auto *AliasDecl = NestedName->getAsNamespaceAlias()) { in check() local
42 FoundDecls[AliasDecl] = CharSourceRange(); in check()
/llvm-project-15.0.7/clang/test/Modules/
H A Dno-linkage.cpp8 int AliasDecl; // expected-note {{candidate}} variable
33 use(AliasDecl); in use_things()
48 use(AliasDecl); // expected-error {{ambiguous}} in use_things_again()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGCXX.cpp112 GlobalDecl AliasDecl(D, Dtor_Base); in TryEmitBaseDestructorAsAlias() local
117 llvm::GlobalValue::LinkageTypes Linkage = getFunctionLinkage(AliasDecl); in TryEmitBaseDestructorAsAlias()
127 StringRef MangledName = getMangledName(AliasDecl); in TryEmitBaseDestructorAsAlias()
135 llvm::Type *AliasValueType = getTypes().GetFunctionType(AliasDecl); in TryEmitBaseDestructorAsAlias()
202 SetCommonAttributes(AliasDecl, Alias); in TryEmitBaseDestructorAsAlias()
H A DItaniumCXXABI.cpp4236 GlobalDecl AliasDecl; in getCodegenToUse() local
4238 AliasDecl = GlobalDecl(DD, Dtor_Complete); in getCodegenToUse()
4241 AliasDecl = GlobalDecl(CD, Ctor_Complete); in getCodegenToUse()
4243 llvm::GlobalValue::LinkageTypes Linkage = CGM.getFunctionLinkage(AliasDecl); in getCodegenToUse()
4264 GlobalDecl AliasDecl, in emitConstructorDestructorAlias() argument
4266 llvm::GlobalValue::LinkageTypes Linkage = CGM.getFunctionLinkage(AliasDecl); in emitConstructorDestructorAlias()
4268 StringRef MangledName = CGM.getMangledName(AliasDecl); in emitConstructorDestructorAlias()
4293 CGM.SetCommonAttributes(AliasDecl, Alias); in emitConstructorDestructorAlias()
H A DCGDebugInfo.cpp1269 auto *AliasDecl = in CreateType() local
1273 if (AliasDecl->hasAttr<NoDebugAttr>()) in CreateType()
1282 SourceLocation Loc = AliasDecl->getLocation(); in CreateType()
1285 getDeclContextDescriptor(AliasDecl)); in CreateType()
/llvm-project-15.0.7/clang/test/Modules/Inputs/no-linkage/
H A Ddecls.h4 using AliasDecl = int; variable
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DLoopConvertUtils.h324 const DeclStmt *getAliasDecl() const { return AliasDecl; } in getAliasDecl()
382 const DeclStmt *AliasDecl; variable
H A DLoopConvertCheck.h47 const DeclStmt *AliasDecl, bool AliasUseRequired,
H A DLoopConvertUtils.cpp464 OnlyUsedAsIndex(true), AliasDecl(nullptr), in ForLoopIndexUseVisitor()
807 if (!AliasDecl && S->isSingleDecl() && in VisitDeclStmt()
809 AliasDecl = S; in VisitDeclStmt()
H A DLoopConvertCheck.cpp538 const DeclStmt *AliasDecl, bool AliasUseRequired, bool AliasFromForInit, in doConversion() argument
541 bool VarNameFromAlias = (Usages.size() == 1) && AliasDecl; in doConversion()
546 const auto *AliasVar = cast<VarDecl>(AliasDecl->getSingleDecl()); in doConversion()
561 SourceRange ReplaceRange = AliasDecl->getSourceRange(); in doConversion()
/llvm-project-15.0.7/clang/include/clang/Sema/
H A DDeclSpec.h1787 AliasDecl, // C++11 alias-declaration. enumerator
2038 case DeclaratorContext::AliasDecl: in mayOmitIdentifier()
2085 case DeclaratorContext::AliasDecl: in mayHaveIdentifier()
2125 case DeclaratorContext::AliasDecl: in mayHaveDecompositionDeclarator()
2188 case DeclaratorContext::AliasDecl: in mayBeFollowedByCXXDirectInit()
2402 case DeclaratorContext::AliasDecl: in isFunctionDeclarationContext()
2438 case DeclaratorContext::AliasDecl: in isExpressionContext()
/llvm-project-15.0.7/clang/test/SemaCXX/
H A Dcxx98-compat.cpp137 using AliasDecl = int; // expected-warning {{alias declarations are incompatible with C++98}} typedef
/llvm-project-15.0.7/llvm/lib/Transforms/IPO/
H A DLowerTypeTests.cpp1075 Function *AliasDecl = Function::Create( in importFunction() local
1078 AliasDecl->takeName(A); in importFunction()
1079 A->replaceAllUsesWith(AliasDecl); in importFunction()
/llvm-project-15.0.7/llvm/tools/llvm-c-test/
H A Decho.cpp1005 goto AliasDecl; in declare_symbols()
1045 AliasDecl: in declare_symbols()
/llvm-project-15.0.7/clang/lib/Sema/
H A DSemaType.cpp3547 case DeclaratorContext::AliasDecl: in GetDeclSpecTypeForDeclarator()
3667 case DeclaratorContext::AliasDecl: in GetDeclSpecTypeForDeclarator()
4541 D.getContext() == DeclaratorContext::AliasDecl || in GetFullTypeForDeclarator()
4752 case DeclaratorContext::AliasDecl: in GetFullTypeForDeclarator()
5283 << (D.getContext() == DeclaratorContext::AliasDecl || in GetFullTypeForDeclarator()
5806 case DeclaratorContext::AliasDecl: in GetFullTypeForDeclarator()
6516 D.getContext() != DeclaratorContext::AliasDecl && in ActOnTypeName()
H A DSemaDeclObjC.cpp1176 ObjCCompatibleAliasDecl *AliasDecl = in ActOnCompatibilityAlias() local
1179 if (!CheckObjCDeclScope(AliasDecl)) in ActOnCompatibilityAlias()
1180 PushOnScopeChains(AliasDecl, TUScope); in ActOnCompatibilityAlias()
1182 return AliasDecl; in ActOnCompatibilityAlias()
H A DSemaDeclCXX.cpp13171 NamespaceAliasDecl *AliasDecl = in ActOnNamespaceAliasDef() local
13176 AliasDecl->setPreviousDecl(Prev); in ActOnNamespaceAliasDef()
13178 PushOnScopeChains(AliasDecl, S); in ActOnNamespaceAliasDef()
13179 return AliasDecl; in ActOnNamespaceAliasDef()
/llvm-project-15.0.7/clang/lib/Parse/
H A DParseDecl.cpp2891 if (Context == DeclaratorContext::AliasDecl || in getDeclSpecContextFromDeclaratorContext()
6263 else if (D.getContext() == DeclaratorContext::AliasDecl || in ParseDirectDeclarator()
H A DParseDeclCXX.cpp888 : DeclaratorContext::AliasDecl, in ParseAliasDeclarationAfterDeclarator()