llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.05k stars 11.59k forks source link

Function pointers with calling conventions not spaced correctly #34171

Open smeenai opened 6 years ago

smeenai commented 6 years ago
Bugzilla Link 34823
Version trunk
OS All
CC @compnerd

Extended Description

% echo 'void (__stdcall *f)(void);' | clang-format
void(__stdcall *f)(void);

The space between the type and pointer name gets dropped if the pointer has a calling convention. It works as expected without the calling convention.

dzhdanNV commented 3 weeks ago

It's still the issue in 2024.