[all-commits] [llvm/llvm-project] 6f8726: [clang-tidy][NFC] Reimplement SimplifyBooleanExpr ...

Nathan James via All-commits all-commits at lists.llvm.org
Mon May 16 06:43:03 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6f8726191960f068d1068f84dfb9077d85c64fb9
      https://github.com/llvm/llvm-project/commit/6f8726191960f068d1068f84dfb9077d85c64fb9
  Author: Nathan James <n.james93 at hotmail.co.uk>
  Date:   2022-05-16 (Mon, 16 May 2022)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.cpp
    M clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprCheck.h
    R clang-tools-extra/clang-tidy/readability/SimplifyBooleanExprMatchers.h
    M clang-tools-extra/unittests/clang-tidy/ReadabilityModuleTest.cpp

  Log Message:
  -----------
  [clang-tidy][NFC] Reimplement SimplifyBooleanExpr with RecursiveASTVisitors

Reimplement the matching logic using Visitors instead of matchers.

Benchmarks from running the check over SemaCodeComplete.cpp
Before 0.20s, After 0.04s

Reviewed By: aaron.ballman

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




More information about the All-commits mailing list