Skip to content

Wnonnull for ObjC message expressions should point at correct argument #25503

Open
@nico

Description

@nico
Bugzilla Link 25129
Version trunk
OS All
CC @DougGregor

Extended Description

I'm getting this diagnostic:

../../device/bluetooth/test/bluetooth_test_mac.mm:124:33: error: null passed to a callee that requires a non-null argument [-Werror,-Wnonnull]
[central_manager_delegate centralManager:central_manager
^

The call looks like so:

  [central_manager_delegate centralManager:central_manager
                     didDiscoverPeripheral:peripheral
                         advertisementData:advertisement_data
                                      RSSI:0];

It'd be cool if the diagnostic could point at the RSSI: (where 0 is passed) instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugzillaIssues migrated from bugzillaclang:frontendLanguage frontend issues, e.g. anything involving "Sema"objective-c++

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions