Closed as not planned
Closed as not planned
Description
Here is the minimal example:
.clang-format
:
BasedOnStyle: Microsoft
---
Language: Cpp
UseTab: Always
test.h
:
void f(void)
{
int i = 3;
auto impl = [&i]<int... I>()
{
(I, ...);
};
}
when running clang-format --style=file -i test.h
, Clang-Format would replace all the tab indentations with 4 spaces, even UseTab
is Always
; in fact, clang-format would neglect all given style option, except for BasedOnStyle
(which I am not sure).
However, if change the extension to .cpp
or .hpp
, Clang-Format would work fine.
Without reference capture (say, with value capture only), this would also work fine.
Type parameter (typename... T
) works fine too.