aaron.ballman added inline comments.
================ Comment at: clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.cpp:237 +static void getHungarianNotationDefaultConfig( + std::shared_ptr<IdentifierNamingCheck::HungarianNotationOption> HNOption) { + ---------------- It seems like this function should take `HNOption` as a reference rather than a `shared_ptr`. ================ Comment at: clang-tools-extra/clang-tidy/readability/IdentifierNamingCheck.h:87 + HungarianPrefixOption HungarianPrefixOpt; + std::shared_ptr<IdentifierNamingCheck::HungarianNotationOption> + HungarianNotationOption; ---------------- I'd like to avoid using a `shared_ptr` here if we can avoid it -- do we expect this to be super expensive to copy by value (I would imagine it'll be an expensive copy but we don't make copies all that often, but maybe my intuition is wrong)? Repository: rG LLVM Github Monorepo CHANGES SINCE LAST ACTION https://reviews.llvm.org/D86671/new/ https://reviews.llvm.org/D86671 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits