[all-commits] [llvm/llvm-project] 0762db: [clang-tidy] Fix crash in modernize-use-ranges (#1...

Nathan James via All-commits all-commits at lists.llvm.org
Thu Jul 25 08:25:58 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 0762db6533eda3453158c7b9b0631542c47093a8
      https://github.com/llvm/llvm-project/commit/0762db6533eda3453158c7b9b0631542c47093a8
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2024-07-25 (Thu, 25 Jul 2024)

  Changed paths:
    M clang-tools-extra/clang-tidy/utils/UseRangesCheck.cpp
    M clang-tools-extra/clang-tidy/utils/UseRangesCheck.h
    M clang-tools-extra/test/clang-tidy/checkers/modernize/Inputs/use-ranges/fake_std.h

  Log Message:
  -----------
  [clang-tidy] Fix crash in modernize-use-ranges (#100427)

Crash seems to be caused by the check function not handling inline
namespaces correctly for some instances. Changed how the Replacer is got
from the MatchResult now which should alleviate any potential issues

Fixes #100406



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list