Mark variables/fields as ID-dependent when initializing from ID-dependent
expressions only, not any expressions.
Fixes https://github.com/llvm/llvm-project/issues/52790
Depends on D145304
Paths
| Differential D145305
[clang-tidy] altera-id-dependent-backward-branch: do not mark all variables Needs ReviewPublic Authored by yeputons-gh on Mar 4 2023, 3:32 AM.
Details
Summary Mark variables/fields as ID-dependent when initializing from ID-dependent Fixes https://github.com/llvm/llvm-project/issues/52790 Depends on D145304
Diff Detail
Event Timeline
yeputons-gh retitled this revision from clang-tidy altera-id-dependent-backward-branch: fix #52790 to [clang-tidy] altera-id-dependent-backward-branch: fix #52790.Mar 5 2023, 9:44 AM yeputons-gh retitled this revision from [clang-tidy] altera-id-dependent-backward-branch: fix #52790 to [clang-tidy] altera-id-dependent-backward-branch: do not mark all variables.Mar 5 2023, 9:45 AM
Revision Contents
Diff 502445 clang-tools-extra/clang-tidy/altera/IdDependentBackwardBranchCheck.h
clang-tools-extra/clang-tidy/altera/IdDependentBackwardBranchCheck.cpp
clang-tools-extra/test/clang-tidy/checkers/altera/id-dependent-backward-branch.cpp
|
This line previously yielded a false positive. Now it does not. More tests are created in upcoming patches.