[all-commits] [llvm/llvm-project] 8adfb3: [clang-tidy] Simplify diagnostics for UniqueptrRes...

Nathan James via All-commits all-commits at lists.llvm.org
Mon Mar 1 10:41:01 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8adfb38224697afca205343c0e1a49bd03ecfc09
      https://github.com/llvm/llvm-project/commit/8adfb38224697afca205343c0e1a49bd03ecfc09
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2021-03-01 (Mon, 01 Mar 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/UniqueptrResetReleaseCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/misc-uniqueptr-reset-release.cpp

  Log Message:
  -----------
  [clang-tidy] Simplify diagnostics for UniqueptrResetRelease check

Tweak the diagnostics to create small replacements rather than grabbing source text from the lexer.
Also simplified the diagnostic message.

Reviewed By: aaron.ballman

Differential Revision: https://reviews.llvm.org/D97632




More information about the All-commits mailing list