astro-informatics / sopt

Sparse OPTimisation using state-of-the-art convex optimisation algorithms.
http://astro-informatics.github.io/sopt/
GNU General Public License v2.0
9 stars 11 forks source link

Identify and cleanup multiple consecutive namespace closing and reopening within same code/header file #390

Closed krishnakumarg1984 closed 1 year ago

krishnakumarg1984 commented 1 year ago

There are instances such as cpp/sopt/objective_functions.h where a namespace is closed and immediately reopened.

This issue is for identifying and cleaning up such redundancies in the codebase, discussed in #370. Shall be closed by #392.

The offending files can be searched for using ripgrep's multiline regex:

rg -Ul '^\} *\/\/ *\bnamespace\b(.*)$\n*(?:^ *$)*^ *\bnamespace\b *\1' cpp/