This is an archive of the discontinued LLVM Phabricator instance.

[clang-tidy] Merge options inplace instead of copying
ClosedPublic

Authored by njames93 on Nov 10 2020, 9:34 AM.

Details

Summary

Changed ClangTidyOptions::mergeWith to operate on the instance instead of returning a copy. The old mergeWith method has been renamed to merge and marked as nodiscard, to aid in disambiguating which one is which.

Diff Detail

Event Timeline

njames93 created this revision.Nov 10 2020, 9:34 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2020, 9:34 AM
njames93 requested review of this revision.Nov 10 2020, 9:34 AM
This revision is now accepted and ready to land.Nov 12 2020, 5:53 AM
This revision was automatically updated to reflect the committed changes.