Skip to content
Snippets Groups Projects
Commit 6ac8a5db authored by Guillaume Roguez's avatar Guillaume Roguez Committed by Tristan Matthews
Browse files

daemon: (video) replace anonymous namespace by static keyword

Also minor code cleanup.

Rationale:
The C++ standard has un-deprecated the use of the static keyword.
But the superiority of anonymous namespaces is mainly for type 
declarations (including structures and classes).

For variables and functions, the static keyword is functionally
equivalent to using an anonymous namespace.

But there is a major drawback with the latter!
Name mangling for anonymous namespaces is such that it's awkward
to type/find a local symbol declared in them when using a debugger
such as gdb.

Refs #50143

Change-Id: I925af61d14db08fafa37bfbfeedde95feadd0948
parent f13705c0
Branches
Tags
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment