Skip to content

Commit 89464ce

Browse files
fix formatting
1 parent 58fa16a commit 89464ce

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

cpp/autosar/src/rules/A1-1-2/CompilerWarningLevelNotInCompliance.ql

+3-5
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ import codingstandards.cpp.autosar
2020

2121
class 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("@%
3030
from File f
3131
where
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))
3634
select f, "No warning-level options were used in the compilation of '" + f.getBaseName() + "'."

0 commit comments

Comments
 (0)