MisleadingIdentifier.h 1016 B

123456789101112131415161718192021222324252627
  1. //===--- MisleadingIdentifierCheck.h - clang-tidy ---------------*- C++ -*-===//
  2. //
  3. // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
  4. // See https://llvm.org/LICENSE.txt for license information.
  5. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  6. //
  7. //===----------------------------------------------------------------------===//
  8. #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MISLEADINGIDENTIFIERCHECK_H
  9. #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MISLEADINGIDENTIFIERCHECK_H
  10. #include "../ClangTidyCheck.h"
  11. namespace clang::tidy::misc {
  12. class MisleadingIdentifierCheck : public ClangTidyCheck {
  13. public:
  14. MisleadingIdentifierCheck(StringRef Name, ClangTidyContext *Context);
  15. ~MisleadingIdentifierCheck();
  16. void registerMatchers(ast_matchers::MatchFinder *Finder) override;
  17. void check(const ast_matchers::MatchFinder::MatchResult &Result) override;
  18. };
  19. } // namespace clang::tidy::misc
  20. #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_MISC_MISLEADINGIDENTIFIERCHECK_H