Skip to content

Commit 862d630

Browse files
committed
Add DeclAttribute::isEquivalent()
Adds a new method to `DeclAttribute` which can compare two attributes and see if they would be “equivalent” in light of the given decl. “Equivalent” here means that they would have the same effect on the declaration; for instance, two attrs with different source locations can be equivalent, and two attributes with the same arguments in a different order are equivalent if the ordering of those argumetns is not semantically equivalent. This capability is not yet used in this commit, but in a future commit `@abi` will check if certain attributes are equivalent or not.
1 parent c2c8abf commit 862d630

File tree

2 files changed

+402
-0
lines changed

2 files changed

+402
-0
lines changed

0 commit comments

Comments
 (0)