================
@@ -961,14 +968,21 @@ TEST(ConfigParseTest, ParsesConfiguration) {
StatementAttributeLikeMacros,
std::vector<std::string>({"emit", "Q_EMIT"}));
+ Style.Macros.clear();
+ CHECK_PARSE("{ BasedOnStyle: LLVM, Macros: [foo]}", Macros,
+ std::vector<std::string>({"foo"}));
+ CHECK_PARSE_THAT(
+ "BasedOnStyle: Google", Macros,
+ testing::ElementsAre(testing::StartsWith("ASSIGN_OR_RETURN(a, b)="),
+ testing::StartsWith("ASSIGN_OR_RETURN(a, b, c)=")));
----------------
ilya-biryukov wrote:
Done.
https://github.com/llvm/llvm-project/pull/169037
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits