Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-10 08:36:56

0001 //===--- Utils.h - Misc utilities for the front-end -------------*- 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 //  This header contains miscellaneous utilities for various front-end actions
0010 //  which were split from Frontend to minimise Frontend's dependencies.
0011 //
0012 //===----------------------------------------------------------------------===//
0013 
0014 #ifndef LLVM_CLANG_FRONTENDTOOL_UTILS_H
0015 #define LLVM_CLANG_FRONTENDTOOL_UTILS_H
0016 
0017 #include <memory>
0018 
0019 namespace clang {
0020 
0021 class CompilerInstance;
0022 class FrontendAction;
0023 
0024 /// Construct the FrontendAction of a compiler invocation based on the
0025 /// options specified for the compiler invocation.
0026 ///
0027 /// \return - The created FrontendAction object
0028 std::unique_ptr<FrontendAction> CreateFrontendAction(CompilerInstance &CI);
0029 
0030 /// ExecuteCompilerInvocation - Execute the given actions described by the
0031 /// compiler invocation object in the given compiler instance.
0032 ///
0033 /// \return - True on success.
0034 bool ExecuteCompilerInvocation(CompilerInstance *Clang);
0035 
0036 }  // end namespace clang
0037 
0038 #endif