|
|
|||
File indexing completed on 2026-05-10 08:36:20
0001 //===--- HeaderGuardCheck.h - clang-tidy ------------------------*- C++ -*-===// 0002 // 0003 // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. 0004 // See https://llvm.org/LICENSE.txt for license information. 0005 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 0006 // 0007 //===----------------------------------------------------------------------===// 0008 0009 #ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_HEADERGUARDCHECK_H 0010 #define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_HEADERGUARDCHECK_H 0011 0012 #include "../utils/HeaderGuard.h" 0013 0014 namespace clang::tidy::llvm_check { 0015 0016 /// Finds and fixes header guards that do not adhere to LLVM style. 0017 /// For the user-facing documentation see: 0018 /// http://clang.llvm.org/extra/clang-tidy/checks/llvm/header-guard.html 0019 class LLVMHeaderGuardCheck : public utils::HeaderGuardCheck { 0020 public: 0021 LLVMHeaderGuardCheck(StringRef Name, ClangTidyContext *Context); 0022 0023 bool shouldSuggestEndifComment(StringRef Filename) override { return false; } 0024 std::string getHeaderGuard(StringRef Filename, StringRef OldGuard) override; 0025 }; 0026 0027 } // namespace clang::tidy::llvm_check 0028 0029 #endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_LLVM_HEADERGUARDCHECK_H
| [ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
|
This page was automatically generated by the 2.3.7 LXR engine. The LXR team |
|