File tree 1 file changed +3
-5
lines changed
cpp/autosar/src/rules/A1-1-2
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -20,8 +20,8 @@ import codingstandards.cpp.autosar
20
20
21
21
class CompilationWithNoWarnings extends Compilation {
22
22
CompilationWithNoWarnings ( ) {
23
- getAnArgument ( ) = "-w"
24
- or not getAnArgument ( ) .regexpMatch ( "-W[\\w=-]+" )
23
+ getAnArgument ( ) = "-w" or
24
+ not getAnArgument ( ) .regexpMatch ( "-W[\\w=-]+" )
25
25
}
26
26
}
27
27
@@ -30,7 +30,5 @@ predicate hasResponseFileArgument(Compilation c) { c.getAnArgument().matches("@%
30
30
from File f
31
31
where
32
32
not isExcluded ( f , ToolchainPackage:: compilerWarningLevelNotInComplianceQuery ( ) ) and
33
- exists ( CompilationWithNoWarnings c | f = c .getAFileCompiled ( ) |
34
- not hasResponseFileArgument ( c )
35
- )
33
+ exists ( CompilationWithNoWarnings c | f = c .getAFileCompiled ( ) | not hasResponseFileArgument ( c ) )
36
34
select f , "No warning-level options were used in the compilation of '" + f .getBaseName ( ) + "'."
You can’t perform that action at this time.
0 commit comments