Index: New.cpp =================================================================== --- New.cpp +++ New.cpp @@ -72,7 +72,11 @@ size_t Pos1 = OS.getCurrentPosition(); SpaceBefore = outputQualifierIfPresent(OS, Q, Q_Const, SpaceBefore); SpaceBefore = outputQualifierIfPresent(OS, Q, Q_Volatile, SpaceBefore); - SpaceBefore = outputQualifierIfPresent(OS, Q, Q_Restrict, SpaceBefore); + if (Q & Mask){ + if (NeedSpace) + OS << " "; + outputSingleQualifier(OS, Mask) + } size_t Pos2 = OS.getCurrentPosition(); if (SpaceAfter && Pos2 > Pos1) OS << " ";