[all-commits] [llvm/llvm-project] ed5d65: [clang-tidy] NoexceptMoveConstructorCheck::check -...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Sat Feb 12 02:57:28 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: ed5d659038362d6ccfebad3d9b7e10e73e681196
      https://github.com/llvm/llvm-project/commit/ed5d659038362d6ccfebad3d9b7e10e73e681196
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2022-02-12 (Sat, 12 Feb 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/performance/NoexceptMoveConstructorCheck.cpp

  Log Message:
  -----------
  [clang-tidy] NoexceptMoveConstructorCheck::check - use castAs<> instead of getAs<> to avoid dereference of nullptr

The pointer is referenced immediately, so assert the cast is correct instead of returning nullptr




More information about the All-commits mailing list