Hi all,<br><br>I'm working on a language that uses many C constructs, but is not a strict superset or subset of C, so some of the keywords exist and some do not. My changes so far have been:<br><br>1) Add an enum to lib/Basic/IdentifierTable.cpp:<br>
namespace {<br> enum {<br> ....<br> KEYFOO = 0x1000,<br> KEYALL = 0x0fff // Do not at KEYFOO to all<br> };<br>}<br><br>2) Add all of the keywords I wanted to include/clang/Basic/TokenKinds.def:<br>KEYWORD(break , KEYALL|KEYFOO)<br>
KEYWORD(foo , KEYFOO)<br>KEYWORD(atomic , KEYALL)<br><br>3) Add a language option to include/clang/Basic/LangOptions.def:<br>LANGOPT(FOO , 1, 0, "FooQua")<br><br>When I include KEYFOO in KEYALL, the keyword "foo" is found, but I want to keep the keyword list separate. <b>How can I change the LangOptions Flag to only look for KEYFOO keywords?</b><br>
<br>-Thanks,<br>-Jeff<br>