You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
601 B

  1. /* Distributed under the OSI-approved BSD 3-Clause License. See accompanying
  2. file LICENSE.rst or https://cmake.org/licensing for details. */
  3. #pragma once
  4. #include <clang-tidy/ClangTidyCheck.h>
  5. #include <clang/ASTMatchers/ASTMatchFinder.h>
  6. namespace clang {
  7. namespace tidy {
  8. namespace cmake {
  9. class OstringstreamUseCmstrcatCheck : public ClangTidyCheck
  10. {
  11. public:
  12. OstringstreamUseCmstrcatCheck(StringRef Name, ClangTidyContext* Context);
  13. void registerMatchers(ast_matchers::MatchFinder* Finder) override;
  14. void check(ast_matchers::MatchFinder::MatchResult const& Result) override;
  15. };
  16. }
  17. }
  18. }