From fdcd72088371b3d8dfd31f2a5159861ce0be5535 Mon Sep 17 00:00:00 2001 From: Michele Calgaro Date: Sun, 4 Dec 2022 19:16:43 +0900 Subject: uncrustify-trinity: updated based on upstream version 0.76.0 Signed-off-by: Michele Calgaro --- .../tests/expected/cs/12105-bug_1650.cs | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/12105-bug_1650.cs (limited to 'debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/12105-bug_1650.cs') diff --git a/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/12105-bug_1650.cs b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/12105-bug_1650.cs new file mode 100644 index 00000000..869a9d0f --- /dev/null +++ b/debian/uncrustify-trinity/uncrustify-trinity-0.76.0/tests/expected/cs/12105-bug_1650.cs @@ -0,0 +1,46 @@ +public string Foo => + "bar"; +public string Foo + => "bar"; + +public static T WithAdditionalFlags(this T _this, IEnumerable flags) where T : ObjectFileLinker + => _this.WithLinkerSetting(l => l.Flags = l.Flags.Concat(flags)); + +public static T WithAdditionalFlags(this T _this, IEnumerable flags) where T : ObjectFileLinker => + _this.WithLinkerSetting(l => l.Flags = l.Flags.Concat(flags)); + +public static T WithAdditionalFlags(this T _this, IEnumerable flags) where T : ObjectFileLinker + => _this.WithLinkerSetting( + l => l.Flags = + l.Flags.Concat(flags)); + +public static T WithAdditionalFlags(this T _this, IEnumerable flags) where T : ObjectFileLinker => _this.WithLinkerSetting( + l => l.Flags = + l.Flags.Concat(flags)); + +public static T WithAdditionalFlags(this T _this, IEnumerable flags) where T : ObjectFileLinker + => _this.WithLinkerSetting(l => + l.Flags = l.Flags.Concat(flags)); + +public static T WithAdditionalFlags(this T _this, IEnumerable flags) where T : ObjectFileLinker => + _this.WithLinkerSetting(l + => l.Flags = l.Flags.Concat(flags)); + +var islands = EditorCompilationInterface.GetAllMonoIslands().Select(i => new Island +{ + MonoIsland = i, + Name = Path.GetFileNameWithoutExtension(i._output), + References = i._references.ToList() +}).ToList(); + +var projectEntries = islands.Select(i => string.Format( + DefaultSynchronizationSettings.SolutionProjectEntryTemplate, + SolutionGuid(i), _projectName, Path.GetFileName(ProjectFile(i)), ProjectGuid(i._output) +)); + + +Func, IEnumerable> filterMembersWithObsoleteAttr = members => members.Where(m => + !m.IsRuntimeSpecialName + && !m.IsSpecialName + && !blackList.Contains(m.FullName) + && CheckCustomAttributes(m)); -- cgit v1.2.1