FindBadConstructsAction.h 929 B

1234567891011121314151617181920212223242526272829303132
  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.
  4. #ifndef TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_
  5. #define TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_
  6. #include "clang/Frontend/FrontendAction.h"
  7. #include "Options.h"
  8. namespace chrome_checker {
  9. class FindBadConstructsAction : public clang::PluginASTAction {
  10. public:
  11. FindBadConstructsAction();
  12. protected:
  13. // Overridden from PluginASTAction:
  14. virtual std::unique_ptr<clang::ASTConsumer> CreateASTConsumer(
  15. clang::CompilerInstance& instance,
  16. llvm::StringRef ref);
  17. virtual bool ParseArgs(const clang::CompilerInstance& instance,
  18. const std::vector<std::string>& args);
  19. private:
  20. Options options_;
  21. };
  22. } // namespace chrome_checker
  23. #endif // TOOLS_CLANG_PLUGINS_FINDBADCONSTRUCTIONS_ACTION_H_