To replicate:
shift+v to visually select a line 
,cf to run clang format (cursor is in correct position) 
u to undo (cursor is now at top of file) 
Is there a way to have the cursor remain in the original position after the undo?
clang-format version 3.4