clang refactor retguard