[OptTable] Fix typo VALUE => VALUES (NFCI) (#121523)
[llvm-project.git] / clang-tools-extra / clang-tidy / llvm / HeaderGuardCheck.h
blob508172c6b3a841f4065eb86b7a6a144324827209
1 //===--- HeaderGuardCheck.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 //===----------------------------------------------------------------------===//
9 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_HEADERGUARDCHECK_H
10 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_HEADERGUARDCHECK_H
12 #include "../utils/HeaderGuard.h"
14 namespace clang::tidy::llvm_check {
16 /// Finds and fixes header guards that do not adhere to LLVM style.
17 /// For the user-facing documentation see:
18 /// http://clang.llvm.org/extra/clang-tidy/checks/llvm/header-guard.html
19 class LLVMHeaderGuardCheck : public utils::HeaderGuardCheck {
20 public:
21 LLVMHeaderGuardCheck(StringRef Name, ClangTidyContext *Context);
23 bool shouldSuggestEndifComment(StringRef Filename) override { return false; }
24 std::string getHeaderGuard(StringRef Filename, StringRef OldGuard) override;
27 } // namespace clang::tidy::llvm_check
29 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_HEADERGUARDCHECK_H