ClangPlugins: Use underscores instead of dashes in plugin names

This allows arguments to be passed to them from the command line
This commit is contained in:
Matthew Olsson 2024-05-24 04:40:40 -07:00 committed by Andrew Kaster
parent c739ae3e02
commit d74838f44d
Notes: sideshowbarker 2024-07-17 05:19:06 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -129,4 +129,4 @@ std::unique_ptr<clang::ASTConsumer> LambdaCapturePluginAction::CreateASTConsumer
return std::make_unique<Consumer>(); return std::make_unique<Consumer>();
} }
static clang::FrontendPluginRegistry::Add<LambdaCapturePluginAction> X("lambda-capture", "analyze lambda captures"); static clang::FrontendPluginRegistry::Add<LambdaCapturePluginAction> X("lambda_capture", "analyze lambda captures");

View file

@ -258,4 +258,4 @@ void LibJSGCASTConsumer::HandleTranslationUnit(clang::ASTContext& context)
visitor.TraverseDecl(context.getTranslationUnitDecl()); visitor.TraverseDecl(context.getTranslationUnitDecl());
} }
static clang::FrontendPluginRegistry::Add<LibJSGCPluginAction> X("libjs-gc-scanner", "analyze LibJS GC usage"); static clang::FrontendPluginRegistry::Add<LibJSGCPluginAction> X("libjs_gc_scanner", "analyze LibJS GC usage");