- Moves the check to ASTStructuralEquivalence.cpp like all the other checks.
- Adds the missing checks for identifier and init expression. Also add the respective tests for that stuff.
Details
Diff Detail
Event Timeline
clang/lib/AST/ASTStructuralEquivalence.cpp | ||
---|---|---|
1640 | FWIW, there is some duplicating here that we could avoid. The question is if we should keep the diagnostics or drop them? (This code here is also missing the InitExpr check) |
Great, thanks!
clang/lib/AST/ASTStructuralEquivalence.cpp | ||
---|---|---|
1640 | I don't mind if we drop the warning, actually, we do emit the warnings inconsistently, so it would not matter. In a long term, I think, either we should emit the warnings everywhere, or we should return with the non-equivalent node pair, so the user code of StructuralEquivalenceContext could emit the warning properly and only in one place. I'd prefer the latter. |
FWIW, there is some duplicating here that we could avoid. The question is if we should keep the diagnostics or drop them?
(This code here is also missing the InitExpr check)