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

References

tools/clang/lib/Frontend/Rewrite/RewriteMacros.cpp
  113   while (RawTok.isNot(tok::eof) || PPTok.isNot(tok::eof)) {
  126     if (RawTok.is(tok::hash) && RawTok.isAtStartOfLine()) {
  126     if (RawTok.is(tok::hash) && RawTok.isAtStartOfLine()) {
  133           RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//");
  139           RB.InsertTextAfter(SM.getFileOffset(RawTok.getLocation()), "//");
  145       RawTok = GetNextRawTok(RawTokens, CurRawTok, false);
  146       while (!RawTok.isAtStartOfLine() && RawTok.isNot(tok::eof))
  146       while (!RawTok.isAtStartOfLine() && RawTok.isNot(tok::eof))
  147         RawTok = GetNextRawTok(RawTokens, CurRawTok, false);
  154     unsigned RawOffs = SM.getFileOffset(RawTok.getLocation());
  157     if (PPOffs == RawOffs && isSameToken(RawTok, PPTok)) {
  158       RawTok = GetNextRawTok(RawTokens, CurRawTok, false);
  168       bool HasSpace = RawTok.hasLeadingSpace();
  173         EndPos = RawOffs+RawTok.getLength();
  175         RawTok = GetNextRawTok(RawTokens, CurRawTok, true);
  176         RawOffs = SM.getFileOffset(RawTok.getLocation());
  178         if (RawTok.is(tok::comment)) {
  180           RawTok = GetNextRawTok(RawTokens, CurRawTok, false);
  184       } while (RawOffs <= PPOffs && !RawTok.isAtStartOfLine() &&
  185                (PPOffs != RawOffs || !isSameToken(RawTok, PPTok)));