Home
last modified time | relevance | path

Searched refs:UsingDecl (Results 1 – 25 of 65) sorted by relevance

123

/llvm-project-15.0.7/clang/test/Modules/
H A Dusing-decl.cpp9 namespace UsingDecl { namespace
12 int k = UsingDecl::merged;
60 UsingDecl::using_decl_type x = UsingDecl::using_decl_var;
61 UsingDecl::inner y = x;
H A Dno-linkage.cpp9 int UsingDecl; // expected-note {{candidate}} variable
34 use(UsingDecl); in use_things()
49 use(UsingDecl); // expected-error {{ambiguous}} in use_things_again()
/llvm-project-15.0.7/clang/test/Modules/Inputs/no-linkage/
H A Ddecls.h1 namespace RealNS { int UsingDecl; } variable
5 using RealNS::UsingDecl;
/llvm-project-15.0.7/clang/test/Modules/Inputs/
H A Dusing-decl-b.h1 namespace UsingDecl {
8 namespace UsingDecl {
H A Dusing-decl-a.h5 namespace UsingDecl {
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/misc/
H A DUnusedUsingDeclsCheck.h36 explicit UsingDeclContext(const UsingDecl *FoundUsingDecl) in UsingDeclContext()
43 const UsingDecl *FoundUsingDecl;
H A DUnusedUsingDeclsCheck.cpp69 if (const auto *Using = Result.Nodes.getNodeAs<UsingDecl>("using")) { in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/refactor/tweaks/
H A DAddUsing.cpp65 UsingFinder(std::vector<const UsingDecl *> &Results, in UsingFinder()
69 bool VisitUsingDecl(UsingDecl *D) { in VisitUsingDecl()
94 std::vector<const UsingDecl *> &Results;
137 std::vector<const UsingDecl *> Usings; in findInsertionPoint()
/llvm-project-15.0.7/clang/lib/Sema/
H A DHLSLExternalSemaSource.cpp39 auto *UsingDecl = UsingDirectiveDecl::Create( in InitializeSema() local
44 AST.getTranslationUnitDecl()->addDecl(UsingDecl); in InitializeSema()
/llvm-project-15.0.7/clang-tools-extra/clang-change-namespace/
H A DChangeNamespace.h81 const UsingDecl *UsingDeclaration);
153 llvm::SmallPtrSet<const UsingDecl *, 8> UsingDecls;
H A DChangeNamespace.cpp526 if (const auto *Using = Result.Nodes.getNodeAs<UsingDecl>("using")) { in run()
547 Result.Nodes.getNodeAs<UsingDecl>("using_with_shadow")) { in run()
847 for (const UsingDecl *Using : UsingDecls) { in replaceQualifiedSymbolInDeclContext()
928 const UsingDecl *UsingDeclaration) { in fixUsingShadowDecl()
/llvm-project-15.0.7/clang/lib/Tooling/Refactoring/Rename/
H A DUSRLocFinder.cpp184 if (llvm::isa<UsingDecl>(Decl)) in VisitNamedDecl()
342 bool VisitUsingDecl(const UsingDecl *Using) { in VisitUsingDecl()
462 const std::vector<const UsingDecl *> &getUsingDecls() const { in getUsingDecls()
515 std::vector<const UsingDecl *> UsingDecls;
/llvm-project-15.0.7/clang/include/clang/AST/
H A DDeclCXX.h74 class UsingDecl; variable
3412 class UsingDecl : public BaseUsingDecl, public Mergeable<UsingDecl> {
3423 UsingDecl(DeclContext *DC, SourceLocation UL, in UsingDecl() function
3466 static UsingDecl *Create(ASTContext &C, DeclContext *DC,
3477 UsingDecl *getCanonicalDecl() override { in getCanonicalDecl()
3478 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3480 const UsingDecl *getCanonicalDecl() const { in getCanonicalDecl()
3481 return cast<UsingDecl>(getFirstDecl()); in getCanonicalDecl()
3516 UsingDecl *Using, NamedDecl *Target, in ConstructorUsingShadowDecl()
3554 UsingDecl *getIntroducer() const { in getIntroducer()
[all …]
H A DTextNodeDumper.h359 void VisitUsingDecl(const UsingDecl *D);
H A DJSONNodeDumper.h238 void VisitUsingDecl(const UsingDecl *UD);
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/modernize/
H A DUseUncaughtExceptionsCheck.cpp69 const auto *U = Result.Nodes.getNodeAs<UsingDecl>("using_decl"); in check()
H A DReplaceAutoPtrCheck.cpp129 Result.Nodes.getNodeAs<UsingDecl>(AutoPtrTokenId)) { in check()
/llvm-project-15.0.7/clang-tools-extra/clangd/unittests/
H A DQualityTests.cpp144 *dyn_cast<UsingDecl>(&findDecl(AST, [&](const NamedDecl &ND) { in TEST()
145 if (const UsingDecl *Using = dyn_cast<UsingDecl>(&ND)) in TEST()
/llvm-project-15.0.7/clang-tools-extra/clang-tidy/google/
H A DUpgradeGoogletestCaseCheck.cpp257 if (const auto *Using = Result.Nodes.getNodeAs<UsingDecl>("using")) { in getAliasNameRange()
285 } else if (const auto *Using = Result.Nodes.getNodeAs<UsingDecl>("using")) { in check()
/llvm-project-15.0.7/clang/lib/AST/
H A DDeclCXX.cpp1348 if (const auto *Using = dyn_cast<UsingDecl>(D)) { in addedMember()
3020 SourceLocation Loc, UsingDecl *Using, in Create()
3066 void UsingDecl::anchor() {} in anchor()
3068 UsingDecl *UsingDecl::Create(ASTContext &C, DeclContext *DC, SourceLocation UL, in Create()
3072 return new (C, DC) UsingDecl(DC, UL, QualifierLoc, NameInfo, HasTypename); in Create()
3075 UsingDecl *UsingDecl::CreateDeserialized(ASTContext &C, unsigned ID) { in CreateDeserialized()
3076 return new (C, ID) UsingDecl(nullptr, SourceLocation(), in CreateDeserialized()
3081 SourceRange UsingDecl::getSourceRange() const { in getSourceRange()
/llvm-project-15.0.7/clang/tools/libclang/
H A DCursorVisitor.h245 bool VisitUsingDecl(UsingDecl *D);
/llvm-project-15.0.7/clang-tools-extra/clangd/
H A DFindTarget.cpp186 } else if (const UsingDecl *UD = dyn_cast<UsingDecl>(D)) { in add()
617 void VisitUsingDecl(const UsingDecl *D) { in refInDecl()
/llvm-project-15.0.7/clang/lib/Tooling/Transformer/
H A DSourceCode.cpp252 if (llvm::isa<RecordDecl>(D) || llvm::isa<UsingDecl>(D)) in getTerminators()
/llvm-project-15.0.7/clang/unittests/AST/
H A DSourceLocationTest.cpp483 TEST(UsingDecl, SourceRange) { in TEST() argument
484 RangeVerifier<UsingDecl> Verifier; in TEST()
/llvm-project-15.0.7/clang/lib/CodeGen/
H A DCGDebugInfo.h43 class UsingDecl; variable
528 void EmitUsingDecl(const UsingDecl &UD);

123