reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Format/FormatTestUtils.h
   27   for (unsigned i = 0, e = MessedUp.size() - 1; i != e; ++i) {
   28     if (MessedUp[i] == '/' && MessedUp[i + 1] == '/') {
   28     if (MessedUp[i] == '/' && MessedUp[i + 1] == '/') {
   30         MessedUp[i - 1] = '\n';
   32     } else if (MessedUp[i] == '#' &&
   33                (JustReplacedNewline || i == 0 || MessedUp[i - 1] == '\n')) {
   35         MessedUp[i - 1] = '\n';
   37     } else if (MessedUp[i] == '\\' && MessedUp[i + 1] == '\n') {
   37     } else if (MessedUp[i] == '\\' && MessedUp[i + 1] == '\n') {
   38       MessedUp[i] = ' ';
   39       MessedUp[i + 1] = ' ';
   40     } else if (MessedUp[i] == '\n') {
   47         MessedUp[i] = ' ';
   49     } else if (MessedUp[i] != ' ') {
   54   if (MessedUp[0] != ' ')
   55     WithoutWhitespace.push_back(MessedUp[0]);
   56   for (unsigned i = 1, e = MessedUp.size(); i != e; ++i) {
   57     if (MessedUp[i] != ' ' || MessedUp[i - 1] != ' ')
   57     if (MessedUp[i] != ' ' || MessedUp[i - 1] != ' ')
   58       WithoutWhitespace.push_back(MessedUp[i]);