File tree Expand file tree Collapse file tree 1 file changed +5
-11
lines changed
cpp/autosar/src/rules/A1-1-2 Expand file tree Collapse file tree 1 file changed +5
-11
lines changed Original file line number Diff line number Diff line change @@ -36,9 +36,7 @@ class CompilationWithNoWarnings extends Compilation {
36
36
class CompilationArgument extends string {
37
37
Compilation compilation ;
38
38
39
- CompilationArgument ( ) {
40
- this = compilation .getAnArgument ( )
41
- }
39
+ CompilationArgument ( ) { this = compilation .getAnArgument ( ) }
42
40
}
43
41
44
42
/**
@@ -48,13 +46,11 @@ class EnableWarningFlag extends CompilationArgument {
48
46
string warningType ;
49
47
50
48
EnableWarningFlag ( ) {
51
- warningType = regexpCapture ( "^-W([\\w-]+)(=.*)?$" , 1 )
52
- and not this instanceof DisableWarningFlag
49
+ warningType = regexpCapture ( "^-W([\\w-]+)(=.*)?$" , 1 ) and
50
+ not this instanceof DisableWarningFlag
53
51
}
54
52
55
- string getWarningType ( ) {
56
- result = warningType
57
- }
53
+ string getWarningType ( ) { result = warningType }
58
54
}
59
55
60
56
/**
@@ -69,9 +65,7 @@ class DisableWarningFlag extends CompilationArgument {
69
65
warningType = regexpCapture ( "^-W([\\w-]+)=0" , 1 )
70
66
}
71
67
72
- string getWarningType ( ) {
73
- result = warningType
74
- }
68
+ string getWarningType ( ) { result = warningType }
75
69
}
76
70
77
71
from File f
You can’t perform that action at this time.
0 commit comments