[all-commits] [llvm/llvm-project] 2ea8b5: clang-tidy - silence static analyzer getAs<> null ...

Simon Pilgrim via All-commits all-commits at lists.llvm.org
Thu Oct 17 04:12:56 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2ea8b58cb6182b0e0a8982849a1702406abfc99b
      https://github.com/llvm/llvm-project/commit/2ea8b58cb6182b0e0a8982849a1702406abfc99b
  Author: Simon Pilgrim <llvm-dev at redking.me.uk>
  Date:   2019-10-17 (Thu, 17 Oct 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/RedundantExpressionCheck.cpp
    M clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp

  Log Message:
  -----------
  clang-tidy - silence static analyzer getAs<> null dereference warnings. NFCI.

The static analyzer is warning about potential null dereferences, but in these cases we should be able to use castAs<> directly and if not assert will fire for us.

llvm-svn: 375102




More information about the All-commits mailing list