1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 22:52:11 +02:00

Added a missing isStatic check

Change-Id: I7d66802dbd9141328c555141e97fde1083c1e0e1
This commit is contained in:
Sergey Prigogin 2016-12-27 19:22:49 -08:00
parent 6fbe7991c2
commit d8ee90b27b

View file

@ -919,7 +919,7 @@ public class SemanticUtil {
public static IType[] getParameterTypesIncludingImplicitThis(ICPPFunction function) {
IType[] result = function.getType().getParameterTypes();
if (function instanceof ICPPMethod) {
if (function instanceof ICPPMethod && !function.isStatic()) {
result = addImplicitParameterType(result, (ICPPMethod) function);
}
return result;