mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 02:06:41 +00:00

Fix missing extern templates for llvm::Registry use in other projects of llvm Windows doesn't implicitly import and merge exported symbols across shared libraries like Linux does so we need to explicitly export/import each instantiation of llvm::Registry. Updated LLVM_INSTANTIATE_REGISTRY to just be a full explicit template instantiation. This is part of the work to enable LLVM_BUILD_LLVM_DYLIB and LLVM plugins on window.
26 lines
861 B
C++
26 lines
861 B
C++
//===--- ClangTidyModuleRegistry.h - clang-tidy -----------------*- C++ -*-===//
|
|
//
|
|
// 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
|
|
//
|
|
//===----------------------------------------------------------------------===//
|
|
|
|
#ifndef LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYMODULEREGISTRY_H
|
|
#define LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYMODULEREGISTRY_H
|
|
|
|
#include "ClangTidyModule.h"
|
|
#include "llvm/Support/Registry.h"
|
|
|
|
namespace clang::tidy {
|
|
|
|
using ClangTidyModuleRegistry = llvm::Registry<ClangTidyModule>;
|
|
|
|
} // namespace clang::tidy
|
|
|
|
namespace llvm {
|
|
extern template class Registry<clang::tidy::ClangTidyModule>;
|
|
} // namespace llvm
|
|
|
|
#endif // LLVM_CLANG_TOOLS_EXTRA_CLANG_TIDY_CLANGTIDYMODULEREGISTRY_H
|