llvm/clang-tools-extra/clang-tidy/utils/HeaderGuard.cpp

//===--- HeaderGuard.cpp - clang-tidy -------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//

#include "HeaderGuard.h"
#include "clang/Frontend/CompilerInstance.h"
#include "clang/Lex/PPCallbacks.h"
#include "clang/Lex/Preprocessor.h"
#include "clang/Tooling/Tooling.h"
#include "llvm/Support/Path.h"

namespace clang::tidy::utils {

/// canonicalize a path by removing ./ and ../ components.
static std::string cleanPath(StringRef Path) {}

namespace {
class HeaderGuardPPCallbacks : public PPCallbacks {};
} // namespace

void HeaderGuardCheck::registerPPCallbacks(const SourceManager &SM,
                                           Preprocessor *PP,
                                           Preprocessor *ModuleExpanderPP) {}

std::string HeaderGuardCheck::sanitizeHeaderGuard(StringRef Guard) {}

bool HeaderGuardCheck::shouldSuggestEndifComment(StringRef FileName) {}

bool HeaderGuardCheck::shouldFixHeaderGuard(StringRef FileName) {}

bool HeaderGuardCheck::shouldSuggestToAddHeaderGuard(StringRef FileName) {}

std::string HeaderGuardCheck::formatEndIf(StringRef HeaderGuard) {}
} // namespace clang::tidy::utils