1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_
6 #define TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_
8 #include "clang/Frontend/FrontendAction.h"
12 namespace chrome_checker
{
14 class FindBadConstructsAction
: public clang::PluginASTAction
{
16 FindBadConstructsAction();
19 // Overridden from PluginASTAction:
20 virtual std::unique_ptr
<clang::ASTConsumer
> CreateASTConsumer(
21 clang::CompilerInstance
& instance
,
23 virtual bool ParseArgs(const clang::CompilerInstance
& instance
,
24 const std::vector
<std::string
>& args
);
30 } // namespace chrome_checker
32 #endif // TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_