[all-commits] [llvm/llvm-project] a396fb: [clang-tidy] Fix crash in modernize-use-trailing-r...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Mon Oct 30 22:52:54 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a396fb247e0719f56a830a9e4aab0449be7f843a
      https://github.com/llvm/llvm-project/commit/a396fb247e0719f56a830a9e4aab0449be7f843a
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-10-31 (Tue, 31 Oct 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseTrailingReturnTypeCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize/use-trailing-return-type-cxx20.cpp

  Log Message:
  -----------
  [clang-tidy] Fix crash in modernize-use-trailing-return-type (#70709)

Resolved the crash that occurred during the use of a user-defined
C-style string literal. The fix entails checking whether the identifier
is non-empty before attempting to read its name.




More information about the All-commits mailing list