SE-0022: Implement parsing, AST, and semantic analysis for #selector.

This commit is contained in:
Doug Gregor
2016-01-26 13:35:21 -08:00
parent b2290992fa
commit dccf3155f1
20 changed files with 421 additions and 11 deletions

View File

@@ -1619,6 +1619,11 @@ Restart:
return formToken(tok::pound_available, TokStart);
}
if (getSubstring(TokStart + 1, 8).equals("selector")) {
CurPtr += 8;
return formToken(tok::pound_selector, TokStart);
}
// Allow a hashbang #! line at the beginning of the file.
if (CurPtr - 1 == BufferStart && *CurPtr == '!') {
CurPtr--;