Package org.eclipse.cdt.core.dom.ast.cpp
Class SemanticQueries
java.lang.Object
org.eclipse.cdt.core.dom.ast.cpp.SemanticQueries
This class exposes semantic queries about C++ code to clients such
as code analysis.
- Since:
- 5.5
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ICPPMethod[]
getPureVirtualMethods
(ICPPClassType classType) Returns all pure virtual methods of a class.static ICPPMethod[]
getPureVirtualMethods
(ICPPClassType classType, IASTNode point) Deprecated.static boolean
isCopyAssignmentOperator
(ICPPMethod method) static boolean
isCopyConstructor
(ICPPConstructor constructor) static boolean
static boolean
isCopyOrMoveConstructor
(ICPPConstructor constructor) static boolean
isMoveAssignmentOperator
(ICPPMethod method) static boolean
isMoveConstructor
(ICPPConstructor constructor) static boolean
isUnknownBuiltin
(IProblemBinding binding, IASTNode node) Returns whether a problem binding represents a name resolution error due to an unknown built-in.
-
Constructor Details
-
SemanticQueries
public SemanticQueries()
-
-
Method Details
-
isCopyOrMoveConstructor
-
isMoveConstructor
-
isCopyConstructor
-
isCopyAssignmentOperator
- Since:
- 6.9
-
isCopyOrMoveAssignmentOperator
- Since:
- 6.9
-
isMoveAssignmentOperator
- Since:
- 6.9
-
getPureVirtualMethods
Returns all pure virtual methods of a class. Inherited pure virtual methods that have not been implemented are also returned. NOTE: The method produces complete results for template instantiations but doesn't take into account base classes and methods dependent on unspecified template parameters.- Parameters:
classType
- the class whose pure virtual methods should be returned- Returns:
- an array containing all pure virtual methods of the class
- Since:
- 6.4
-
getPureVirtualMethods
@Deprecated public static ICPPMethod[] getPureVirtualMethods(ICPPClassType classType, IASTNode point) Deprecated.UseSemanticQueries
getPureVirtualMethods(ICPPClassType)
instead.- Since:
- 5.6
-
isUnknownBuiltin
Returns whether a problem binding represents a name resolution error due to an unknown built-in. Importantly, this will not return true for a misuse of a known builtin, which we want to diagnose.- Parameters:
binding
- The problem binding to test.node
- Any node in the AST. Used to access the AST root.- Since:
- 6.3
-
SemanticQueries
getPureVirtualMethods(ICPPClassType)
instead.