[PATCH] D91184: [clang-tidy] Merge options inplace instead of copying
Nathan James via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Tue Nov 10 09:34:30 PST 2020
njames93 created this revision.
njames93 added reviewers: aaron.ballman, gribozavr2, alexfh.
Herald added subscribers: cfe-commits, xazax.hun.
Herald added a project: clang.
njames93 requested review of this revision.
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.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D91184
Files:
clang-tools-extra/clang-tidy/ClangTidyDiagnosticConsumer.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.cpp
clang-tools-extra/clang-tidy/ClangTidyOptions.h
clang-tools-extra/clang-tidy/tool/ClangTidyMain.cpp
clang-tools-extra/unittests/clang-tidy/ClangTidyOptionsTest.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D91184.304237.patch
Type: text/x-patch
Size: 6636 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20201110/f4e59bd0/attachment.bin>
More information about the cfe-commits
mailing list