Bug #112647 clang-format 17 errors out on .clang-format
Submitted: 6 Oct 2023 9:28 Modified: 9 Oct 2023 6:56
Reporter: Laurynas Biveinis (OCA) Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Compiling Severity:S3 (Non-critical)
Version:8.0.34,8.1.0 OS:Any
Assigned to: CPU Architecture:Any

[6 Oct 2023 9:28] Laurynas Biveinis
Description:
clang-format version 17 starts diagnosing issues with .clang-format in the source tree:
$ clang-format --dump-config
/Users/laurynas/vilniusdb/mysql-8.1.0/.clang-format:209:1: error: duplicated mapping key 'DerivePointerAlignment'
DerivePointerAlignment: false
^~~~~~~~~~~~~~~~~~~~~~
Error reading /Users/laurynas/vilniusdb/mysql-8.1.0/.clang-format: Invalid argument

Version 16 and below do not do that.

How to repeat:
See above

Suggested fix:
Remove the duplicated key
[9 Oct 2023 6:56] MySQL Verification Team
Hello Laurynas,

Thank you for the report and feedback!

regards,
Umesh