[Session restore] Rename group name Enabled to Restore.
[chromium-blink-merge.git] / tools / clang / plugins / FindBadConstructsAction.h
blob383db84206d41d5b9a1f5aa1a6fc0c698ac0ef53
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"
10 #include "Options.h"
12 namespace chrome_checker {
14 class FindBadConstructsAction : public clang::PluginASTAction {
15 public:
16 FindBadConstructsAction();
18 protected:
19 // Overridden from PluginASTAction:
20 virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
21 clang::CompilerInstance& instance,
22 llvm::StringRef ref);
23 virtual bool ParseArgs(const clang::CompilerInstance& instance,
24 const std::vector<std::string>& args);
26 private:
27 Options options_;
30 } // namespace chrome_checker
32 #endif // TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_