Home
last modified time | relevance | path

Searched refs:ND (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/external/clang/lib/AST/
DItaniumMangle.cpp116 static bool isLambda(const NamedDecl *ND) { in isLambda() argument
117 const CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(ND); in isLambda()
179 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator() argument
181 if (isLambda(ND)) in getNextDiscriminator()
185 if (const TagDecl *Tag = dyn_cast<TagDecl>(ND)) { in getNextDiscriminator()
191 if (ND->isExternallyVisible()) { in getNextDiscriminator()
192 unsigned discriminator = getASTContext().getManglingNumber(ND); in getNextDiscriminator()
200 unsigned &discriminator = Uniquifier[ND]; in getNextDiscriminator()
202 const DeclContext *DC = getEffectiveDeclContext(ND); in getNextDiscriminator()
203 discriminator = ++Discriminator[std::make_pair(DC, ND->getIdentifier())]; in getNextDiscriminator()
[all …]
DMangle.cpp59 static bool isExternC(const NamedDecl *ND) { in isExternC() argument
60 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in isExternC()
62 return cast<VarDecl>(ND)->isExternC(); in isExternC()
66 const NamedDecl *ND) { in getCallingConvMangling() argument
74 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) && in getCallingConvMangling()
78 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND); in getCallingConvMangling()
241 else if (auto ND = dyn_cast<NamedDecl>(DC)) { in mangleBlock() local
242 if (!shouldMangleDeclName(ND) && ND->getIdentifier()) in mangleBlock()
243 Stream << ND->getIdentifier()->getName(); in mangleBlock()
250 mangleName(ND, Stream); in mangleBlock()
DMicrosoftMangle.cpp104 static const FunctionDecl *getStructor(const NamedDecl *ND) { in getStructor() argument
105 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getStructor()
108 const auto *FD = cast<FunctionDecl>(ND); in getStructor()
115 static bool isLambda(const NamedDecl *ND) { in isLambda() argument
116 const CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(ND); in isLambda()
196 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) { in getNextDiscriminator() argument
197 const DeclContext *DC = getEffectiveDeclContext(ND); in getNextDiscriminator()
203 if (isLambda(ND)) { in getNextDiscriminator()
209 if (ND->isExternallyVisible()) { in getNextDiscriminator()
210 disc = getASTContext().getManglingNumber(ND); in getNextDiscriminator()
[all …]
DDeclBase.cpp296 if (const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(DC)) in isInAnonymousNamespace() local
297 if (ND->isAnonymousNamespace()) in isInAnonymousNamespace()
910 const NamespaceDecl *ND = cast<NamespaceDecl>(this); in isStdNamespace() local
911 if (ND->isInline()) { in isStdNamespace()
912 return ND->getParent()->isStdNamespace(); in isStdNamespace()
918 const IdentifierInfo *II = ND->getIdentifier(); in isStdNamespace()
1252 NamedDecl *ND = cast<NamedDecl>(D); in removeDecl() local
1255 if (!ND->getDeclName()) return; in removeDecl()
1261 StoredDeclsMap::iterator Pos = Map->find(ND->getDeclName()); in removeDecl()
1263 if (Pos->second.getAsVector() || Pos->second.getAsDecl() == ND) in removeDecl()
[all …]
DDecl.cpp332 if (const auto *ND = dyn_cast<NamedDecl>(Arg.getAsDecl())) { in getLVForTemplateArgumentList() local
333 assert(!usesTypeVisibility(ND)); in getLVForTemplateArgumentList()
334 LV.merge(getLVForDecl(ND, computation)); in getLVForTemplateArgumentList()
665 const auto *ND = dyn_cast<NamespaceDecl>(DC); in getLVForNamespaceScopeDecl() local
666 if (!ND) continue; in getLVForNamespaceScopeDecl()
667 if (Optional<Visibility> Vis = getExplicitVisibility(ND, computation)) { in getLVForNamespaceScopeDecl()
1043 getExplicitVisibilityAux(const NamedDecl *ND, in getExplicitVisibilityAux() argument
1046 assert(!IsMostRecent || ND == ND->getMostRecentDecl()); in getExplicitVisibilityAux()
1049 if (Optional<Visibility> V = getVisibilityOf(ND, kind)) in getExplicitVisibilityAux()
1054 if (const auto *RD = dyn_cast<CXXRecordDecl>(ND)) { in getExplicitVisibilityAux()
[all …]
/external/libcxx/test/libcxx/utilities/tuple/tuple.tuple/tuple.cnstr/
Ddisable_reduced_arity_initialization_extension.pass.cpp43 typedef NoDefault ND; in test_default_constructible_extension_sfinae() typedef
45 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
47 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
48 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
51 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae()
53 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
54 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
58 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
Denable_reduced_arity_initialization_extension.pass.cpp42 typedef NoDefault ND; in test_default_constructible_extension_sfinae() typedef
44 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
46 static_assert(std::is_constructible<Tuple, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
47 static_assert(test_convertible<Tuple, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
50 typedef std::tuple<MO, MO, ND> Tuple; in test_default_constructible_extension_sfinae()
52 static_assert(std::is_constructible<Tuple, MO, MO, ND>::value, ""); in test_default_constructible_extension_sfinae()
53 static_assert(test_convertible<Tuple, MO, MO, ND>(), ""); in test_default_constructible_extension_sfinae()
57 typedef std::tuple<MO, ND> Tuple; in test_default_constructible_extension_sfinae()
/external/clang/lib/Index/
DCodegenNameGenerator.cpp75 const NamedDecl *ND = cast<NamedDecl>(D); in getAllManglings() local
77 ASTContext &Ctx = ND->getASTContext(); in getAllManglings()
89 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) { in getAllManglings()
100 } else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) { in getAllManglings()
107 } else if (const auto *MD = dyn_cast_or_null<CXXMethodDecl>(ND)) { in getAllManglings()
108 Manglings.emplace_back(getName(ND)); in getAllManglings()
146 std::string getMangledStructor(const NamedDecl *ND, unsigned StructorType) { in getMangledStructor()
150 if (const auto *CD = dyn_cast_or_null<CXXConstructorDecl>(ND)) in getMangledStructor()
152 else if (const auto *DD = dyn_cast_or_null<CXXDestructorDecl>(ND)) in getMangledStructor()
/external/clang/lib/Sema/
DSemaCodeComplete.cpp80 void Add(const NamedDecl *ND, unsigned Index) { in Add() argument
83 DeclOrVector = ND; in Add()
99 DeclIndexPair(ND, Index)); in Add()
272 bool isInterestingDecl(const NamedDecl *ND,
325 bool IsOrdinaryName(const NamedDecl *ND) const;
326 bool IsOrdinaryNonTypeName(const NamedDecl *ND) const;
327 bool IsIntegralConstantValue(const NamedDecl *ND) const;
328 bool IsOrdinaryNonValueName(const NamedDecl *ND) const;
329 bool IsNestedNameSpecifier(const NamedDecl *ND) const;
330 bool IsEnum(const NamedDecl *ND) const;
[all …]
DSema.cpp477 NamedDecl *ND = UndefinedUse.first; in getUndefinedButUsed() local
480 if (ND->isInvalidDecl()) continue; in getUndefinedButUsed()
483 if (ND->hasAttr<WeakRefAttr>()) continue; in getUndefinedButUsed()
485 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) { in getUndefinedButUsed()
492 auto *VD = cast<VarDecl>(ND); in getUndefinedButUsed()
499 Undefined.push_back(std::make_pair(ND, UndefinedUse.second)); in getUndefinedButUsed()
515 NamedDecl *ND = I->first; in checkUndefinedButUsed() local
517 if (ND->hasAttr<DLLImportAttr>() || ND->hasAttr<DLLExportAttr>()) { in checkUndefinedButUsed()
524 if (!ND->isExternallyVisible()) { in checkUndefinedButUsed()
525 S.Diag(ND->getLocation(), diag::warn_undefined_internal) in checkUndefinedButUsed()
[all …]
DSemaLookup.cpp1088 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() local
1110 R.addDecl(ND); in CppLookupName()
1168 if (NamedDecl *ND = R.getAcceptableDecl(Ivar)) { in CppLookupName() local
1169 R.addDecl(ND); in CppLookupName()
1257 if (NamedDecl *ND = R.getAcceptableDecl(*I)) { in CppLookupName() local
1263 R.addDecl(ND); in CppLookupName()
1388 void Sema::makeMergedDefinitionVisible(NamedDecl *ND, SourceLocation Loc) { in makeMergedDefinitionVisible() argument
1390 Context.mergeDefinitionIntoModule(ND, M); in makeMergedDefinitionVisible()
1393 ND->setHidden(false); in makeMergedDefinitionVisible()
1397 if (auto *TD = dyn_cast<TemplateDecl>(ND)) in makeMergedDefinitionVisible()
[all …]
DSemaTemplateVariadic.cpp527 getDepthAndIndex(NamedDecl *ND) { in getDepthAndIndex() argument
528 if (TemplateTypeParmDecl *TTP = dyn_cast<TemplateTypeParmDecl>(ND)) in getDepthAndIndex()
531 if (NonTypeTemplateParmDecl *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND)) in getDepthAndIndex()
534 TemplateTemplateParmDecl *TTP = cast<TemplateTemplateParmDecl>(ND); in getDepthAndIndex()
562 NamedDecl *ND = i->first.get<NamedDecl *>(); in CheckParameterPacksForExpansion() local
563 if (isa<ParmVarDecl>(ND)) in CheckParameterPacksForExpansion()
566 std::tie(Depth, Index) = getDepthAndIndex(ND); in CheckParameterPacksForExpansion()
568 Name = ND->getIdentifier(); in CheckParameterPacksForExpansion()
663 NamedDecl *ND = Unexpanded[I].first.get<NamedDecl *>(); in getNumArgumentsInExpansion() local
664 if (isa<ParmVarDecl>(ND)) { in getNumArgumentsInExpansion()
[all …]
DCodeCompleteConsumer.cpp267 const NamedDecl *ND = dyn_cast<NamedDecl>(DC); in getParentName() local
268 if (!ND) in getParentName()
284 if (const NamedDecl *ND = dyn_cast<NamedDecl>(DC)) { in getParentName() local
285 if (ND->getIdentifier()) in getParentName()
384 const NamedDecl *ND = dyn_cast<NamedDecl>(DC); in addParentContext() local
385 if (!ND) in addParentContext()
/external/libcxx/test/std/utilities/meta/meta.trans/meta.trans.other/
Dresult_of.pass.cpp98 typedef NotDerived ND; in main() typedef
157 test_no_result<PMS0(ND & )>(); in main()
158 test_no_result<PMS0(const ND& )>(); in main()
161 test_no_result<PMS0(std::reference_wrapper<ND> )>(); in main()
162 test_no_result<PMS0(std::unique_ptr<ND> )>(); in main()
177 test_no_result<PMS1(ND &, int)>(); in main()
178 test_no_result<PMS1(const ND&, int)>(); in main()
181 test_no_result<PMS1(std::reference_wrapper<ND>, int)>(); in main()
182 test_no_result<PMS1(std::unique_ptr<ND>, int)>(); in main()
199 test_no_result<PMS2(const ND&, int, int)>(); in main()
[all …]
/external/clang/include/clang/AST/
DDeclFriend.h131 if (NamedDecl *ND = getFriendDecl()) { in getSourceRange() local
132 if (FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) in getSourceRange()
134 if (FunctionTemplateDecl *FTD = dyn_cast<FunctionTemplateDecl>(ND)) in getSourceRange()
136 if (ClassTemplateDecl *CTD = dyn_cast<ClassTemplateDecl>(ND)) in getSourceRange()
138 if (DeclaratorDecl *DD = dyn_cast<DeclaratorDecl>(ND)) { in getSourceRange()
142 return SourceRange(getFriendLoc(), ND->getLocEnd()); in getSourceRange()
DDeclContextInternals.h96 void setOnlyValue(NamedDecl *ND) { in setOnlyValue()
98 Data = ND; in setOnlyValue()
101 assert(*(NamedDecl **)&Data == ND && in setOnlyValue()
148 if (NamedDecl *ND = getAsDecl()) { in getLookupResult() local
152 return DeclContext::lookup_result(ND); in getLookupResult()
/external/clang/lib/Serialization/
DASTCommon.h102 auto *ND = dyn_cast_or_null<NamedDecl>(LexicalD); in numberAnonymousDeclsWithin() local
103 if (!ND || !needsAnonymousDeclarationNumber(ND)) in numberAnonymousDeclsWithin()
106 Visit(ND, Index++); in numberAnonymousDeclsWithin()
/external/clang/lib/StaticAnalyzer/Core/
DIssueHash.cpp86 if (const auto *ND = dyn_cast<NamedDecl>(D)) { in GetEnclosingDeclContextSignature() local
89 switch (ND->getKind()) { in GetEnclosingDeclContextSignature()
94 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
101 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND)); in GetEnclosingDeclContextSignature()
106 DeclName = ND->getQualifiedNameAsString(); in GetEnclosingDeclContextSignature()
/external/clang/lib/Analysis/
DCallGraph.cpp200 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(FD)) in print() local
201 return ND->printName(os); in print()
221 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Node->getDecl())) in getNodeLabel() local
222 return ND->getNameAsString(); in getNodeLabel()
/external/clang/unittests/AST/
DNamedDeclPrinterTest.cpp41 const NamedDecl *ND = Result.Nodes.getNodeAs<NamedDecl>("id"); in run() local
42 if (!ND) in run()
51 ND->printQualifiedName(Out, Policy); in run()
/external/tensorflow/tensorflow/core/kernels/
Dnn_ops_test.cc876 #define BM_AvgPoolFwdCPU(BS, IR, IC, ND, KR, KC, ST, PT, TH, LABEL) \ argument
878 BM_AvgPool_##BS##_##IR##_##IC##_##ND##_##KR##_##KC##_##ST##_##PT##_##TH( \
880 BM_AvgPool(iters, BS, IR, IC, ND, KR, KC, ST, PT, TH, LABEL); \
883 BM_AvgPool_##BS##_##IR##_##IC##_##ND##_##KR##_##KC##_##ST##_##PT##_##TH)
982 #define BM_AvgPoolBkCPU(BS, IR, IC, ND, KR, KC, ST, PT, TH, LABEL) \ argument
984 BM_AvgPoolBk_##BS##_##IR##_##IC##_##ND##_##KR##_##KC##_##ST##_##PT##_##TH( \
986 BM_AvgPoolBk(iters, BS, IR, IC, ND, KR, KC, ST, PT, TH, LABEL); \
989 BM_AvgPoolBk_##BS##_##IR##_##IC##_##ND##_##KR##_##KC##_##ST##_##PT##_##TH)
1071 #define BM_MaxPoolFwdCPU(BS, IR, IC, ND, KR, KC, ST, PT, TH, LABEL) \ argument
1073 BM_MaxPool_##BS##_##IR##_##IC##_##ND##_##KR##_##KC##_##ST##_##PT##_##TH( \
[all …]
/external/llvm/include/llvm/MC/
DMCInstrInfo.h33 void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, in InitMCInstrInfo() argument
37 InstrNameData = ND; in InitMCInstrInfo()
/external/swiftshader/third_party/llvm-7.0/llvm/include/llvm/MC/
DMCInstrInfo.h33 void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND, in InitMCInstrInfo() argument
37 InstrNameData = ND; in InitMCInstrInfo()
/external/clang/lib/Frontend/
DASTUnit.cpp265 static unsigned getDeclShowContexts(const NamedDecl *ND, in getDeclShowContexts() argument
270 if (isa<UsingShadowDecl>(ND)) in getDeclShowContexts()
271 ND = dyn_cast<NamedDecl>(ND->getUnderlyingDecl()); in getDeclShowContexts()
272 if (!ND) in getDeclShowContexts()
276 if (isa<TypeDecl>(ND) || isa<ObjCInterfaceDecl>(ND) || in getDeclShowContexts()
277 isa<ClassTemplateDecl>(ND) || isa<TemplateTemplateParmDecl>(ND)) { in getDeclShowContexts()
279 if (LangOpts.CPlusPlus || !isa<TagDecl>(ND)) in getDeclShowContexts()
293 if (LangOpts.CPlusPlus || isa<ObjCInterfaceDecl>(ND)) in getDeclShowContexts()
297 if (isa<ObjCInterfaceDecl>(ND)) in getDeclShowContexts()
301 if (isa<EnumDecl>(ND)) { in getDeclShowContexts()
[all …]
/external/clang/lib/StaticAnalyzer/Checkers/
DLLVMConventionsChecker.cpp42 const NamespaceDecl *ND = dyn_cast<NamespaceDecl>(D->getDeclContext()); in InNamespace() local
43 if (!ND) in InNamespace()
45 const IdentifierInfo *II = ND->getIdentifier(); in InNamespace()
48 return isa<TranslationUnitDecl>(ND->getDeclContext()); in InNamespace()

12345678910>>...16