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