Consider this source: ```c++ void main() { int a = ( int ) ( 1 + 2 ); int b = ( Namespace::Class ) ( 1 + 2 ); int c = ( Class ) ( 1 + 2 ); } ``` ...and this `.clang-format`: ``` BasedOnStyle: LLVM IndentWidth: 4 Language: Cpp SpacesInParens: Custom SpacesInParensOptions: InCStyleCasts: false Other: true ``` Running `clang-format` puts the spaces in C-style cast in case of namespace presense: ```c++ void main() { int a = (int)( 1 + 2 ); int b = ( Namespace::Class )( 1 + 2 ); int c = (Class)( 1 + 2 ); } ``` Tested with `clang-format` 18 and 19, on Windows and macOS. This issue may have the same bug nature as in #64416.