Commit 1b5168c1 authored by Erik Verbruggen's avatar Erik Verbruggen
Browse files

Modified parseObjCTypeQualifiers to do what the name indicates.

parent 0c05c042
......@@ -5251,11 +5251,18 @@ bool Parser::parseObjCTypeQualifiers(unsigned &type_qualifier)
return false;
const Identifier *id = tok().identifier;
const int k = classifyObjectiveCContextKeyword(id->chars(), id->size());
if (k == Token_identifier)
return false;
switch (classifyObjectiveCContextKeyword(id->chars(), id->size())) {
case Token_bycopy:
case Token_byref:
case Token_in:
case Token_inout:
case Token_oneway:
case Token_out:
type_qualifier = consumeToken();
return true;
return false;
bool Parser::peekAtObjCContextKeyword(int kind)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment