remove useless codegen option
Signed-off-by: wangtao9 <wangtaofighting@163.com>
This commit is contained in:
parent
afe52126d7
commit
8b53ac1f65
|
@ -112,7 +112,6 @@ public class Tool {
|
|||
public boolean warnings_are_errors = false;
|
||||
public boolean longMessages = false;
|
||||
public boolean exact_output_dir = false;
|
||||
public boolean lock_free_cpp_target = false;
|
||||
|
||||
public final static Option[] optionDefs = {
|
||||
new Option("outputDirectory", "-o", OptionArgType.STRING, "specify output directory where all output is generated"),
|
||||
|
@ -134,7 +133,6 @@ public class Tool {
|
|||
new Option("force_atn", "-Xforce-atn", "use the ATN simulator for all predictions"),
|
||||
new Option("log", "-Xlog", "dump lots of logging info to antlr-timestamp.log"),
|
||||
new Option("exact_output_dir", "-Xexact-output-dir", "all output goes into -o dir regardless of paths/package"),
|
||||
new Option("lock_free_cpp_target", "-lock-free-cpp-target", "generate lock-free C++ lexer and/or parser "),
|
||||
};
|
||||
|
||||
// helper vars for option management
|
||||
|
|
|
@ -45,7 +45,6 @@ public abstract class Recognizer extends OutputModelObject {
|
|||
@ModelElement public SerializedATN atn;
|
||||
@ModelElement public LinkedHashMap<Rule, RuleSempredFunction> sempredFuncs =
|
||||
new LinkedHashMap<Rule, RuleSempredFunction>();
|
||||
@ModelElement public boolean lockFreeCppTarget;
|
||||
|
||||
public Recognizer(OutputModelFactory factory) {
|
||||
super(factory);
|
||||
|
@ -78,7 +77,6 @@ public abstract class Recognizer extends OutputModelObject {
|
|||
else {
|
||||
superClass = null;
|
||||
}
|
||||
lockFreeCppTarget = g.tool.lock_free_cpp_target;
|
||||
|
||||
tokenNames = translateTokenStringsToTarget(g.getTokenDisplayNames(), gen);
|
||||
literalNames = translateTokenStringsToTarget(g.getTokenLiteralNames(), gen);
|
||||
|
|
Loading…
Reference in New Issue