File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
cpp/autosar/src/rules/A1-1-2 Expand file tree Collapse file tree 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
2020
2121class CompilationWithNoWarnings extends Compilation {
2222 CompilationWithNoWarnings ( ) {
23- getAnArgument ( ) = "-w"
24- or not getAnArgument ( ) .regexpMatch ( "-W[\\w=-]+" )
23+ getAnArgument ( ) = "-w" or
24+ not getAnArgument ( ) .regexpMatch ( "-W[\\w=-]+" )
2525 }
2626}
2727
@@ -30,7 +30,5 @@ predicate hasResponseFileArgument(Compilation c) { c.getAnArgument().matches("@%
3030from File f
3131where
3232 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 ) )
3634select 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