1//===-- CompilerInvocation.h - Compiler Invocation Helper Data --*- C++ -*-===//
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
--- 68 unchanged lines hidden (view full) ---
77 /// @{
78
79 /// CreateFromArgs - Create a compiler invocation from a list of input
80 /// options.
81 ///
82 /// \param Res [out] - The resulting invocation.
83 /// \param ArgBegin - The first element in the argument vector.
84 /// \param ArgEnd - The last element in the argument vector.
85 /// \param Diags - The diagnostic engine to use for errors.
86 static void CreateFromArgs(CompilerInvocation &Res, const char **ArgBegin,
87 const char **ArgEnd, Diagnostic &Diags);
88
89 /// GetBuiltinIncludePath - Get the directory where the compiler headers
90 /// reside, relative to the compiler binary (found by the passed in
91 /// arguments).
92 ///
93 /// \param Argv0 - The program path (from argv[0]), for finding the builtin
94 /// compiler path.
95 /// \param MainAddr - The address of main (or some other function in the main
96 /// executable), for finding the builtin compiler path.
97 static std::string GetResourcesPath(const char *Argv0, void *MainAddr);
98
99 /// toArgs - Convert the CompilerInvocation to a list of strings suitable for
100 /// passing to CreateFromArgs.
101 void toArgs(std::vector<std::string> &Res);
102
103 /// @}
104 /// @name Option Subgroups
105 /// @{
--- 57 unchanged lines hidden ---
2//
3// The LLVM Compiler Infrastructure
4//
5// This file is distributed under the University of Illinois Open Source
6// License. See LICENSE.TXT for details.
7//
8//===----------------------------------------------------------------------===//
--- 68 unchanged lines hidden (view full) ---
77 /// @{
78
79 /// CreateFromArgs - Create a compiler invocation from a list of input
80 /// options.
81 ///
82 /// \param Res [out] - The resulting invocation.
83 /// \param ArgBegin - The first element in the argument vector.
84 /// \param ArgEnd - The last element in the argument vector.
85 /// \param Diags - The diagnostic engine to use for errors.
86 static void CreateFromArgs(CompilerInvocation &Res, const char **ArgBegin,
87 const char **ArgEnd, Diagnostic &Diags);
88
89 /// GetBuiltinIncludePath - Get the directory where the compiler headers
90 /// reside, relative to the compiler binary (found by the passed in
91 /// arguments).
92 ///
93 /// \param Argv0 - The program path (from argv[0]), for finding the builtin
94 /// compiler path.
95 /// \param MainAddr - The address of main (or some other function in the main
96 /// executable), for finding the builtin compiler path.
97 static std::string GetResourcesPath(const char *Argv0, void *MainAddr);
98
99 /// toArgs - Convert the CompilerInvocation to a list of strings suitable for
100 /// passing to CreateFromArgs.
101 void toArgs(std::vector<std::string> &Res);
102
103 /// @}
104 /// @name Option Subgroups
105 /// @{
--- 57 unchanged lines hidden ---