File tree 1 file changed +10
-2
lines changed
Filter options
1 file changed +10
-2
lines changed
Original file line number Diff line number Diff line change @@ -19,6 +19,12 @@ import codingstandards.c.cert
19
19
import codingstandards.cpp.types.Compatible
20
20
import ExternalIdentifiers
21
21
22
+ predicate interestedInFunctions ( FunctionDeclarationEntry f1 , FunctionDeclarationEntry f2 ) {
23
+ not f1 = f2 and
24
+ f1 .getDeclaration ( ) = f2 .getDeclaration ( ) and
25
+ f1 .getName ( ) = f2 .getName ( )
26
+ }
27
+
22
28
from ExternalIdentifiers d , FunctionDeclarationEntry f1 , FunctionDeclarationEntry f2
23
29
where
24
30
not isExcluded ( f1 , Declarations2Package:: incompatibleFunctionDeclarationsQuery ( ) ) and
@@ -29,10 +35,12 @@ where
29
35
f1 .getName ( ) = f2 .getName ( ) and
30
36
(
31
37
//return type check
32
- not FunctionDeclarationTypeEquivalence< TypesCompatibleConfig > :: equalReturnTypes ( f1 , f2 )
38
+ not FunctionDeclarationTypeEquivalence< TypesCompatibleConfig , interestedInFunctions / 2 > :: equalReturnTypes ( f1 ,
39
+ f2 )
33
40
or
34
41
//parameter type check
35
- not FunctionDeclarationTypeEquivalence< TypesCompatibleConfig > :: equalParameterTypes ( f1 , f2 )
42
+ not FunctionDeclarationTypeEquivalence< TypesCompatibleConfig , interestedInFunctions / 2 > :: equalParameterTypes ( f1 ,
43
+ f2 )
36
44
) and
37
45
// Apply ordering on start line, trying to avoid the optimiser applying this join too early
38
46
// in the pipeline
You can’t perform that action at this time.
0 commit comments