OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_ | 5 #ifndef TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_ |
6 #define TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_ | 6 #define TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_ |
7 | 7 |
8 #include "clang/Frontend/FrontendAction.h" | 8 #include "clang/Frontend/FrontendAction.h" |
9 | 9 |
10 #include "Options.h" | 10 #include "Options.h" |
11 | 11 |
12 namespace chrome_checker { | 12 namespace chrome_checker { |
13 | 13 |
14 class FindBadConstructsAction : public clang::PluginASTAction { | 14 class FindBadConstructsAction : public clang::PluginASTAction { |
15 public: | 15 public: |
16 FindBadConstructsAction(); | 16 FindBadConstructsAction(); |
17 | 17 |
18 protected: | 18 protected: |
19 // Overridden from PluginASTAction: | 19 // Overridden from PluginASTAction: |
20 virtual clang::ASTConsumer* CreateASTConsumer( | 20 virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer( |
21 clang::CompilerInstance& instance, | 21 clang::CompilerInstance& instance, |
22 llvm::StringRef ref); | 22 llvm::StringRef ref); |
23 virtual bool ParseArgs(const clang::CompilerInstance& instance, | 23 virtual bool ParseArgs(const clang::CompilerInstance& instance, |
24 const std::vector<std::string>& args); | 24 const std::vector<std::string>& args); |
25 | 25 |
26 private: | 26 private: |
27 Options options_; | 27 Options options_; |
28 }; | 28 }; |
29 | 29 |
30 } // namespace chrome_checker | 30 } // namespace chrome_checker |
31 | 31 |
32 #endif // TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_ | 32 #endif // TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_ |
OLD | NEW |