From e7c8a259c47ecbdea3716a1c86036ff9c23f6799 Mon Sep 17 00:00:00 2001 From: Sebastian Wilzbach Date: Wed, 15 May 2019 09:23:21 +0200 Subject: [PATCH] tests_extractor: extract pure + nothrow too --- test/tests_extractor/ascii.d.ext | 30 ++++++++++++++-------------- test/tests_extractor/iteration.d.ext | 6 +++--- tests_extractor.d | 8 ++++++++ 3 files changed, 26 insertions(+), 18 deletions(-) diff --git a/test/tests_extractor/ascii.d.ext b/test/tests_extractor/ascii.d.ext index 80bbc65..48ca171 100644 --- a/test/tests_extractor/ascii.d.ext +++ b/test/tests_extractor/ascii.d.ext @@ -1,5 +1,5 @@ # line 107 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -12,7 +12,7 @@ } # line 138 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -25,7 +25,7 @@ } # line 168 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -39,7 +39,7 @@ } # line 199 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -53,7 +53,7 @@ } # line 230 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -68,7 +68,7 @@ } # line 262 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -80,7 +80,7 @@ } # line 291 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -93,7 +93,7 @@ } # line 323 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -111,7 +111,7 @@ } # line 358 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -130,7 +130,7 @@ } # line 397 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -154,7 +154,7 @@ } # line 441 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -170,7 +170,7 @@ } # line 477 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -185,7 +185,7 @@ } # line 513 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -194,7 +194,7 @@ } # line 554 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; @@ -207,7 +207,7 @@ } # line 616 -@safe @nogc unittest +@safe pure nothrow @nogc unittest { import std.ascii; diff --git a/test/tests_extractor/iteration.d.ext b/test/tests_extractor/iteration.d.ext index fd0e721..348121a 100644 --- a/test/tests_extractor/iteration.d.ext +++ b/test/tests_extractor/iteration.d.ext @@ -403,7 +403,7 @@ } # line 3210 -@safe unittest +@safe pure unittest { import std.algorithm.iteration; @@ -562,7 +562,7 @@ } # line 4507 -@safe unittest +@safe pure unittest { import std.algorithm.iteration; @@ -572,7 +572,7 @@ } # line 4820 -@safe unittest +@safe pure nothrow unittest { import std.algorithm.iteration; diff --git a/tests_extractor.d b/tests_extractor.d index ad94404..707c967 100755 --- a/tests_extractor.d +++ b/tests_extractor.d @@ -132,6 +132,14 @@ private: // write system attributes foreach (attr; attributes) { + // pure and nothrow + if (attr.attribute.type != 0) + { + import dparse.lexer : str; + const attrText = attr.attribute.type.str; + outFile.write(text(attrText, " ")); + } + const atAttribute = attr.atAttribute; if (atAttribute is null) continue;