labath added inline comments.
================ Comment at: lldb/source/Plugins/Process/NetBSD/NativeRegisterContextNetBSD_x86_64.cpp:41 + +namespace { +// x86 64-bit general purpose registers. ---------------- mgorny wrote: > labath wrote: > > I don't know if this namespace snuck into the FreeBSD file, but generally, > > this is not the proper use of anonymous namespaces in llvm. See [[ > > http://llvm.org/docs/CodingStandards.html#anonymous-namespaces | the coding > > standards ]] for more details. > I guess I've copied it from Linux. Should I eliminate it entirely or move to > `lldb_private::process_netbsd`? Remove it, and use "static" instead. Objects which are local to a file should be marked as such. Just, according to the coding standards, we should use "static" whereever possible. I've just done something like that in linux with 3f3ab03ab7b. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D93541/new/ https://reviews.llvm.org/D93541 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits