Lines Matching refs:Function
83 // the argument function 'compare'. That 'has_match' is a value
343 /// function template specialization.
488 // - an object, reference, function or function template that is
524 // A non-member function template can have internal linkage; any
526 const FunctionDecl *Function = 0;
529 Function = FunTmpl->getTemplatedDecl();
531 Function = cast<FunctionDecl>(D);
534 if (Function->getStorageClass() == SC_Static)
608 // variable or function with external linkage unless
615 // given variable or function shall be identical...
638 // - a function, unless it has internal linkage; or
639 } else if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
640 // In theory, we can modify the function's LV by the LV of its
645 if (Function->getStorageClass() == SC_PrivateExtern)
652 // In C++, then if the type of the function uses a type with
657 !Function->getDeclContext()->isExternCContext() &&
658 Function->getType()->getLinkage() == UniqueExternalLinkage)
665 = Function->getTemplateSpecializationInfo()) {
666 mergeTemplateLV(LV, Function, specInfo);
696 // - a template, unless it is a function template that has
777 // If the type of the function uses a type with unique-external
965 // Also handle function template specializations.
967 // If the function is a specialization of a template with an
974 // If the function is a member of a specialization of a class template
992 if (const FunctionDecl *Function = dyn_cast<FunctionDecl>(D)) {
993 if (Function->isInAnonymousNamespace() &&
994 !Function->getDeclContext()->isExternCContext())
998 if (Function->getStorageClass() == SC_Static)
1004 getExplicitVisibility(Function, computation))
1097 // In addition, a member function, static data member, a named
1107 // The name of a function declared in block scope and the name of
1233 // For function declarations, we keep track of redeclarations.
1236 // For function templates, the underlying function declarations are linked.
1269 // For non-function declarations, if the declarations are of the
1380 // Helper function: returns true if QT is or contains a type
1501 // C++ [dcl.link]p1: All function types, function names with external linkage,
1513 // language linkage of the names of class members and the function type of
1973 // Since we don't have a body for this function, we don't know if it's
2099 assert((!PrevDecl || PrevFunTmpl) && "Function/function template mismatch");
2123 /// \brief Returns a value indicating whether this function
2124 /// corresponds to a builtin function.
2126 /// The function corresponds to a built-in function if it is
2144 // This function has the name of a known C library
2145 // function. Determine whether it actually refers to the C library
2146 // function or whether it just has the same name.
2148 // If this is a static function, it's not a builtin.
2152 // If this function is at translation-unit scope and we're not in
2153 // C++, it refers to the C library function.
2158 // If the function is in an extern "C" linkage specification and is
2159 // not marked "overloadable", it's the real function.
2171 /// getNumParams - Return the number of parameters this function must have
2205 /// needed to call this function. This may be fewer than the number of
2206 /// function parameters, if some of the parameters have default
2255 /// \brief For a function declaration in C or C++, determine whether this
2299 // [...] If all of the file scope declarations for a function in a
2300 // translation unit include the inline function specifier without extern,
2314 /// \brief For an inline function definition in C, or for a gnu_inline function
2317 /// Inline function definitions are always available for inlining optimizations.
2319 /// attributes, the definition of an inline function may or may not be
2326 /// In GNU89 mode, or if the gnu_inline attribute is attached to the function
2332 assert(doesThisDeclarationHaveABody() && "Must have the function definition");
2333 assert(isInlined() && "Function must be inline");
2359 // The rest of this function is C-only.
2364 // [...] If all of the file scope declarations for a function in a
2365 // translation unit include the inline function specifier without extern,
2376 // function, and does not forbid an external definition in another
2382 /// function represents, if any.
2390 /// getLiteralIdentifier - The literal suffix identifier this function
2427 "Member function is already a specialization");
2434 // If the function is invalid, it can't be implicitly instantiated.
2548 "Must specify the type of function template specialization");
2595 // For a function template specialization, query the specialization
2629 llvm_unreachable("Function cannot have a template specialization kind");
2648 // If this function was instantiated from a member function of a
2649 // class template, check whether that member function was defined out-of-line.
2656 // If this function was instantiated from a function template,
2657 // check whether that function template was defined out-of-line.
3219 FunctionDecl *New = new (C) FunctionDecl(Function, DC, StartLoc, NameInfo,
3229 return new (Mem) FunctionDecl(Function, 0, SourceLocation(),