Skip to content

Commit 963ac1e

Browse files
committed
Change names for clarity
1 parent 671d17d commit 963ac1e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

cpp/common/src/codingstandards/cpp/rules/bitfieldsshouldnotbedeclared/BitFieldsShouldNotBeDeclared.qll

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ signature module BitFieldsShouldNotBeDeclaredConfigSig {
1717
}
1818

1919
module BitFieldsShouldNotBeDeclared<BitFieldsShouldNotBeDeclaredConfigSig Config> {
20-
query predicate problems(BitField bf, string message, Class linkLocation, string linkDescription) {
20+
query predicate problems(BitField bf, string message, Class c, string className) {
2121
/*
2222
* The condition that is allowed that is IF this is a bit-field, then it should be part of a class
2323
* that is flagged as a hardware or protocol class. To detect this we look for violations of that form.
2424
*/
2525

2626
not isExcluded(bf, Config::getQuery()) and
27-
not isExcluded(linkLocation, Config::getQuery()) and
28-
bf = linkLocation.getAField() and
29-
linkDescription = linkLocation.getName() and
30-
not linkLocation instanceof HardwareOrProtocolInterfaceClass and
27+
not isExcluded(c, Config::getQuery()) and
28+
bf = c.getAField() and
29+
className = c.getName() and
30+
not c instanceof HardwareOrProtocolInterfaceClass and
3131
message = "Bit-field used within a class $@ that is not a hardware or protocol class."
3232
}
3333
}

0 commit comments

Comments
 (0)