[all-commits] [llvm/llvm-project] c2bee1: [clang-tidy][NFC] Unwind if-else-if-... in UnusedU...

Piotr Zegar via All-commits all-commits at lists.llvm.org
Sun Sep 3 00:15:02 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: c2bee1ed26a3355d164c92f1eb70ebf88804560d
      https://github.com/llvm/llvm-project/commit/c2bee1ed26a3355d164c92f1eb70ebf88804560d
  Author: Piotr Zegar <me at piotrzegar.pl>
  Date:   2023-09-03 (Sun, 03 Sep 2023)

  Changed paths:
    M clang-tools-extra/clang-tidy/misc/UnusedUsingDeclsCheck.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Unwind if-else-if-... in UnusedUsingDeclsCheck

Break a if-else-if-else... chain. Use early return instead.

Fixes: #46375




More information about the All-commits mailing list