Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix indentation in headers with pgindent #117

Merged
merged 2 commits into from
Dec 27, 2023

Conversation

vitcpp
Copy link
Contributor

@vitcpp vitcpp commented Dec 19, 2023

No description provided.

@vitcpp vitcpp changed the title Format code with pgindent headers Format headers with pgindent Dec 19, 2023
@vitcpp vitcpp changed the title Format headers with pgindent Fix indentation in headers with pgindent Dec 19, 2023
Copy link
Contributor

@esabol esabol left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not a fan of adding extern to all the function prototypes in the header files (function prototypes are already implicitly extern in header files), but there's nothing incorrect about it, obviously. It's just a style preference thing and, if that's your preference, it's fine with me.

@vitcpp
Copy link
Contributor Author

vitcpp commented Dec 19, 2023

@esabol pgindent requires the extern specifier in the beginning of the function declaration. Otherwise, it reformats function declarations in a wrong way. Once this PR is applied, pgindent will not produce new changes for headers.

@vitcpp vitcpp force-pushed the format-code-with-pgindent-headers branch from 1bbb81c to d7ce1ae Compare December 22, 2023 08:24
@vitcpp vitcpp merged commit 462fa03 into postgrespro:master Dec 27, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants