[all-commits] [llvm/llvm-project] c16b3e: Fix false positive in magic number checker.

Florin Iucha via All-commits all-commits at lists.llvm.org
Tue Dec 24 07:04:07 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c16b3ec597d277b5a7397db308f8ec730f3330a3
      https://github.com/llvm/llvm-project/commit/c16b3ec597d277b5a7397db308f8ec730f3330a3
  Author: Florin Iucha <florin at signbit.net>
  Date:   2019-12-24 (Tue, 24 Dec 2019)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/MagicNumbersCheck.cpp
    M clang-tools-extra/docs/ReleaseNotes.rst
    A clang-tools-extra/test/clang-tidy/checkers/readability-magic-numbers-todo.cpp
    M clang-tools-extra/test/clang-tidy/checkers/readability-magic-numbers.cpp

  Log Message:
  -----------
  Fix false positive in magic number checker.

cppcoreguidelines-avoid-magic-numbers should not warn about enum class.
Fixes PR40640.




More information about the All-commits mailing list