Home | History | Annotate | Download | only in Sema

Lines Matching refs:Declaration

57     /// into the result set, used to ensure that no declaration ever gets into
64 /// a single (declaration, index) mapping (the common case) but
65 /// can also store a list of (declaration, index) mappings.
70 /// of (declaration, index) pairs.
73 /// \brief When the entry contains a single declaration, this is
90 // existing declaration.
115 /// \brief A mapping from declaration names to the declarations that have
234 /// When an Objective-C method declaration result is added, and that
261 /// \brief Determine whether the given declaration is at all interesting
264 /// \param ND the declaration that we are inspecting.
266 /// \param AsNestedNameSpecifier will be set true if this declaration is
270 /// \brief Check whether the result is hidden by the Hiding declaration.
295 /// \param Hiding the declaration that hides the result.
302 /// \brief Add a new non-declaration result to this result set.
311 /// \brief Ignore this declaration, if it is seen again.
557 DeclContext *HiddenCtx = R.Declaration->getDeclContext()->getRedeclContext();
573 R.Declaration->getDeclContext());
646 /// \brief Get the type that a given expression will have if this declaration
707 // If this is an Objective-C method declaration whose selector matches our
710 if (ObjCMethodDecl *Method = dyn_cast<ObjCMethodDecl>(R.Declaration))
717 QualType T = getDeclUsageType(SemaRef.Context, R.Declaration);
733 if (!SemaRef.getLangOpts().CPlusPlus || !R.Declaration ||
738 NamedDecl *D = R.Declaration;
762 R.Declaration = *Ctors.first;
763 R.CursorKind = getCursorKindForDecl(R.Declaration);
772 // For non-declaration results, just add the result.
778 if (UsingShadowDecl *Using = dyn_cast<UsingShadowDecl>(R.Declaration)) {
783 Decl *CanonDecl = R.Declaration->getCanonicalDecl();
787 if (!isInterestingDecl(R.Declaration, AsNestedNameSpecifier))
791 if (isa<CXXConstructorDecl>(R.Declaration))
796 ShadowMap::iterator NamePos = SMap.find(R.Declaration->getDeclName());
806 // This is a redeclaration. Always pick the newer declaration.
807 Results[Index].Declaration = R.Declaration;
814 // This is a new declaration in this scope. However, check whether this
815 // declaration name is hidden by a similarly-named declaration in an outer
821 ShadowMap::iterator NamePos = SM->find(R.Declaration->getDeclName());
827 // A tag declaration does not hide a non-tag declaration.
847 // Make sure that any given declaration only shows up in the result set once.
862 DeclContext *Ctx = R.Declaration->getDeclContext();
874 SMap[R.Declaration->getDeclName()].Add(R.Declaration, Results.size());
884 // For non-declaration results, just add the result.
890 if (UsingShadowDecl *Using = dyn_cast<UsingShadowDecl>(R.Declaration)) {
896 if (!isInterestingDecl(R.Declaration, AsNestedNameSpecifier))
900 if (isa<CXXConstructorDecl>(R.Declaration))
906 // Make sure that any given declaration only shows up in the result set once.
907 if (!AllDeclsFound.insert(R.Declaration->getCanonicalDecl()))
917 isa<CXXRecordDecl>(R.Declaration->getDeclContext()
924 DeclContext *Ctx = R.Declaration->getDeclContext();
941 if (CXXMethodDecl *Method = dyn_cast<CXXMethodDecl>(R.Declaration))
963 "Declaration results need more context");
983 /// \brief Determines whether this given declaration will be found by
999 /// \brief Determines whether this given declaration will be found by
1028 /// \brief Determines whether this given declaration will be found by
1042 /// \brief Determines whether the given declaration is suitable as the
1052 /// \brief Determines whether the given declaration is an enumeration.
1057 /// \brief Determines whether the given declaration is a class or struct.
1070 /// \brief Determines whether the given declaration is a union.
1082 /// \brief Determines whether the given declaration is a namespace.
1087 /// \brief Determines whether the given declaration is a namespace or
1093 /// \brief Determines whether the given declaration is a type.
1184 /// \rief Determines whether the given declaration is an Objective-C
1191 /// \brief Visible declaration consumer that adds a code-completion result
1192 /// for each visible declaration.
1507 Builder.AddPlaceholderChunk("declaration");
1520 // Using declaration
1608 Builder.AddPlaceholderChunk("declaration");
1980 /// \brief If the given declaration has an associated type, add it as a result
1994 // Determine the type of the declaration (if it has a type).
2368 /// \brief Add the name of the given declaration
2465 if (Declaration) {
2466 Result.addParentContext(Declaration->getDeclContext());
2525 NamedDecl *ND = Declaration;
3232 // declaration), and what we've seen so far is an Objective-C type that could
3746 // FIXME: What if we're calling something that isn't a function declaration?
3933 // Try to instantiate any non-dependent declaration contexts before
4033 // extended namespace declaration. Keep track of the most recent
4443 // @try { statements } @catch ( declaration ) { statements } @finally
4997 /// \returns the Objective-C method declaration that would be invoked by
5217 isa<ObjCMethodDecl>(R.Declaration)) {
5219 ObjCMethodDecl *Method = cast<ObjCMethodDecl>(R.Declaration);
5249 // corresponding declaration.
5915 Results.data()[Results.size() - 1].Declaration == Ivar)