[Lldb-commits] [PATCH] D93541: [Process/NetBSD] Copy changes from FreeBSDRemote and reformat [WIP]
Pavel Labath via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Mon Dec 21 11:42:31 PST 2020
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
More information about the lldb-commits
mailing list