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

References

projects/compiler-rt/lib/sanitizer_common/sanitizer_flag_parser.cpp
   75   while (is_space(buf_[pos_])) ++pos_;
   75   while (is_space(buf_[pos_])) ++pos_;
   79   uptr name_start = pos_;
   80   while (buf_[pos_] != 0 && buf_[pos_] != '=' && !is_space(buf_[pos_])) ++pos_;
   80   while (buf_[pos_] != 0 && buf_[pos_] != '=' && !is_space(buf_[pos_])) ++pos_;
   80   while (buf_[pos_] != 0 && buf_[pos_] != '=' && !is_space(buf_[pos_])) ++pos_;
   80   while (buf_[pos_] != 0 && buf_[pos_] != '=' && !is_space(buf_[pos_])) ++pos_;
   81   if (buf_[pos_] != '=') {
   90   char *name = ll_strndup(buf_ + name_start, pos_ - name_start);
   92   uptr value_start = ++pos_;
   94   if (buf_[pos_] == '\'' || buf_[pos_] == '"') {
   94   if (buf_[pos_] == '\'' || buf_[pos_] == '"') {
   95     char quote = buf_[pos_++];
   96     while (buf_[pos_] != 0 && buf_[pos_] != quote) ++pos_;
   96     while (buf_[pos_] != 0 && buf_[pos_] != quote) ++pos_;
   96     while (buf_[pos_] != 0 && buf_[pos_] != quote) ++pos_;
   97     if (buf_[pos_] == 0) fatal_error("unterminated string");
   98     value = ll_strndup(buf_ + value_start + 1, pos_ - value_start - 1);
   99     ++pos_; // consume the closing quote
  101     while (buf_[pos_] != 0 && !is_space(buf_[pos_])) ++pos_;
  101     while (buf_[pos_] != 0 && !is_space(buf_[pos_])) ++pos_;
  101     while (buf_[pos_] != 0 && !is_space(buf_[pos_])) ++pos_;
  102     if (buf_[pos_] != 0 && !is_space(buf_[pos_]))
  102     if (buf_[pos_] != 0 && !is_space(buf_[pos_]))
  104     value = ll_strndup(buf_ + value_start, pos_ - value_start);
  114     if (buf_[pos_] == 0) break;
  133   uptr old_pos_ = pos_;
  135   pos_ = 0;
  140   pos_ = old_pos_;