OSDN Git Service

[clang-tidy] Fix crash in readability-identifier-naming check
authorNathan James <n.james93@hotmail.co.uk>
Wed, 3 Feb 2021 05:11:28 +0000 (05:11 +0000)
committerTom Stellard <tstellar@redhat.com>
Mon, 15 Feb 2021 19:23:15 +0000 (11:23 -0800)
commit54b68d56dc957457b54c700af8e24a2c86539cc3
tree61cf61a276c77c8a9d6e3eab21cc26dced5a9872
parent66b319327bce68377c700b2b57a109498c5500bd
[clang-tidy] Fix crash in readability-identifier-naming check

`isParamInMainLikeFunction` didn't check if the function had an identifer name before calling getName() which could lead to an assert.

(cherry picked from commit c97592c5df09850404a9ddbfb614c7df271d1dfe)
clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp