Home | History | Annotate | Download | only in Sema

Lines Matching refs:Declaration

58     /// into the result set, used to ensure that no declaration ever gets into
65 /// a single (declaration, index) mapping (the common case) but
66 /// can also store a list of (declaration, index) mappings.
71 /// of (declaration, index) pairs.
74 /// \brief When the entry contains a single declaration, this is
92 // existing declaration.
117 /// \brief A mapping from declaration names to the declarations that have
201 /// \brief Determine the priority for a reference to the given declaration.
239 /// When an Objective-C method declaration result is added, and that
266 /// \brief Determine whether the given declaration is at all interesting
269 /// \param ND the declaration that we are inspecting.
271 /// \param AsNestedNameSpecifier will be set true if this declaration is
276 /// \brief Check whether the result is hidden by the Hiding declaration.
301 /// \param Hiding the declaration that hides the result.
308 /// \brief Add a new non-declaration result to this result set.
317 /// \brief Ignore this declaration, if it is seen again.
564 R.Declaration->getDeclContext()->getRedeclContext();
580 R.Declaration->getDeclContext());
653 /// \brief Get the type that a given expression will have if this declaration
752 // If this is an Objective-C method declaration whose selector matches our
755 if (const ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
762 QualType T = getDeclUsageType(SemaRef.Context, R.Declaration);
778 if (!SemaRef.getLangOpts().CPlusPlus || !R.Declaration ||
783 const NamedDecl *D = R.Declaration;
809 R.Declaration = *I;
810 R.CursorKind = getCursorKindForDecl(R.Declaration);
819 // For non-declaration results, just add the result.
826 dyn_cast<UsingShadowDecl>(R.Declaration)) {
834 const Decl *CanonDecl = R.Declaration->getCanonicalDecl();
838 if (!isInterestingDecl(R.Declaration, AsNestedNameSpecifier))
842 if (isa<CXXConstructorDecl>(R.Declaration))
847 ShadowMap::iterator NamePos = SMap.find(R.Declaration->getDeclName());
857 // This is a redeclaration. Always pick the newer declaration.
858 Results[Index].Declaration = R.Declaration;
865 // This is a new declaration in this scope. However, check whether this
866 // declaration name is hidden by a similarly-named declaration in an outer
872 ShadowMap::iterator NamePos = SM->find(R.Declaration->getDeclName());
878 // A tag declaration does not hide a non-tag declaration.
898 // Make sure that any given declaration only shows up in the result set once.
913 const DeclContext *Ctx = R.Declaration->getDeclContext();
925 SMap[R.Declaration->getDeclName()].Add(R.Declaration, Results.size());
935 // For non-declaration
941 if (const UsingShadowDecl *Using = dyn_cast<UsingShadowDecl>(R.Declaration)) {
950 if (!isInterestingDecl(R.Declaration, AsNestedNameSpecifier))
954 if (isa<CXXConstructorDecl>(R.Declaration))
960 // Make sure that any given declaration only shows up in the result set once.
961 if (!AllDeclsFound.insert(R.Declaration->getCanonicalDecl()))
971 isa<CXXRecordDecl>(R.Declaration->getDeclContext()
978 const DeclContext *Ctx = R.Declaration->getDeclContext();
995 if (const CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(R.Declaration))
1017 "Declaration results need more context");
1037 /// \brief Determines whether this given declaration will be found by
1053 /// \brief Determines whether this given declaration will be found by
1082 /// \brief Determines whether this given declaration will be found by
1096 /// \brief Determines whether the given declaration is suitable as the
1106 /// \brief Determines whether the given declaration is an enumeration.
1111 /// \brief Determines whether the given declaration is a class or struct.
1126 /// \brief Determines whether the given declaration is a union.
1138 /// \brief Determines whether the given declaration is a namespace.
1143 /// \brief Determines whether the given declaration is a namespace or
1149 /// \brief Determines whether the given declaration is a type.
1240 /// \brief Determines whether the given declaration is an Objective-C
1247 /// \brief Visible declaration consumer that adds a code-completion result
1248 /// for each visible declaration.
1565 Builder.AddPlaceholderChunk("declaration");
1578 // Using declaration
1666 Builder.AddPlaceholderChunk("declaration");
2051 /// \brief If the given declaration has an associated type, add it as a result
2065 // Determine the type of the declaration (if it has a type).
2440 /// \brief Add the name of the given declaration
2541 if (Declaration) {
2542 Result.addParentContext(Declaration->getDeclContext());
2601 const NamedDecl *ND = Declaration;
3326 // declaration), and what we've seen so far is an Objective-C type that could
3861 // FIXME: What if we're calling something that isn't a function declaration?
4047 // Try to instantiate any non-dependent declaration contexts before
4147 // extended namespace declaration. Keep track of the most recent
4578 // @try { statements } @catch ( declaration ) { statements } @finally
5143 /// \returns the Objective-C method declaration that would be invoked by
5366 isa<ObjCMethodDecl>(R.Declaration)) {
5368 const ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
5398 // corresponding declaration.
6076 Results.data()[Results.size() - 1].Declaration == Ivar)