blob: 877b8db8da8a292dd679ece3ca7842714e1a0dc9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*******************************************************************************
* Copyright (c) 2005, 2015 IBM Corporation and others.
*
* This program and the accompanying materials
* are made available under the terms of the Eclipse Public License 2.0
* which accompanies this distribution, and is available at
* https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*
* Contributors:
* Andrew Niefer (IBM) - Initial API and implementation
* Sergey Prigogin (Google)
* Markus Schorn (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.core.dom.ast.cpp;
import org.eclipse.cdt.core.dom.ast.IFunctionType;
import org.eclipse.cdt.core.dom.ast.IPointerType;
import org.eclipse.cdt.internal.core.dom.parser.cpp.ICPPEvaluation;
/**
* @noextend This interface is not intended to be extended by clients.
* @noimplement This interface is not intended to be implemented by clients.
*/
public interface ICPPFunctionType extends IFunctionType {
/**
* Returns {@code true} for a constant method.
*/
public boolean isConst();
/**
* Returns {@code true} for a volatile method.
*/
public boolean isVolatile();
/**
* Returns {@code true} for a method declared with a ref-qualifier.
* @since 5.9
*/
public boolean hasRefQualifier();
/**
* Returns {@code true} if the type of the implicit object parameter is an rvalue reference.
* @since 5.9
*/
public boolean isRValueReference();
/**
* Returns the evaluation object for the noexcept specifier or null if there is no noexcept specifier.
* @since 6.7
* @noreference This method is not intended to be referenced by clients.
*/
public ICPPEvaluation getNoexceptSpecifier();
/**
* Whether the function type takes variable number of arguments.
* @since 5.2
*/
@Override
public boolean takesVarArgs();
/**
* @deprecated function types don't relate to this pointers at all.
* @noreference This method is not intended to be referenced by clients and should be removed.
*/
@Deprecated
public IPointerType getThisType();
}
|