[all-commits] [llvm/llvm-project] 1a53fb: [clang-tidy] NarrowingConversionsCheck should supp...

Haojian Wu via All-commits all-commits at lists.llvm.org
Fri Jun 11 04:03:14 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1a53fb0596abf4a8a9d5b4633cd5a8dc04f5e602
      https://github.com/llvm/llvm-project/commit/1a53fb0596abf4a8a9d5b4633cd5a8dc04f5e602
  Author: Haojian Wu <hokein.wu at gmail.com>
  Date:   2021-06-11 (Fri, 11 Jun 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.cpp
    M clang-tools-extra/clang-tidy/cppcoreguidelines/NarrowingConversionsCheck.h
    M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-narrowing-conversions-equivalentbitwidth-option.cpp

  Log Message:
  -----------
  [clang-tidy] NarrowingConversionsCheck should support inhibiting conversions of
mixed integer and floating point types with WarnOnEquivalentBitWidth=0.

Also standardize control flow of handleX conversion functions to make it easier to be consistent.

Patch by Stephen Concannon!

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




More information about the All-commits mailing list