https://github.com/mysterymath commented:
Spending some more time thinking of the semantics, I think that "duplicates only" is definitely the best semantics to start with, both for redeclarations and multiples in a declaration. I also don't know that it's useful to warn; it doesn't really strongly signal a problem, and it would frustrate -Werror. Then, when duplicates occur, I'd agree it should always keep the earliest. Accordingly, I've given it a consistent semantics for both redeclarations and within declaration. Equivalent repeats are legal with no warning; non-equivalent repeats produce an error. I've also cleaned things up along the way; PTAL. https://github.com/llvm/llvm-project/pull/147431 _______________________________________________ cfe-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits
