Skip to content

Commit fe315a9

Browse files
committed
CPP: Make things private.
1 parent cb80aa3 commit fe315a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cpp/ql/src/Likely Bugs/Leap Year/LeapYear.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import semmle.code.cpp.commons.DateTime
1010
/**
1111
* Get the top-level `BinaryOperation` enclosing the expression e.
1212
*/
13-
BinaryOperation getATopLevelBinaryOperationExpression(Expr e) {
13+
private BinaryOperation getATopLevelBinaryOperationExpression(Expr e) {
1414
result = e.getEnclosingElement().(BinaryOperation)
1515
or
1616
result = getATopLevelBinaryOperationExpression(e.getEnclosingElement())
@@ -19,7 +19,7 @@ BinaryOperation getATopLevelBinaryOperationExpression(Expr e) {
1919
/**
2020
* Holds if the top-level binary operation for expression `e` includes the operator specified in `operator` with an operand specified by `valueToCheck`.
2121
*/
22-
predicate additionalLogicalCheck(Expr e, string operation, int valueToCheck) {
22+
private predicate additionalLogicalCheck(Expr e, string operation, int valueToCheck) {
2323
exists(BinaryLogicalOperation bo | bo = getATopLevelBinaryOperationExpression(e) |
2424
exists(BinaryArithmeticOperation bao | bao = bo.getAChild*() |
2525
bao.getAnOperand().getValue().toInt() = valueToCheck and

0 commit comments

Comments
 (0)