[all-commits] [llvm/llvm-project] 54b68d: [clang-tidy] Fix crash in readability-identifier-n...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Feb 15 11:24:23 PST 2021


  Branch: refs/heads/release/12.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 54b68d56dc957457b54c700af8e24a2c86539cc3
      https://github.com/llvm/llvm-project/commit/54b68d56dc957457b54c700af8e24a2c86539cc3
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-02-15 (Mon, 15 Feb 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp

  Log Message:
  -----------
  [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)




More information about the All-commits mailing list