@@ -8203,7 +8203,7 @@ class TestTokenizer : public TestFixture {
82038203
82048204 void cpp11init () {
82058205 #define testIsCpp11init (...) testIsCpp11init_(__FILE__, __LINE__, __VA_ARGS__)
8206- auto testIsCpp11init_ = [this ](const char * file, int line, const std::string& code, const char * find, TokenImpl:: Cpp11init expected) {
8206+ auto testIsCpp11init_ = [this ](const char * file, int line, const std::string& code, const char * find, Cpp11init expected) {
82078207 SimpleTokenizer tokenizer (settingsDefault, *this );
82088208 ASSERT_LOC (tokenizer.tokenize (code.data (), code.size ()), file, line);
82098209
@@ -8214,60 +8214,60 @@ class TestTokenizer : public TestFixture {
82148214
82158215 testIsCpp11init (" class X : public A<int>, C::D {};" ,
82168216 " D {" ,
8217- TokenImpl:: Cpp11init::NOINIT);
8217+ Cpp11init::NOINIT);
82188218
82198219 testIsCpp11init (" auto f() -> void {}" ,
82208220 " void {" ,
8221- TokenImpl:: Cpp11init::NOINIT);
8221+ Cpp11init::NOINIT);
82228222 testIsCpp11init (" auto f() & -> void {}" ,
82238223 " void {" ,
8224- TokenImpl:: Cpp11init::NOINIT);
8224+ Cpp11init::NOINIT);
82258225 testIsCpp11init (" auto f() const noexcept(false) -> void {}" ,
82268226 " void {" ,
8227- TokenImpl:: Cpp11init::NOINIT);
8227+ Cpp11init::NOINIT);
82288228 testIsCpp11init (" auto f() -> std::vector<int> { return {}; }" ,
82298229 " { return" ,
8230- TokenImpl:: Cpp11init::NOINIT);
8230+ Cpp11init::NOINIT);
82318231 testIsCpp11init (" auto f() -> std::vector<int> { return {}; }" ,
82328232 " vector" ,
8233- TokenImpl:: Cpp11init::NOINIT);
8233+ Cpp11init::NOINIT);
82348234 testIsCpp11init (" auto f() -> std::vector<int> { return {}; }" ,
82358235 " std ::" ,
8236- TokenImpl:: Cpp11init::NOINIT);
8236+ Cpp11init::NOINIT);
82378237
82388238 testIsCpp11init (" class X{};" ,
82398239 " { }" ,
8240- TokenImpl:: Cpp11init::NOINIT);
8240+ Cpp11init::NOINIT);
82418241 testIsCpp11init (" class X{}" , // forgotten ; so not properly recognized as a class
82428242 " { }" ,
8243- TokenImpl:: Cpp11init::CPP11INIT);
8243+ Cpp11init::CPP11INIT);
82448244
82458245 testIsCpp11init (" namespace abc::def { TEST(a, b) {} }" ,
82468246 " { TEST" ,
8247- TokenImpl:: Cpp11init::NOINIT);
8247+ Cpp11init::NOINIT);
82488248 testIsCpp11init (" namespace { TEST(a, b) {} }" , // anonymous namespace
82498249 " { TEST" ,
8250- TokenImpl:: Cpp11init::NOINIT);
8250+ Cpp11init::NOINIT);
82518251
82528252 testIsCpp11init (" enum { e = decltype(s)::i };" ,
82538253 " { e" ,
8254- TokenImpl:: Cpp11init::NOINIT);
8254+ Cpp11init::NOINIT);
82558255
82568256 testIsCpp11init (" template <typename T>\n " // #11378
82578257 " class D<M<T, 1>> : public B<M<T, 1>, T> {\n "
82588258 " public:\n "
82598259 " D(int x) : B<M<T, 1>, T>(x) {}\n "
82608260 " };\n " ,
82618261 " { public:" ,
8262- TokenImpl:: Cpp11init::NOINIT);
8262+ Cpp11init::NOINIT);
82638263
82648264 testIsCpp11init (" template <typename T>\n "
82658265 " class D<M<T, 1>> : B<M<T, 1>, T> {\n "
82668266 " public:\n "
82678267 " D(int x) : B<M<T, 1>, T>(x) {}\n "
82688268 " };\n " ,
82698269 " { public:" ,
8270- TokenImpl:: Cpp11init::NOINIT);
8270+ Cpp11init::NOINIT);
82718271
82728272 testIsCpp11init (" using namespace std;\n "
82738273 " namespace internal {\n "
@@ -8277,21 +8277,21 @@ class TestTokenizer : public TestFixture {
82778277 " S::S() {}\n "
82788278 " }\n " ,
82798279 " { } }" ,
8280- TokenImpl:: Cpp11init::NOINIT);
8280+ Cpp11init::NOINIT);
82818281
82828282 testIsCpp11init (" template <std::size_t N>\n "
82838283 " struct C : public C<N - 1>, public B {\n "
82848284 " ~C() {}\n "
82858285 " };\n " ,
82868286 " { } }" ,
8287- TokenImpl:: Cpp11init::NOINIT);
8287+ Cpp11init::NOINIT);
82888288
82898289 testIsCpp11init (" struct S { int i; } s;\n "
82908290 " struct T : decltype (s) {\n "
82918291 " T() : decltype(s) ({ 0 }) { }\n "
82928292 " };\n " ,
82938293 " { } }" ,
8294- TokenImpl:: Cpp11init::NOINIT);
8294+ Cpp11init::NOINIT);
82958295
82968296 testIsCpp11init (" struct S {};\n "
82978297 " template<class... Args>\n "
@@ -8301,21 +8301,21 @@ class TestTokenizer : public TestFixture {
83018301 " void operator()(Args...) {}\n "
83028302 " };\n " ,
83038303 " { void" ,
8304- TokenImpl:: Cpp11init::NOINIT);
8304+ Cpp11init::NOINIT);
83058305
83068306 testIsCpp11init (" struct S {\n "
83078307 " std::uint8_t* p;\n "
83088308 " S() : p{ new std::uint8_t[1]{} } {}\n "
83098309 " };\n " ,
83108310 " { } } {" ,
8311- TokenImpl:: Cpp11init::CPP11INIT);
8311+ Cpp11init::CPP11INIT);
83128312
83138313 testIsCpp11init (" struct S {\n "
83148314 " S() : p{new (malloc(4)) int{}} {}\n "
83158315 " int* p;\n "
83168316 " };\n " ,
83178317 " { } } {" ,
8318- TokenImpl:: Cpp11init::CPP11INIT);
8318+ Cpp11init::CPP11INIT);
83198319
83208320 ASSERT_NO_THROW (tokenizeAndStringify (" template<typename U> struct X {};\n " // don't crash
83218321 " template<typename T> auto f(T t) -> X<decltype(t + 1)> {}\n " ));
0 commit comments