Skip to content

Commit 665a7d1

Browse files
committed
Improve documentation
1 parent 3f1997b commit 665a7d1

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

cpp/common/src/codingstandards/cpp/deviations/CodeIdentifierDeviation.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,8 @@ private predicate mkBeginStack(DeviationRecord record, File file, BeginStack sta
145145
// Stack is empty at the start
146146
index = 0 and
147147
stack = TEmptyBeginStack() and
148+
// Only initialize when there is at least one such comment marker for this file and record
149+
// pairing
148150
exists(CommentDeviationRangeMarker marker |
149151
marker.getRecord() = record and marker.getLocation().getFile() = file
150152
)

0 commit comments

Comments
 (0)