This gets rid of numerous clang-tidy warnings in editor environments
along:
... declared 'static', move to anonymous namespace instead [misc-use-anonymous-namespace]
The MLIR style has been to use 'static' for free-standing functions and
this appears in line with https://llvm.org/docs/CodingStandards.html#namespace-indentation
In any case, these warnings completely pollute/mess up in-editor
diagnostics (for eg. vim with YCM would show all these clang-tidy
warnings making real ones nearly invisible).