Lines Matching refs:Function
80 // Default arguments are evaluated each time the function is
81 // called. The order of evaluation of function arguments is
82 // unspecified. Consequently, parameters of a function shall not
84 // evaluated. Parameters of a function declared before a default
107 // member function.
125 // If this function can throw any exceptions, make a note of that.
135 // If this function has a basic noexcept, it doesn't affect the outcome.
139 // If we have a throw-all spec at this point, ignore the function.
160 // noexcept(false) -> no spec on the new function
173 // Record the exceptions in this function's exception specification.
189 // only if T is allowed by the exception-specification of a function directly
191 // function it directly invokes allows all exceptions, and f shall allow no
192 // exceptions if every function it directly invokes allows no exceptions.
195 // for a function containing a throw-expression, that specification can still
258 /// provided for a function parameter is well-formed. If so, attach it
294 /// argument for a function parameter, but we can't parse it yet
324 /// arguments in the declarator, which is not a function declaration
327 /// that is not a function declaration or definition.
331 // parameter-declaration-clause of a function declaration or in a
338 if (chunk.Kind == DeclaratorChunk::Function) {
359 // function, once we already know that they have the same
367 // later declarations of a function in the same
372 // function declaration, all parameters subsequent to a
380 // in a member function definition that appears outside of the class
382 // member function declaration in the class definition.
421 // Look for the function declaration where the default argument was
455 // Default function arguments shall not be specified in a declaration
457 // - the explicit specialization of a function template;
458 // - the explicit specialization of a member function template;
459 // - the explicit specialization of a member function of a class
461 // member function specialization belongs is implicitly
469 // Default arguments for a member function of a class template shall
470 // be specified on the initial declaration of the member function
474 // leads me to the conclusion that one cannot add default function
475 // arguments for an out-of-line definition of a member function of a
505 // C++0x [dcl.constexpr]p1: If any declaration of a function or function
527 /// This is called when there's a redeclaration of a VarDecl. The function
557 // There's lots of special cases for functions. For function pointers, system
568 /// function declaration are well-formed according to C++
582 // In a given function declaration, all parameters
608 // default argument, so that we leave the function parameters
619 // CheckConstexprParameterTypes - Check whether a function's parameter types
647 // CheckConstexprFunctionDecl - Check whether a function declaration satisfies
648 // the requirements of a constexpr function declaration or a constexpr
653 // \param CCK Specifies whether to produce diagnostics if the function does not
669 // In addition, either its function-body shall be = delete or = default or
692 // The definition of a constexpr function shall satisfy the following
702 // If it's not obvious why this function is virtual, find an overridden
703 // function which uses the 'virtual' keyword.
735 /// Check the given declaration statement is legal within a constexpr function
742 // The definition of a constexpr function(p3) or constructor(p4) [...] shall
833 /// Check the body for the given constexpr function declaration only contains
840 // The definition of a constexpr function shall satisfy the following
842 // - its function-body shall be = delete, = default, or a
847 // - its function-body shall not be a function-try-block;
853 // - its function-body shall be [...] a compound-statement that contains only
884 // Deal with this as part of a general check that the function can produce
958 // Deal with these as part of a general check that the function can produce
1347 /// This function builds a string that can be used in error messages
1400 // If a virtual function is marked with the virt-specifier override and does
1401 // not override a member function of a base class,
1414 /// function overrides a virtual member function marked 'final', according to
1566 // A function typedef ("typedef int f(); f a;").
1579 // If we have declared a member function template, set the access of the
1756 // The user wrote a constructor initializer on a function that is
1974 // Do not descend into function calls or constructors, as the use
1976 // the contents of the function/ctor to determine if it is safe or not.
1978 // may be safe, depending on what the function/ctor does.
3336 // pure virtual function for which the final overrider is pure
3609 // function that is not a constructor declares that member function to be
3610 // const. [...] The class of which that function is a member shall be
4104 /// This function implements the following C++0x paragraphs:
4134 llvm_unreachable("function only currently implemented for default ctors");
4139 // Do access control from the special member function
4149 // FIXME: We should put some diagnostic logic right into this function.
4173 // unique, accessible, non-deleted function. If we are doing
4216 // unique, accessible, non-deleted function.
4421 // FIXME: We should put some diagnostic logic right into this function.
4440 // an ambiguity or a function that is deleted or inaccessible from the
4459 // an ambiguity or a function that is deleted or inaccessible from the
4564 // an ambiguity or a function that is deleted or inaccessible from the
4764 /// \brief Member lookup function that determines whether a given C++
4971 /// function parameter into scope for use in parsing later parts of
5070 // Rebuild the function type "R" without any type qualifiers (in
5136 // If we have a virtual destructor, look up the deallocation function
5250 // Rebuild the function type "R" without any type qualifiers or
5266 /// well-formednes of the conversion function declarator @p D with
5275 // type of a conversion function (8.3.5) is "function taking no
5327 // The conversion-type-id shall not represent a function type nor
5339 // Rebuild the function type "R" without any parameters (in case any
5355 /// the declaration of the given C++ conversion function. This routine
5356 /// is responsible for recording the conversion function in the C++
5359 assert(Conversion && "Expected to receive a conversion function declaration");
5363 // Make sure we aren't redeclaring the conversion function.
5367 // [...] A conversion function is never used to convert a
5372 // FIXME: Suppress this warning if the conversion function ends up being a
5373 // virtual function that overrides a virtual function in a base class.
5876 // function will silently decide not to build a shadow decl, which
5977 // Target is not a function.
6659 /// to implicitly define the body of a C++ member function;
6682 // An implicitly declared special member function (Clause 12) shall have an
6698 // If this is a deleted function, add it anyway. This might be conformant
6712 // If this is a deleted function, add it anyway. This might be conformant
6732 // If this is a deleted function, add it anyway. This might be conformant
6734 // In particular, the problem is that this function never gets called. It
6735 // might just be ill-formed because this function attempts to refer to
6736 // a deleted function here.
6839 // A function template cannot be defaulted.
6969 // Build up a function type for this particular constructor.
7062 // An implicitly declared special member function (Clause 12) shall have
7252 // subobject of x as a single function argument (as if by explicit
7476 // An implicitly declared special member function (Clause 12) shall have an
7594 "DefineImplicitCopyAssignment called for wrong function");
7616 // The statements that form the synthesized function body.
7690 // \brief Reference to the __builtin_memcpy function.
7692 // \brief Reference to the __builtin_objc_memmove_collectable function.
7780 // Create a reference to the __builtin_objc_memmove_collectable function.
7800 // Create a reference to the __builtin_memcpy builtin function.
7898 // An implicitly declared special member function (Clause 12) shall have an
8016 "DefineImplicitMoveAssignment called for wrong function");
8038 // The statements that form the synthesized function body.
8110 // \brief Reference to the __builtin_memcpy function.
8112 // \brief Reference to the __builtin_objc_memmove_collectable function.
8210 // Create a reference to the __builtin_objc_memmove_collectable function.
8230 // Create a reference to the __builtin_memcpy builtin function.
8382 // An implicitly declared special member function (Clause 12) shall have an
8530 // An implicitly declared special member function (Clause 12) shall have an
8546 // If this is a deleted function, add it anyway. This might be conformant
8560 // If this is a deleted function, add it anyway. This might be conformant
8580 // If this is a deleted function, add it anyway. This might be conformant
8582 // In particular, the problem is that this function never gets called. It
8583 // might just be ill-formed because this function attempts to refer to
8584 // a deleted function here.
8789 // class-static, function-static).
9056 // A function template must have at least 2 parameters.
9062 // The function decl must have at least 1 parameter.
9086 // A program is ill-formed if an allocation function is declared in a
9124 // Each deallocation function shall return void and its first parameter
9157 // An operator function shall either be a non-static member
9158 // function or be a non-member function and have at least one
9185 // An operator function cannot have default arguments (8.3.6),
9188 // Only the function-call operator allows default arguments
9252 // The user-defined function called operator++ implements the
9253 // prefix and postfix ++ operator. If this function is a member
9254 // function with no parameters, or a non-member function with one
9256 // increment operator ++ for objects of that type. If the function
9257 // is a member function with one parameter (which shall be of type
9258 // int) or a non-member function with two parameters (the second
9277 /// of this literal operator function is well-formed. If so, returns
9346 // are allowed as the first parameter to a two-parameter function
9869 // C++98 [class.friend]p1: A friend of a class is a function
9910 // A friend of a class is a function or class....
9914 // If a declaration acquires a function type through a
9917 // function declarator to have a function type, the program
9929 // class or function, the friend class or function is a member
9935 // - If a friend function is called, its name may be found by the
9937 // classes associated with the types of the function arguments.
9938 // - When looking for a prior declaration of a class or a function
9964 // appropriate scope and look for a function or function template
9970 // a template-id and the declaration is a function or an
9978 // innermost enclosing non-class scope. For a friend function
10011 // C++ [class.friend]p1: A friend of a class is a function or
10025 // A function can be defined in a friend declaration of a class if and
10026 // only if the class is a non-local class (9.8), the function name is
10027 // unqualified, and the function has namespace scope.
10033 // compute it and do a previous lookup there for a function
10034 // or function template.
10062 // C++ [class.friend]p1: A friend of a class is a function or
10072 // A function can be defined in a friend declaration of a class if and
10073 // only if the class is a non-local class (9.8), the function name is
10074 // unqualified, and the function has namespace scope.
10092 // A function can be defined in a friend declaration of a class if and
10093 // only if the class is a non-local class (9.8), the function name is
10094 // unqualified, and the function has namespace scope.
10104 // This implies that it has to be an operator or function.
10123 // Add the function declaration to the appropriate lookup tables,
10151 // Mark templated-scope function declarations as unsupported.
10170 // If the declaration wasn't the first, we delete the function anyway for
10430 // The declarator shall not specify a function or an array.
10440 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
10525 // If this class has a key function, but that key function is
10534 // The key function is in another translation unit.
10539 // We will be instantiating the key function.
10543 // If we have a class with no key function that is the subject
10597 // [...] A virtual member function is used if it is not pure. [...]
10713 // Don't add a note for a function delegating directo to itself.
10720 assert(FNTarget && "Ctor cycle through bodiless function");
10754 /// IdentifyCUDATarget - Determine the CUDA compilation target for this function
10776 // CUDA B.1.1 "The __device__ qualifier declares a function that is...
10781 // CUDA B.1.2 "The __global__ qualifier declares a function that is...
10783 // CUDA B.1.3 "The __host__ qualifier declares a function that is...