This is an archive of the discontinued LLVM Phabricator instance.

[clang-format][PR46043] Parse git config w/ implicit values
ClosedPublic

Authored by JakeMerdichAMD on May 23 2020, 7:31 PM.

Details

Summary

https://bugs.llvm.org/show_bug.cgi?id=46043

Git's config is generally of the format 'key=val', but a setting
'key=true' can be written as just 'key'. The git-clang-format script
expects a value and crashes in this case; this change handles implicit
'true' values in the script.

Diff Detail

Event Timeline

JakeMerdichAMD created this revision.May 23 2020, 7:31 PM
Herald added a project: Restricted Project. · View Herald TranscriptMay 23 2020, 7:31 PM
Herald added a subscriber: cfe-commits. · View Herald Transcript
This revision is now accepted and ready to land.May 24 2020, 4:57 AM