[all-commits] [llvm/llvm-project] c69ec6: [clang-tidy] Added check to disable bugprone-infin...

Nathan James via All-commits all-commits at lists.llvm.org
Tue Feb 11 11:37:17 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: c69ec6476806147e46bf09b693acb24177982dc2
      https://github.com/llvm/llvm-project/commit/c69ec6476806147e46bf09b693acb24177982dc2
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2020-02-11 (Tue, 11 Feb 2020)

  Changed paths:
    M clang-tools-extra/clang-tidy/bugprone/InfiniteLoopCheck.cpp
    M clang-tools-extra/test/clang-tidy/checkers/bugprone-infinite-loop.cpp

  Log Message:
  -----------
  [clang-tidy] Added check to disable bugprone-infinite-loop on known false condition

Summary: Addresses [[ https://bugs.llvm.org/show_bug.cgi?id=44816 | bugprone-infinite-loop false positive with CATCH2 ]] by disabling the check on loops where the condition is known to always eval as false, in other words not a loop.

Reviewers: aaron.ballman, alexfh, hokein, gribozavr2, JonasToth

Reviewed By: gribozavr2

Subscribers: xazax.hun, cfe-commits

Tags: #clang, #clang-tools-extra

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




More information about the All-commits mailing list