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

References

tools/clang/lib/ASTMatchers/Dynamic/Parser.cpp
   98     if (CodeCompletionLocation && CodeCompletionLocation <= Code.data()) {
  105     if (Code.empty()) {
  111     switch (Code[0]) {
  118       Result.Text = Code.substr(0, 1);
  119       Code = Code.drop_front();
  119       Code = Code.drop_front();
  123       Result.Text = Code.substr(0, 1);
  124       Code = Code.drop_front();
  124       Code = Code.drop_front();
  128       Result.Text = Code.substr(0, 1);
  129       Code = Code.drop_front();
  129       Code = Code.drop_front();
  133       Result.Text = Code.substr(0, 1);
  134       Code = Code.drop_front();
  134       Code = Code.drop_front();
  150       if (isAlphanumeric(Code[0])) {
  157           if (CodeCompletionLocation == Code.data() + TokenLength) {
  160             Result.Text = Code.substr(0, TokenLength);
  161             Code = Code.drop_front(TokenLength);
  161             Code = Code.drop_front(TokenLength);
  164           if (TokenLength == Code.size() || !isAlphanumeric(Code[TokenLength]))
  164           if (TokenLength == Code.size() || !isAlphanumeric(Code[TokenLength]))
  168         if (TokenLength == 4 && Code.startswith("true")) {
  171         } else if (TokenLength == 5 && Code.startswith("false")) {
  176           Result.Text = Code.substr(0, TokenLength);
  178         Code = Code.drop_front(TokenLength);
  178         Code = Code.drop_front(TokenLength);
  181         Result.Text = Code.substr(0, 1);
  182         Code = Code.drop_front(1);
  182         Code = Code.drop_front(1);
  195     if (Code.size() > 1) {
  197       switch (toLowercase(Code[1])) {
  201     while (Length < Code.size() && isHexDigit(Code[Length]))
  201     while (Length < Code.size() && isHexDigit(Code[Length]))
  205     while (Length < Code.size()) {
  206       char c = Code[Length];
  215     Result->Text = Code.substr(0, Length);
  216     Code = Code.drop_front(Length);
  216     Code = Code.drop_front(Length);
  250     const char Marker = Code[0];
  251     for (size_t Length = 1, Size = Code.size(); Length != Size; ++Length) {
  256       if (Code[Length] == '\\') {
  260       if (Code[Length] == Marker) {
  262         Result->Text = Code.substr(0, Length + 1);
  263         Result->Value = Code.substr(1, Length - 1);
  264         Code = Code.drop_front(Length + 1);
  264         Code = Code.drop_front(Length + 1);
  269     StringRef ErrorText = Code;
  270     Code = Code.drop_front(Code.size());
  270     Code = Code.drop_front(Code.size());
  270     Code = Code.drop_front(Code.size());
  280     while (!Code.empty() && isWhitespace(Code[0])) {
  280     while (!Code.empty() && isWhitespace(Code[0])) {
  281       if (Code[0] == '\n') {
  283         StartOfLine = Code.drop_front();
  285       Code = Code.drop_front();
  285       Code = Code.drop_front();
  292     Location.Column = Code.data() - StartOfLine.data() + 1;