Lines Matching defs:tok
614 StringRef tok;
615 std::tie(tok, rest) = rest.split(",");
616 if (tok.equals_insensitive("noname")) {
622 if (tok.equals_insensitive("data")) {
626 if (tok.equals_insensitive("constant")) {
630 if (tok.equals_insensitive("private")) {
634 if (tok.equals_insensitive("exportas")) {
641 if (tok.starts_with("@")) {
643 if (tok.substr(1).getAsInteger(0, ord))
859 for (StringRef tok : tokens) {
860 if (tok.starts_with_insensitive("/export:") ||
861 tok.starts_with_insensitive("-export:"))
862 result.exports.push_back(tok.substr(strlen("/export:")));
863 else if (tok.starts_with_insensitive("/include:") ||
864 tok.starts_with_insensitive("-include:"))
865 result.includes.push_back(tok.substr(strlen("/include:")));
866 else if (tok.starts_with_insensitive("/exclude-symbols:") ||
867 tok.starts_with_insensitive("-exclude-symbols:"))
868 result.excludes.push_back(tok.substr(strlen("/exclude-symbols:")));
873 bool HasNul = tok.end() != s.end() && tok.data()[tok.size()] == '\0';
874 rest.push_back(HasNul ? tok.data() : saver().save(tok).data());