[all-commits] [llvm/llvm-project] 9fda83: [clang-tidy] altera-id-dependent-backward-branch: ...

Egor Suvorov via All-commits all-commits at lists.llvm.org
Sun Mar 5 10:23:08 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9fda8322243168cbfcb78c4cf80afa838473a573
      https://github.com/llvm/llvm-project/commit/9fda8322243168cbfcb78c4cf80afa838473a573
  Author: Egor Suvorov <egor.suvorov at gmail.com>
  Date:   2023-03-05 (Sun, 05 Mar 2023)

  Changed paths:
    M clang-tools-extra/test/clang-tidy/checkers/altera/id-dependent-backward-branch.cpp

  Log Message:
  -----------
  [clang-tidy] altera-id-dependent-backward-branch: refactor test

This is a preparation for future fixes that need more tests.

* Put all "Inferred Assignments" testing at the end
* Group together ID-dependent variable/member testing
* Group together unused inferred assignments
* Use a literal instead of `get_local_size` which may have special meaning
* Create a new `struct` for each variable because analysis is done per field,
  not per field per instance.

Depends on D145303

Reviewed By: carlosgalvezp

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




More information about the All-commits mailing list