Issue 173435
Summary [clang-tidy] False positive for `cppcoreguidelines-init-variables`
Labels clang-tidy
Assignees
Reporter timxx
    Given any for loop objc code, it reports variable is not initialized:

```objc
for (NSNumber* n in array) {
}
```

here `array` is `NSArray<NSNumber*>>`.

It can be reproduce with other types, such as [allPresses](https://developer.apple.com/documentation/uikit/uipressesevent/allpresses?language=objc) in [UIPressesEvent](https://developer.apple.com/documentation/uikit/uipressesevent?language=objc)

```objc
for (UIPress* press in event.allPresses) {
}
```
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to