[all-commits] [llvm/llvm-project] 45924e: [clang-tidy] Ignore implicit casts in modernize-us...

Malcolm Parsons via All-commits all-commits at lists.llvm.org
Tue Jan 14 02:10:00 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 45924eb4671692b3fa9fd52fe39c81ec0647a848
      https://github.com/llvm/llvm-project/commit/45924eb4671692b3fa9fd52fe39c81ec0647a848
  Author: Malcolm Parsons <malcolm.parsons at gmail.com>
  Date:   2020-01-14 (Tue, 14 Jan 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/modernize-use-default-member-init.cpp

  Log Message:
  -----------
  [clang-tidy] Ignore implicit casts in modernize-use-default-member-init

Summary:
Initialising a pointer from nullptr involves an implicit cast.
Ignore it after getting initialiser from InitListExpr.

Fixes: PR44440

Reviewers: aaron.ballman, alexfh, JonasToth

Reviewed By: JonasToth

Subscribers: xazax.hun, cfe-commits

Tags: #clang

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




More information about the All-commits mailing list