[all-commits] [llvm/llvm-project] 689b28: [APINotes] Avoid duplicated attributes for class t...
Egor Zhdan via All-commits
all-commits at lists.llvm.org
Wed Jan 15 07:24:58 PST 2025
Branch: refs/heads/users/egorzhdan/apinotes-class-template
Home: https://github.com/llvm/llvm-project
Commit: 689b28a653eeed50a04a2fbd9286831ddfa1018b
https://github.com/llvm/llvm-project/commit/689b28a653eeed50a04a2fbd9286831ddfa1018b
Author: Egor Zhdan <e_zhdan at apple.com>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M clang/lib/Sema/SemaTemplate.cpp
M clang/test/APINotes/Inputs/Headers/Templates.h
M clang/test/APINotes/templates.cpp
Log Message:
-----------
[APINotes] Avoid duplicated attributes for class template instantiations
If a C++ class template is annotated via API Notes, the instantiations had the attributes repeated twice. This is because Clang was adding the attribute twice while processing the same class template. This change makes sure we don't try to add attributes from API Notes twice.
There is currently no way to annotate specific instantiations using API Notes.
rdar://142539959
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list