[all-commits] [llvm/llvm-project] 538677: Add an API to simplify setting TraversalKind in cl...

Stephen Kelly via All-commits all-commits at lists.llvm.org
Fri Feb 5 06:04:21 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 538677abbde4e74795d0bc21a77a3d263893c37d
      https://github.com/llvm/llvm-project/commit/538677abbde4e74795d0bc21a77a3d263893c37d
  Author: Stephen Kelly <steveire at gmail.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M clang/include/clang/ASTMatchers/ASTMatchFinder.h
    M clang/lib/ASTMatchers/ASTMatchFinder.cpp

  Log Message:
  -----------
  Add an API to simplify setting TraversalKind in clang-tidy matchers

Reviewers: sammccall

Subscribers: cfe-commits

Tags: #clang

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


  Commit: 2cba22c23a769103f4f0c31968620a488f13b625
      https://github.com/llvm/llvm-project/commit/2cba22c23a769103f4f0c31968620a488f13b625
  Author: Stephen Kelly <steveire at gmail.com>
  Date:   2021-02-05 (Fri, 05 Feb 2021)

  Changed paths:
    M clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.cpp
    M clang-tools-extra/clang-tidy/readability/ContainerSizeEmptyCheck.h
    M clang-tools-extra/test/clang-tidy/checkers/readability-container-size-empty.cpp

  Log Message:
  -----------
  [clang-tidy] Simplify implementation of container-size-empty

Use IgnoreUnlessSpelledInSource to make the matcher code smaller and
more visibly-related to the code.

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


Compare: https://github.com/llvm/llvm-project/compare/874ce9b80f87...2cba22c23a76


More information about the All-commits mailing list