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

Remove duplicate line in .clang-format #1435

Conversation

charles-lunarg
Copy link
Contributor

This cases newer versions of clang-format to fail to format the file.

This cases newer versions of clang-format to fail to format the file.
@ci-tester-lunarg
Copy link

CI gfxreconstruct build queued with queue ID 143114.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3802 running.

@ci-tester-lunarg
Copy link

CI gfxreconstruct build # 3802 passed.

@bradgrantham-lunarg
Copy link
Contributor

AllowShortFunctionsOnASingleLine: true is an alias for All. So a repeated directive but not a duplicate. LGTM at any rate

@charles-lunarg
Copy link
Contributor Author

AllowShortFunctionsOnASingleLine: true is an alias for All. So a repeated directive but not a duplicate. LGTM at any rate

Wait if true means all does that mean this change would alter the format of files? I don’t want to check this in and break subsequent pr’s due to wrong formatting.

@bradgrantham-lunarg
Copy link
Contributor

bradgrantham-lunarg commented Mar 1, 2024

I don't think so; you're deleting the first instance of the directive which is (I think) in older clang-formats replaced by the later directive.

$  clang-format -style='{AllowShortFunctionsOnASingleLine: true, AllowShortFunctionsOnASingleLine: Inline}' -dump-config | grep ShortFunctions
AllowShortFunctionsOnASingleLine: Inline
$ clang-format.exe --version
clang-format version 9.0.0 (tags/RELEASE_900/final)

@charles-lunarg charles-lunarg merged commit aa9d9c5 into LunarG:dev Mar 1, 2024
8 checks passed
@charles-lunarg charles-lunarg deleted the remove_duplicate_line_in_clang_format branch March 1, 2024 23:27
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.

3 participants