mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
c3ed1a7995
This is a more general and robust replacement of the LibJSGCVerifier. We want to add more generic static analysis, and this new plugin will be built in a way that integrates into the rest of the system.
24 lines
583 B
C++
24 lines
583 B
C++
/*
|
|
* Copyright (c) 2024, Matthew Olsson <mattco@serenityos.org>
|
|
*
|
|
* SPDX-License-Identifier: BSD-2-Clause
|
|
*/
|
|
|
|
#pragma once
|
|
|
|
#include <clang/Tooling/Tooling.h>
|
|
|
|
class LambdaCapturePluginAction : public clang::PluginASTAction {
|
|
public:
|
|
virtual bool ParseArgs(clang::CompilerInstance const&, std::vector<std::string> const&) override
|
|
{
|
|
return true;
|
|
}
|
|
|
|
virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(clang::CompilerInstance&, llvm::StringRef) override;
|
|
|
|
ActionType getActionType() override
|
|
{
|
|
return AddAfterMainAction;
|
|
}
|
|
};
|