Lines Matching refs:decl
20 #include "clang/AST/Decl.h"
46 static const DeclContext *getEffectiveDeclContext(const Decl *D) {
75 return getEffectiveDeclContext(cast<Decl>(DC));
82 static const RecordDecl *GetLocalClassDecl(const Decl *D) {
87 D = cast<Decl>(DC);
100 static const NamedDecl *getStructor(const NamedDecl *decl) {
101 const FunctionDecl *fn = dyn_cast_or_null<FunctionDecl>(decl);
102 return (fn ? getStructor(fn) : decl);
332 void mangleLocalName(const Decl *D);
393 // Any decl can be declared with __asm("foo") on it, and this takes precedence
444 // Any decl can be declared with __asm("foo") on it, and this takes precedence
480 // Don't mangle in the type if this isn't a decl we should typically mangle.
532 // isStdNamespace - Return whether a given decl context is a toplevel 'std'
1150 "Typedef should not be in another decl context!");
1199 // If the named decl is the C++ constructor we're mangling, use the type
1210 // If the named decl is the C++ destructor we're mangling, use the type we
1300 void CXXNameMangler::mangleLocalName(const Decl *D) {
1399 if (Decl *Context = Block->getBlockManglingContextDecl()) {
1432 if (Decl *Context = Lambda->getLambdaContextDecl()) {
2975 case Decl::ParmVar:
2979 case Decl::EnumConstant: {
2985 case Decl::NonTypeTemplateParm: {
3628 "Invalid mangleName() call on 'structor decl!");