indent_extern
Whether the extern "C"
body is indented.
Possible values are true and false, default false.
It seems it removes any indentation if set to false.
Examples
true
Before:
extern "C" {
int value(const char *pathname, int flags); // C function declaration
}
int main()
{
std::cout << value() << '\n';
return 0;
}
code after:
extern "C" {
int value(const char *pathname, int flags); // C function declaration
}
int main()
{
std::cout << value() << '\n';
return 0;
}
Here the function declaration was indented (maybe later this formatting was broken during html generation).
false
Before:
extern "C" {
int value(const char *pathname, int flags); // C function declaration
}
int main()
{
std::cout << value() << '\n';
return 0;
}
code after:
extern "C" {
int value(const char *pathname, int flags); // C function declaration
}
int main()
{
std::cout << value() << '\n';
return 0;
}
See also
- indent_namespace: Whether to indent the body of a 'namespace'.
- indent_braces: Whether braces are indented to the body level.