HomeSort by: relevance | last modified time | path
    Searched refs:ND (Results 1 - 25 of 163) sorted by relevancy

1 2 3 4 5 6 7

  /src/external/bsd/pcc/dist/pcc/cc/cpp/
cpc.c 37 typedef struct nd ND;
38 struct nd yynode;
40 void qloop(void (*fun)(ND *), ND *n1, int a0, int a1, int a2, int a3);
43 void expr(ND *n1);
44 void eqcol(ND *n1);
45 void eoror(ND *n1);
46 void eandand(ND *n1);
47 void exor(ND *n1)
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/WebKit/
ASTUtils.h 70 const auto *const ND = llvm::dyn_cast_or_null<clang::NamedDecl>(ASTNode);
71 if (!ND)
76 if (!ND->getDeclName().isIdentifier())
79 return ND->getName().str();
  /src/external/apache2/llvm/dist/clang/lib/AST/
ASTImporterLookupTable.cpp 89 void ASTImporterLookupTable::add(DeclContext *DC, NamedDecl *ND) {
90 DeclList &Decls = LookupTable[DC][ND->getDeclName()];
92 Decls.insert(ND);
95 void ASTImporterLookupTable::remove(DeclContext *DC, NamedDecl *ND) {
96 DeclList &Decls = LookupTable[DC][ND->getDeclName()];
97 bool EraseResult = Decls.remove(ND);
102 void ASTImporterLookupTable::add(NamedDecl *ND) {
103 assert(ND);
104 DeclContext *DC = ND->getDeclContext()->getPrimaryContext();
105 add(DC, ND);
    [all...]
Linkage.h 90 static QueryType makeCacheKey(const NamedDecl *ND, LVComputationKind Kind) {
91 return QueryType(ND, Kind.toBits());
94 llvm::Optional<LinkageInfo> lookup(const NamedDecl *ND,
96 auto Iter = CachedLinkageInfo.find(makeCacheKey(ND, Kind));
102 void cache(const NamedDecl *ND, LVComputationKind Kind, LinkageInfo Info) {
103 CachedLinkageInfo[makeCacheKey(ND, Kind)] = Info;
Mangle.cpp 58 static bool isExternC(const NamedDecl *ND) {
59 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
61 if (const VarDecl *VD = dyn_cast<VarDecl>(ND))
67 const NamedDecl *ND) {
76 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND))
83 if (Context.getLangOpts().CPlusPlus && !isExternC(ND) &&
87 const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND);
305 else if (auto ND = dyn_cast<NamedDecl>(DC)) {
306 if (!shouldMangleDeclName(ND) && ND->getIdentifier()
    [all...]
ItaniumMangle.cpp 114 static bool isLambda(const NamedDecl *ND) {
115 const CXXRecordDecl *Record = dyn_cast<CXXRecordDecl>(ND);
145 bool isUniqueInternalLinkageDecl(const NamedDecl *ND) override;
188 bool getNextDiscriminator(const NamedDecl *ND, unsigned &disc) {
190 if (isLambda(ND))
194 if (const TagDecl *Tag = dyn_cast<TagDecl>(ND)) {
200 if (ND->isExternallyVisible()) {
201 unsigned discriminator = getASTContext().getManglingNumber(ND);
209 unsigned &discriminator = Uniquifier[ND];
211 const DeclContext *DC = getEffectiveDeclContext(ND);
    [all...]
  /src/external/apache2/llvm/dist/clang/lib/Frontend/
InterfaceStubFunctionsConsumer.cpp 40 bool WriteNamedDecl(const NamedDecl *ND, MangledSymbols &Symbols, int RDO) {
48 auto isVisible = [](const NamedDecl *ND) -> bool {
49 return ND->getVisibility() == DefaultVisibility;
52 auto ignoreDecl = [this, isVisible](const NamedDecl *ND) -> bool {
53 if (!isVisible(ND))
56 if (const VarDecl *VD = dyn_cast<VarDecl>(ND)) {
67 if (const FunctionDecl *FD = dyn_cast<FunctionDecl>(ND)) {
84 auto getParentFunctionDecl = [](const NamedDecl *ND) -> const NamedDecl * {
85 if (const VarDecl *VD = dyn_cast<VarDecl>(ND))
92 auto getMangledNames = [](const NamedDecl *ND) -> std::vector<std::string>
    [all...]
ASTMerge.cpp 63 if (const auto *ND = dyn_cast<NamedDecl>(D))
64 if (IdentifierInfo *II = ND->getIdentifier())
  /src/external/apache2/llvm/dist/clang/include/clang/AST/
ASTImporterLookupTable.h 57 void add(DeclContext *DC, NamedDecl *ND);
58 void remove(DeclContext *DC, NamedDecl *ND);
64 void add(NamedDecl *ND);
65 void remove(NamedDecl *ND);
ASTImporterSharedState.h 57 if (auto *ND = dyn_cast<NamedDecl>(D))
58 LookupTable->add(ND);
63 if (auto *ND = dyn_cast<NamedDecl>(D))
64 LookupTable->remove(ND);
DeclContextInternals.h 85 void erase(NamedDecl *ND) {
86 erase_if([ND](NamedDecl *D) { return D == ND; });
126 if (NamedDecl *ND = getAsDecl())
127 return ND->getASTContext();
156 erase_if([](NamedDecl *ND) { return ND->isFromASTFile(); });
165 erase_if([Decls](NamedDecl *ND) {
166 if (ND->isFromASTFile())
169 if (D->declarationReplaces(ND, /*IsKnownNewer=*/false)
    [all...]
DeclFriend.h 149 if (NamedDecl *ND = getFriendDecl()) {
150 if (const auto *FD = dyn_cast<FunctionDecl>(ND))
152 if (const auto *FTD = dyn_cast<FunctionTemplateDecl>(ND))
154 if (const auto *CTD = dyn_cast<ClassTemplateDecl>(ND))
156 if (const auto *DD = dyn_cast<DeclaratorDecl>(ND)) {
160 return SourceRange(getFriendLoc(), ND->getEndLoc());
  /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/Rename/
RenamingAction.h 60 RenameOccurrences(const NamedDecl *ND, std::string NewName)
61 : ND(ND), NewName(std::move(NewName)) {}
66 const NamedDecl *ND;
79 QualifiedRenameRule(const NamedDecl *ND,
81 : ND(ND), NewQualifiedName(std::move(NewQualifiedName)) {}
87 const NamedDecl *ND;
  /src/external/apache2/llvm/dist/clang/lib/Tooling/Refactoring/Rename/
USRFinder.cpp 43 bool visitSymbolOccurrence(const NamedDecl *ND,
45 if (!ND)
54 Result = ND;
108 bool VisitNamedDecl(const NamedDecl *ND) {
109 if (!ND)
112 if (Name != ND->getQualifiedNameAsString() &&
113 Name != "::" + ND->getQualifiedNameAsString())
115 Result = ND;
RenamingAction.cpp 46 findSymbolOccurrences(const NamedDecl *ND, RefactoringRuleContext &Context) {
48 getUSRsForDeclaration(ND, Context.getASTContext());
49 std::string PrevName = ND->getNameAsString();
68 const NamedDecl *ND =
70 if (!ND)
73 return RenameOccurrences(getCanonicalSymbolDeclaration(ND),
77 const NamedDecl *RenameOccurrences::getRenameDecl() const { return ND; }
81 Expected<SymbolOccurrences> Occurrences = findSymbolOccurrences(ND, Context);
94 const NamedDecl *ND =
96 if (!ND)
    [all...]
  /src/external/apache2/llvm/dist/llvm/include/llvm/MC/
MCInstrInfo.h 47 void InitMCInstrInfo(const MCInstrDesc *D, const unsigned *NI, const char *ND,
52 InstrNameData = ND;
  /src/external/bsd/openresolv/dist/
resolvectl.in 110 ND=
112 ND="$ND${ND:+ }~$d"
114 DOMAIN="$ND"
  /src/external/apache2/llvm/dist/clang/lib/Serialization/
ASTCommon.h 104 auto *ND = dyn_cast_or_null<NamedDecl>(LexicalD);
105 if (!ND || !needsAnonymousDeclarationNumber(ND))
108 Visit(ND, Index++);
  /src/external/apache2/llvm/dist/clang/include/clang/Tooling/Refactoring/
RecursiveSymbolVisitor.h 36 bool visitSymbolOccurrence(const NamedDecl *ND,
118 const NamespaceDecl *ND = NNS.getNestedNameSpecifier()->getAsNamespace();
119 if (!visit(ND, NNS.getLocalBeginLoc(), NNS.getLocalEndLoc()))
140 bool visit(const NamedDecl *ND, SourceLocation BeginLoc,
143 ND, SourceRange(BeginLoc, EndLoc));
145 bool visit(const NamedDecl *ND, SourceLocation Loc) {
146 return visit(ND, Loc, Lexer::getLocForEndOfToken(Loc, 0, SM, LangOpts));
  /src/external/apache2/llvm/dist/clang/lib/StaticAnalyzer/Checkers/
AnalysisOrderChecker.cpp 128 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl()))
129 llvm::errs() << " (" << ND->getQualifiedNameAsString() << ')';
141 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl()))
142 llvm::errs() << " (" << ND->getQualifiedNameAsString() << ')';
151 if (const NamedDecl *ND = dyn_cast_or_null<NamedDecl>(Call.getDecl()))
152 llvm::errs() << " (" << ND->getQualifiedNameAsString() << ')';
  /src/external/apache2/llvm/dist/clang/lib/Index/
IndexTypeSourceInfo.cpp 58 TypedefNameDecl *ND = TL.getTypedefNameDecl();
59 if (ND->isTransparentTag()) {
60 TagDecl *Underlying = ND->getUnderlyingType()->getAsTagDecl();
65 TRY_TO(IndexCtx.handleReference(ND, Loc,
73 TRY_TO(IndexCtx.handleReference(ND, Loc,
220 Name, [](const NamedDecl *ND) { return isa<TypeDecl>(ND); });
  /src/external/apache2/llvm/dist/clang/lib/Analysis/
IssueHash.cpp 92 if (const auto *ND = dyn_cast<NamedDecl>(D)) {
95 switch (ND->getKind()) {
100 DeclName = ND->getQualifiedNameAsString();
107 DeclName = GetSignature(dyn_cast_or_null<FunctionDecl>(ND));
112 DeclName = ND->getQualifiedNameAsString();
  /src/external/apache2/llvm/dist/clang/include/clang/Sema/
SemaInternal.h 65 inline std::pair<unsigned, unsigned> getDepthAndIndex(NamedDecl *ND) {
66 if (const auto *TTP = dyn_cast<TemplateTypeParmDecl>(ND))
69 if (const auto *NTTP = dyn_cast<NonTypeTemplateParmDecl>(ND))
72 const auto *TTP = cast<TemplateTemplateParmDecl>(ND);
113 void FoundDecl(NamedDecl *ND, NamedDecl *Hiding, DeclContext *Ctx,
281 void addName(StringRef Name, NamedDecl *ND,
  /src/external/apache2/llvm/dist/clang/lib/Sema/
SemaCodeComplete.cpp 110 void Add(const NamedDecl *ND, unsigned Index) {
113 DeclOrVector = ND;
129 DeclIndexPair(ND, Index));
300 /// \param ND the declaration that we are inspecting.
304 bool isInterestingDecl(const NamedDecl *ND,
362 bool IsOrdinaryName(const NamedDecl *ND) const;
363 bool IsOrdinaryNonTypeName(const NamedDecl *ND) const;
364 bool IsIntegralConstantValue(const NamedDecl *ND) const;
365 bool IsOrdinaryNonValueName(const NamedDecl *ND) const;
366 bool IsNestedNameSpecifier(const NamedDecl *ND) const
    [all...]
  /src/external/apache2/llvm/dist/clang/examples/PrintFunctionNames/
PrintFunctionNames.cpp 37 if (const NamedDecl *ND = dyn_cast<NamedDecl>(D))
38 llvm::errs() << "top-level-decl: \"" << ND->getNameAsString() << "\"\n";

Completed in 66 milliseconds

1 2 3 4 5 6 7