make FunctionList and registration more efficient
apply clang-format