summaryrefslogtreecommitdiff
path: root/python/generator.cpp
diff options
context:
space:
mode:
authorPeter LaFosse <peter@vector35.com>2022-11-10 16:51:30 -0500
committerPeter LaFosse <peter@vector35.com>2022-11-10 16:51:49 -0500
commitfc3a056c61845fa48dacbde967ddb5cc98c06392 (patch)
treebceb7a9f316762e4fc32e3a72b855f43a3b764be /python/generator.cpp
parent7763b7ab173151aa01b017e1902e1de716f2a1ee (diff)
Switch to using the Clang type parser for binding generation
Diffstat (limited to 'python/generator.cpp')
-rw-r--r--python/generator.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/python/generator.cpp b/python/generator.cpp
index c7cf30b9..5170a0c7 100644
--- a/python/generator.cpp
+++ b/python/generator.cpp
@@ -243,7 +243,9 @@ int main(int argc, char* argv[])
string oldParser;
if (Settings::Instance()->Contains("analysis.types.parserName"))
oldParser = Settings::Instance()->Get<string>("analysis.types.parserName");
- Settings::Instance()->Set("analysis.types.parserName", "CoreTypeParser");
+ // The clang type parser seems to work fine here, and is greatly preferred
+ // so we don't have to keep binaryninjacore.h CoreTypeParser compliant.
+ // Settings::Instance()->Set("analysis.types.parserName", "CoreTypeParser");
bool ok = arch->GetStandalonePlatform()->ParseTypesFromSourceFile(argv[1], types, vars, funcs, errors);