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
Constructors -
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 booleanisCopyAssignmentOperator(ICPPMethod method) static booleanisCopyConstructor(ICPPConstructor constructor) static booleanstatic booleanisCopyOrMoveConstructor(ICPPConstructor constructor) static booleanisMoveAssignmentOperator(ICPPMethod method) static booleanisMoveConstructor(ICPPConstructor constructor) static booleanisUnknownBuiltin(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.UseSemanticQueriesgetPureVirtualMethods(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
-
SemanticQueriesgetPureVirtualMethods(ICPPClassType)instead.