[all-commits] [llvm/llvm-project] 4e1aaf: [clang-tidy] Ignore other members in a union if an...
henrywong via All-commits
all-commits at lists.llvm.org
Thu Sep 1 21:41:55 PDT 2022
Branch: refs/heads/arcpatch-D127293
Home: https://github.com/llvm/llvm-project
Commit: 4e1aafdefe135ccea555d7fef19470a14d6f27ba
https://github.com/llvm/llvm-project/commit/4e1aafdefe135ccea555d7fef19470a14d6f27ba
Author: wangliushuai <wangliushuai at bytedance.com>
Date: 2022-06-08 (Wed, 08 Jun 2022)
Changed paths:
M clang-tools-extra/clang-tidy/cppcoreguidelines/ProTypeMemberInitCheck.cpp
M clang-tools-extra/test/clang-tidy/checkers/cppcoreguidelines-pro-type-member-init.cpp
Log Message:
-----------
[clang-tidy] Ignore other members in a union if any member of it is initialized in cppcoreguidelines-pro-type-member-init
If a union member is initialized, other members are still recorded in the container to be initialized. This patch fixes this behavior.
Reference issue: https://github.com/llvm/llvm-project/issues/54748
Differential Revision: https://reviews.llvm.org/D127293
More information about the All-commits
mailing list