@@ -8201,7 +8201,7 @@ class TestTokenizer : public TestFixture {
82018201
82028202 void cpp11init () {
82038203 #define testIsCpp11init (...) testIsCpp11init_(__FILE__, __LINE__, __VA_ARGS__)
8204- auto testIsCpp11init_ = [this ](const char * file, int line, const char * code, const char * find, TokenImpl:: Cpp11init expected) {
8204+ auto testIsCpp11init_ = [this ](const char * file, int line, const char * code, const char * find, Cpp11init expected) {
82058205 SimpleTokenizer tokenizer (settingsDefault, *this );
82068206 ASSERT_LOC (tokenizer.tokenize (code), file, line);
82078207
@@ -8212,60 +8212,60 @@ class TestTokenizer : public TestFixture {
82128212
82138213 testIsCpp11init (" class X : public A<int>, C::D {};" ,
82148214 " D {" ,
8215- TokenImpl:: Cpp11init::NOINIT);
8215+ Cpp11init::NOINIT);
82168216
82178217 testIsCpp11init (" auto f() -> void {}" ,
82188218 " void {" ,
8219- TokenImpl:: Cpp11init::NOINIT);
8219+ Cpp11init::NOINIT);
82208220 testIsCpp11init (" auto f() & -> void {}" ,
82218221 " void {" ,
8222- TokenImpl:: Cpp11init::NOINIT);
8222+ Cpp11init::NOINIT);
82238223 testIsCpp11init (" auto f() const noexcept(false) -> void {}" ,
82248224 " void {" ,
8225- TokenImpl:: Cpp11init::NOINIT);
8225+ Cpp11init::NOINIT);
82268226 testIsCpp11init (" auto f() -> std::vector<int> { return {}; }" ,
82278227 " { return" ,
8228- TokenImpl:: Cpp11init::NOINIT);
8228+ Cpp11init::NOINIT);
82298229 testIsCpp11init (" auto f() -> std::vector<int> { return {}; }" ,
82308230 " vector" ,
8231- TokenImpl:: Cpp11init::NOINIT);
8231+ Cpp11init::NOINIT);
82328232 testIsCpp11init (" auto f() -> std::vector<int> { return {}; }" ,
82338233 " std ::" ,
8234- TokenImpl:: Cpp11init::NOINIT);
8234+ Cpp11init::NOINIT);
82358235
82368236 testIsCpp11init (" class X{};" ,
82378237 " { }" ,
8238- TokenImpl:: Cpp11init::NOINIT);
8238+ Cpp11init::NOINIT);
82398239 testIsCpp11init (" class X{}" , // forgotten ; so not properly recognized as a class
82408240 " { }" ,
8241- TokenImpl:: Cpp11init::CPP11INIT);
8241+ Cpp11init::CPP11INIT);
82428242
82438243 testIsCpp11init (" namespace abc::def { TEST(a, b) {} }" ,
82448244 " { TEST" ,
8245- TokenImpl:: Cpp11init::NOINIT);
8245+ Cpp11init::NOINIT);
82468246 testIsCpp11init (" namespace { TEST(a, b) {} }" , // anonymous namespace
82478247 " { TEST" ,
8248- TokenImpl:: Cpp11init::NOINIT);
8248+ Cpp11init::NOINIT);
82498249
82508250 testIsCpp11init (" enum { e = decltype(s)::i };" ,
82518251 " { e" ,
8252- TokenImpl:: Cpp11init::NOINIT);
8252+ Cpp11init::NOINIT);
82538253
82548254 testIsCpp11init (" template <typename T>\n " // #11378
82558255 " class D<M<T, 1>> : public B<M<T, 1>, T> {\n "
82568256 " public:\n "
82578257 " D(int x) : B<M<T, 1>, T>(x) {}\n "
82588258 " };\n " ,
82598259 " { public:" ,
8260- TokenImpl:: Cpp11init::NOINIT);
8260+ Cpp11init::NOINIT);
82618261
82628262 testIsCpp11init (" template <typename T>\n "
82638263 " class D<M<T, 1>> : B<M<T, 1>, T> {\n "
82648264 " public:\n "
82658265 " D(int x) : B<M<T, 1>, T>(x) {}\n "
82668266 " };\n " ,
82678267 " { public:" ,
8268- TokenImpl:: Cpp11init::NOINIT);
8268+ Cpp11init::NOINIT);
82698269
82708270 testIsCpp11init (" using namespace std;\n "
82718271 " namespace internal {\n "
@@ -8275,21 +8275,21 @@ class TestTokenizer : public TestFixture {
82758275 " S::S() {}\n "
82768276 " }\n " ,
82778277 " { } }" ,
8278- TokenImpl:: Cpp11init::NOINIT);
8278+ Cpp11init::NOINIT);
82798279
82808280 testIsCpp11init (" template <std::size_t N>\n "
82818281 " struct C : public C<N - 1>, public B {\n "
82828282 " ~C() {}\n "
82838283 " };\n " ,
82848284 " { } }" ,
8285- TokenImpl:: Cpp11init::NOINIT);
8285+ Cpp11init::NOINIT);
82868286
82878287 testIsCpp11init (" struct S { int i; } s;\n "
82888288 " struct T : decltype (s) {\n "
82898289 " T() : decltype(s) ({ 0 }) { }\n "
82908290 " };\n " ,
82918291 " { } }" ,
8292- TokenImpl:: Cpp11init::NOINIT);
8292+ Cpp11init::NOINIT);
82938293
82948294 testIsCpp11init (" struct S {};\n "
82958295 " template<class... Args>\n "
@@ -8299,21 +8299,21 @@ class TestTokenizer : public TestFixture {
82998299 " void operator()(Args...) {}\n "
83008300 " };\n " ,
83018301 " { void" ,
8302- TokenImpl:: Cpp11init::NOINIT);
8302+ Cpp11init::NOINIT);
83038303
83048304 testIsCpp11init (" struct S {\n "
83058305 " std::uint8_t* p;\n "
83068306 " S() : p{ new std::uint8_t[1]{} } {}\n "
83078307 " };\n " ,
83088308 " { } } {" ,
8309- TokenImpl:: Cpp11init::CPP11INIT);
8309+ Cpp11init::CPP11INIT);
83108310
83118311 testIsCpp11init (" struct S {\n "
83128312 " S() : p{new (malloc(4)) int{}} {}\n "
83138313 " int* p;\n "
83148314 " };\n " ,
83158315 " { } } {" ,
8316- TokenImpl:: Cpp11init::CPP11INIT);
8316+ Cpp11init::CPP11INIT);
83178317
83188318 ASSERT_NO_THROW (tokenizeAndStringify (" template<typename U> struct X {};\n " // don't crash
83198319 " template<typename T> auto f(T t) -> X<decltype(t + 1)> {}\n " ));
0 commit comments