_______________________________________________
LLVM Developers mailing list
llvm...@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev
From my reading of the coding-standard (AND your patch!) I don’t see where it even requires either form, other than ‘thou shall run clang-format’. Use in not-particularly-related examples doesn’t have a ‘shall’ relationship for me at all. For example, nothing in that Use Namespace Qualifiers… should convince you to use functions starting with ‘lower case’ (as in ‘foo’).
IMO, I think if we want to say anything, it should be that we want to have end-of-namespace curleys marked, either as // namespace llvm (or just // namespace?) or // end namespace llvm (or //end anonymous namespace)
I agree with James. Both are reasonable, this doesn't really matter, we don't have to pick and enforce one.
Philip
Er, you and I are reading James' response very differently.
To me, this topic does not matter. We do not need to enforce a
rule on this. Reviewers should not be wasting time on this.
Philip
If the coding guidelines document defaulted to clang-tidy's suggested
namespace comment style, that would cause the least amount of confusion
for me. I will follow that style for any new namespaces I introduce to
the code base.
I wouldn't go out and proclaim that all existing code that uses the
other style ("end namespace clang") is now in direct violation of the
guidelines and must be changed, though.

I personally thing this is just something clang-format should update automatically as files get modified - over time the style automatically becomes consistent.
_______________________________________________