xref: /llvm-project/clang/include/clang/Frontend/FrontendPluginRegistry.h (revision b735c66da9c9ae752b88941d466895a0b696c75e)
1 //===- FrontendPluginRegistry.h ---------------------------------*- 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 //
9 // Pluggable Frontend Action Interface
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #ifndef LLVM_CLANG_FRONTEND_FRONTENDPLUGINREGISTRY_H
14 #define LLVM_CLANG_FRONTEND_FRONTENDPLUGINREGISTRY_H
15 
16 #include "clang/Frontend/FrontendAction.h"
17 #include "clang/Support/Compiler.h"
18 #include "llvm/Support/Registry.h"
19 
20 namespace clang {
21 
22 /// The frontend plugin registry.
23 using FrontendPluginRegistry = llvm::Registry<PluginASTAction>;
24 
25 } // namespace clang
26 
27 namespace llvm {
28 extern template class CLANG_TEMPLATE_ABI Registry<clang::PluginASTAction>;
29 } // namespace llvm
30 
31 #endif // LLVM_CLANG_FRONTEND_FRONTENDPLUGINREGISTRY_H
32