Home | History | Annotate | Download | only in Sema

Lines Matching refs:Function

85       //   Default arguments are evaluated each time the function is
86 // called. The order of evaluation of function arguments is
87 // unspecified. Consequently, parameters of a function shall not
89 // evaluated. Parameters of a function declared before a default
112 // member function.
144 // If this function can throw any exceptions, make a note of that.
154 // If this function has a basic noexcept, it doesn't affect the outcome.
158 // If we have a throw-all spec at this point, ignore the function.
180 // noexcept(false) -> no spec on the new function
193 // Record the exceptions in this function's exception specification.
209 // only if T is allowed by the exception-specification of a function directly
211 // function it directly invokes allows all exceptions, and f shall allow no
212 // exceptions if every function it directly invokes allows no exceptions.
215 // for a function containing a throw-expression, that specification can still
277 /// provided for a function parameter is well-formed. If so, attach it
313 /// argument for a function parameter, but we can't parse it yet
343 /// arguments in the declarator, which is not a function declaration
346 /// that is not a function declaration or definition.
350 // parameter-declaration-clause of a function declaration or in a
358 if (chunk.Kind == DeclaratorChunk::Function) {
360 // This is a function declaration. It can have default arguments, but
361 // keep looking in case its return type is a function type with default
389 /// function, once we already know that they have the same
398 // later declarations of a function in the same
403 // function declaration, all parameters subsequent to a
411 // in a member function definition that appears outside of the class
413 // member function declaration in the class definition.
461 // Look for the function declaration where the default argument was
495 // Default function arguments shall not be specified in a declaration
497 // - the explicit specialization of a function template;
498 // - the explicit specialization of a member function template;
499 // - the explicit specialization of a member function of a class
501 // member function specialization belongs is implicitly
509 // Default arguments for a member function of a class template shall
510 // be specified on the initial declaration of the member function
514 // leads me to the conclusion that one cannot add default function
515 // arguments for an out-of-line definition of a member function of a
537 // default argument makes the function a special member function, the program
552 // C++11 [dcl.constexpr]p1: If any declaration of a function or function
570 /// This is called when there's a redeclaration of a VarDecl. The function
600 // There's lots of special cases for functions. For function pointers, system
611 /// function declaration are well-formed according to C++
639 // In a given function declaration, all parameters
665 // default argument, so that we leave the function parameters
676 // CheckConstexprParameterTypes - Check whether a function's parameter types
711 // CheckConstexprFunctionDecl - Check whether a function declaration satisfies
712 // the requirements of a constexpr function definition or a constexpr
739 // The definition of a constexpr function shall satisfy the following
746 // If it's not obvious why this function is virtual, find an overridden
747 // function which uses the 'virtual' keyword.
772 /// Check the given declaration statement is legal within a constexpr function
779 // The definition of a constexpr function(p3) or constructor(p4) [...] shall
874 /// Check the body for the given constexpr function declaration only contains
881 // The definition of a constexpr function shall satisfy the following
883 // - its function-body shall be = delete, = default, or a
888 // - its function-body shall not be a function-try-block;
894 // - its function-body shall be [...] a compound-statement that contains only
998 // if no function argument values exist such that the function invocation
1480 /// This function builds a string that can be used in error messages
1557 // If a virtual function is marked with the virt-specifier override and
1558 // does not override a member function of a base class, the program is
1568 /// function overrides a virtual member function marked 'final', according to
1801 // A function typedef ("typedef int f(); f a;").
1814 // If we have declared a member function template, set the access of the
2150 function that is
3766 // pure virtual function for which the final overrider is pure
4062 // function that is not a constructor declares that member function to be
4063 // const. [...] The class of which that function is a member shall be
4110 /// Is the special member function which would be selected to perform the
4125 /// Determine whether the specified special member function would be constexpr
4274 // A function that is explicitly defaulted shall
4275 // -- be a special member function (checked elsewhere),
4360 // An explicitly-defaulted function may be declared constexpr only if it
4385 // If a function is explicitly defaulted on its first declaration,
4407 // [For a] user-provided explicitly-defaulted function [...] if such a
4408 // function is implicitly defined as deleted, the program is ill-formed.
4599 /// Check whether we should delete a special member function due to having a
4609 // to M's default constructor results in an ambiguity or in a function
4614 // results in an ambiguity or a function that is deleted or inaccessible
4638 /// Check whether we should delete a special member function due to the class
4645 /// Check whether we should delete a special member function due to the class
4764 /// Determine whether a defaulted special member function should be defined as
4841 // Do access control from the special member function
4845 // -- for a virtual destructor, lookup of the non-array deallocation function
4846 // results in an ambiguity or in a function that is deleted or inaccessible
5151 /// Determine whether a defaulted or deleted special member function is trivial,
5210 // matches, in order to prevent absuridities like a function simultaneously
5323 /// \brief Member lookup function that determines whether a given C++
5571 /// function parameter into scope for use in parsing later parts of
5670 // Rebuild the function type "R" without any type qualifiers (in
5735 // If we have a virtual destructor, look up the deallocation function
5849 // Rebuild the function type "R" without any type qualifiers or
5865 /// well-formednes of the conversion function declarator @p D with
5874 // type of a conversion function (8.3.5) is "function taking no
5926 // The conversion-type-id shall not represent a function type nor
5938 // Rebuild the function type "R" without any parameters (in case any
5955 /// the declaration of the given C++ conversion function. This routine
5956 /// is responsible for recording the conversion function in the C++
5959 assert(Conversion && "Expected to receive a conversion function declaration");
5963 // Make sure we aren't redeclaring the conversion function.
5967 // [...] A conversion function is never used to convert a
5972 // FIXME: Suppress this warning if the conversion function ends up being a
5973 // virtual function that overrides a virtual function in a base class.
6630 // function will silently decide not to build a shadow decl, which
6731 // Target is not a function.
7426 // An implicitly declared special member function (Clause 12) shall have an
7442 // If this is a deleted function, add it anyway. This might be conformant
7456 // If this is a deleted function, add it anyway. This might be conformant
7490 // If this is a deleted function, add it anyway. This might be conformant
7492 // In particular, the problem is that this function never gets called. It
7493 // might just be ill-formed because this function attempts to refer to
7494 // a deleted function here.
7753 // Build up a function type for this particular constructor.
7874 // An implicitly declared special member function (Clause 12) shall have
8087 // Create a reference to the __builtin_objc_memmove_collectable function
8152 // subobject of x as a single function argument (as if by explicit
8367 // An implicitly declared special member function (Clause 12) shall have an
8494 "DefineImplicitCopyAssignment called for wrong function");
8516 // The statements that form the synthesized function body.
8710 // An implicitly declared special member function (Clause 12) shall have an
8950 "DefineImplicitMoveAssignment called for wrong function");
8972 // The statements that form the synthesized function body.
9172 // An implicitly declared special member function (Clause 12) shall have an
9330 // An implicitly declared special member function (Clause 12) shall have an
9347 // If this is a deleted function, add it anyway. This might be conformant
9362 // If this is a deleted function, add it anyway. This might be conformant
9377 // If this is a deleted function, add it anyway. This might be conformant
9379 // In particular, the problem is that this function never gets called. It
9380 // might just be ill-formed because this function attempts to refer to
9381 // a deleted function here.
9547 // Return the address of the __invoke function.
9553 assert(FunctionRef && "Can't refer to __invoke function?");
9559 // Fill in the __invoke function with a dummy implementation. IR generation
9589 // behavior. Note that only the general conversion function does this
9604 // function.
9612 // Set the body of the conversion function.
9715 // class-static, function-static).
9810 // A function template must have at least 2 parameters.
9816 // The function decl must have at least 1 parameter.
9840 // A program is ill-formed if an allocation function is declared in a
9878 // Each deallocation function shall return void and its first parameter
9911 // An operator function shall either be a non-static member
9912 // function or be a non-member function and have at least one
9939 // An operator function cannot have default arguments (8.3.6),
9942 // Only the function-call operator allows default arguments
10006 // The user-defined function called operator++ implements the
10007 // prefix and postfix ++ operator. If this function is a member
10008 // function with no parameters, or a non-member function with one
10010 // increment operator ++ for objects of that type. If the function
10011 // is a member function with one parameter (which shall be of type
10012 // int) or a non-member function with two parameters (the second
10031 /// of this literal operator function is well-formed. If so, returns
10108 // are allowed as the first parameter to a two-parameter function
10491 // A friend declaration that does not declare a function shall have one
10683 // C++98 [class.friend]p1: A friend of a class is a function
10724 // A friend of a class is a function or class....
10728 // If a declaration acquires a function type through a
10731 // function declarator to have a function type, the program
10743 // class or function, the friend class or function is a member
10749 // - If a friend function is called, its name may be found by the
10751 // classes associated with the types of the function arguments.
10752 // - When looking for a prior declaration of a class or a function
10778 // appropriate scope and look for a function or function template
10784 // a template-id and the declaration is a function or an
10792 // innermost enclosing non-class scope. For a friend function
10825 // C++ [class.friend]p1: A friend of a class is a function or
10839 // A function can be defined in a friend declaration of a class if and
10840 // only if the class is a non-local class (9.8), the function name is
10841 // unqualified, and the function has namespace scope.
10847 // compute it and do a previous lookup there for a function
10848 // or function template.
10876 // C++ [class.friend]p1: A friend of a class is a function or
10886 // A function can be defined in a friend declaration of a class if and
10887 // only if the class is a non-local class (9.8), the function name is
10888 // unqualified, and the function has namespace scope.
10906 // A function can be defined in a friend declaration of a class if and
10907 // only if the class is a non-local class (9.8), the function name is
10908 // unqualified, and the function has namespace scope.
10918 // This implies that it has to be an operator or function.
10946 // Add the function declaration to the appropriate lookup tables,
10976 // Mark templated-scope function declarations as unsupported.
11000 // If the declaration wasn't the first, we delete the function anyway for
11039 // function.
11312 // The declarator shall not specify a function or an array.
11322 if (isa<FunctionDecl>(Dcl)) { // The declarator shall not specify a function.
11409 // If this class has a key function, but that key function is
11418 // The key function is in another translation unit.
11424 // We will be instantiating the key function.
11428 // If we have a class with no key function that is the subject
11509 // [...] A virtual member function is used if it is not pure. [...]
11628 // Don't add a note for a function delegating directly to itself.
11636 assert(FNTarget && "Ctor cycle through bodiless function");
11698 // static member function (although its type and value category are defined
11699 // within a static member function as they are within a non-static member
11700 // function). [ Note: this is because declaration matching does not occur
11868 /// IdentifyCUDATarget - Determine the CUDA compilation target for this function
11890 // CUDA B.1.1 "The __device__ qualifier declares a function that is...
11895 // CUDA B.1.2 "The __global__ qualifier declares a function that is...
11897 // CUDA B.1.3 "The __host__ qualifier declares a function that is...