[clang-tools-extra] [NFC][clang-tidy]refactor isAssignmentToMemberOf in PreferMemberInitializerCheck (PR #71006)

Piotr Zegar via cfe-commits cfe-commits at lists.llvm.org
Thu Nov 2 02:46:55 PDT 2023


================
@@ -118,45 +118,45 @@ static void updateAssignmentLevel(
   }
 }
 
-static std::pair<const FieldDecl *, const Expr *>
+static std::optional<std::pair<const FieldDecl *, const Expr *>>
----------------
PiotrZSL wrote:

Consider changing this std::pair into normal struct, in such way there will be no need to make aliases to fields later in check method

https://github.com/llvm/llvm-project/pull/71006


More information about the cfe-commits mailing list