You've already forked linux-packaging-mono
acceptance-tests
data
debian
docs
external
Newtonsoft.Json
api-doc-tools
api-snapshot
aspnetwebstack
bdwgc
binary-reference-assemblies
bockbuild
boringssl
cecil
cecil-legacy
corefx
corert
helix-binaries
ikdasm
ikvm
illinker-test-assets
linker
llvm-project
clang
INPUTS
bindings
cmake
docs
examples
include
clang
clang-c
BuildSystem.h
CXCompilationDatabase.h
CXErrorCode.h
CXString.h
Documentation.h
Index.h.REMOVED.git-id
Platform.h
module.modulemap
CMakeLists.txt
lib
runtime
tools
unittests
utils
www
.arcconfig
.clang-format
.clang-tidy
.gitignore
CMakeLists.txt
CODE_OWNERS.TXT
INSTALL.txt
LICENSE.TXT
ModuleInfo.txt
NOTES.txt
README.txt
clang-tools-extra
compiler-rt
eng
libcxx
libcxxabi
libunwind
lld
lldb
llvm
nuget
openmp
polly
Directory.Build.props
Directory.Build.targets
NuGet.config
azure-pipelines.yml
build.cmd
build.sh
dir.common.props
global.json
llvm.proj
mxe-Win64.cmake.in
nuget-buildtasks
nunit-lite
roslyn-binaries
rx
xunit-binaries
how-to-bump-roslyn-binaries.md
ikvm-native
llvm
m4
man
mcs
mono
msvc
netcore
po
runtime
samples
scripts
support
tools
COPYING.LIB
LICENSE
Makefile.am
Makefile.in
NEWS
README.md
acinclude.m4
aclocal.m4
autogen.sh
code_of_conduct.md
compile
config.guess
config.h.in
config.rpath
config.sub
configure.REMOVED.git-id
configure.ac.REMOVED.git-id
depcomp
install-sh
ltmain.sh.REMOVED.git-id
missing
mkinstalldirs
mono-uninstalled.pc.in
test-driver
winconfig.h
157 lines
5.4 KiB
C
157 lines
5.4 KiB
C
![]() |
/*==-- clang-c/BuildSystem.h - Utilities for use by build systems -*- C -*-===*\
|
||
|
|* *|
|
||
|
|* The LLVM Compiler Infrastructure *|
|
||
|
|* *|
|
||
|
|* This file is distributed under the University of Illinois Open Source *|
|
||
|
|* License. See LICENSE.TXT for details. *|
|
||
|
|* *|
|
||
|
|*===----------------------------------------------------------------------===*|
|
||
|
|* *|
|
||
|
|* This header provides various utilities for use by build systems. *|
|
||
|
|* *|
|
||
|
\*===----------------------------------------------------------------------===*/
|
||
|
|
||
|
#ifndef LLVM_CLANG_C_BUILDSYSTEM_H
|
||
|
#define LLVM_CLANG_C_BUILDSYSTEM_H
|
||
|
|
||
|
#include "clang-c/Platform.h"
|
||
|
#include "clang-c/CXErrorCode.h"
|
||
|
#include "clang-c/CXString.h"
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
/**
|
||
|
* \defgroup BUILD_SYSTEM Build system utilities
|
||
|
* @{
|
||
|
*/
|
||
|
|
||
|
/**
|
||
|
* \brief Return the timestamp for use with Clang's
|
||
|
* \c -fbuild-session-timestamp= option.
|
||
|
*/
|
||
|
CINDEX_LINKAGE unsigned long long clang_getBuildSessionTimestamp(void);
|
||
|
|
||
|
/**
|
||
|
* \brief Object encapsulating information about overlaying virtual
|
||
|
* file/directories over the real file system.
|
||
|
*/
|
||
|
typedef struct CXVirtualFileOverlayImpl *CXVirtualFileOverlay;
|
||
|
|
||
|
/**
|
||
|
* \brief Create a \c CXVirtualFileOverlay object.
|
||
|
* Must be disposed with \c clang_VirtualFileOverlay_dispose().
|
||
|
*
|
||
|
* \param options is reserved, always pass 0.
|
||
|
*/
|
||
|
CINDEX_LINKAGE CXVirtualFileOverlay
|
||
|
clang_VirtualFileOverlay_create(unsigned options);
|
||
|
|
||
|
/**
|
||
|
* \brief Map an absolute virtual file path to an absolute real one.
|
||
|
* The virtual path must be canonicalized (not contain "."/"..").
|
||
|
* \returns 0 for success, non-zero to indicate an error.
|
||
|
*/
|
||
|
CINDEX_LINKAGE enum CXErrorCode
|
||
|
clang_VirtualFileOverlay_addFileMapping(CXVirtualFileOverlay,
|
||
|
const char *virtualPath,
|
||
|
const char *realPath);
|
||
|
|
||
|
/**
|
||
|
* \brief Set the case sensitivity for the \c CXVirtualFileOverlay object.
|
||
|
* The \c CXVirtualFileOverlay object is case-sensitive by default, this
|
||
|
* option can be used to override the default.
|
||
|
* \returns 0 for success, non-zero to indicate an error.
|
||
|
*/
|
||
|
CINDEX_LINKAGE enum CXErrorCode
|
||
|
clang_VirtualFileOverlay_setCaseSensitivity(CXVirtualFileOverlay,
|
||
|
int caseSensitive);
|
||
|
|
||
|
/**
|
||
|
* \brief Write out the \c CXVirtualFileOverlay object to a char buffer.
|
||
|
*
|
||
|
* \param options is reserved, always pass 0.
|
||
|
* \param out_buffer_ptr pointer to receive the buffer pointer, which should be
|
||
|
* disposed using \c clang_free().
|
||
|
* \param out_buffer_size pointer to receive the buffer size.
|
||
|
* \returns 0 for success, non-zero to indicate an error.
|
||
|
*/
|
||
|
CINDEX_LINKAGE enum CXErrorCode
|
||
|
clang_VirtualFileOverlay_writeToBuffer(CXVirtualFileOverlay, unsigned options,
|
||
|
char **out_buffer_ptr,
|
||
|
unsigned *out_buffer_size);
|
||
|
|
||
|
/**
|
||
|
* \brief free memory allocated by libclang, such as the buffer returned by
|
||
|
* \c CXVirtualFileOverlay() or \c clang_ModuleMapDescriptor_writeToBuffer().
|
||
|
*
|
||
|
* \param buffer memory pointer to free.
|
||
|
*/
|
||
|
CINDEX_LINKAGE void clang_free(void *buffer);
|
||
|
|
||
|
/**
|
||
|
* \brief Dispose a \c CXVirtualFileOverlay object.
|
||
|
*/
|
||
|
CINDEX_LINKAGE void clang_VirtualFileOverlay_dispose(CXVirtualFileOverlay);
|
||
|
|
||
|
/**
|
||
|
* \brief Object encapsulating information about a module.map file.
|
||
|
*/
|
||
|
typedef struct CXModuleMapDescriptorImpl *CXModuleMapDescriptor;
|
||
|
|
||
|
/**
|
||
|
* \brief Create a \c CXModuleMapDescriptor object.
|
||
|
* Must be disposed with \c clang_ModuleMapDescriptor_dispose().
|
||
|
*
|
||
|
* \param options is reserved, always pass 0.
|
||
|
*/
|
||
|
CINDEX_LINKAGE CXModuleMapDescriptor
|
||
|
clang_ModuleMapDescriptor_create(unsigned options);
|
||
|
|
||
|
/**
|
||
|
* \brief Sets the framework module name that the module.map describes.
|
||
|
* \returns 0 for success, non-zero to indicate an error.
|
||
|
*/
|
||
|
CINDEX_LINKAGE enum CXErrorCode
|
||
|
clang_ModuleMapDescriptor_setFrameworkModuleName(CXModuleMapDescriptor,
|
||
|
const char *name);
|
||
|
|
||
|
/**
|
||
|
* \brief Sets the umbrealla header name that the module.map describes.
|
||
|
* \returns 0 for success, non-zero to indicate an error.
|
||
|
*/
|
||
|
CINDEX_LINKAGE enum CXErrorCode
|
||
|
clang_ModuleMapDescriptor_setUmbrellaHeader(CXModuleMapDescriptor,
|
||
|
const char *name);
|
||
|
|
||
|
/**
|
||
|
* \brief Write out the \c CXModuleMapDescriptor object to a char buffer.
|
||
|
*
|
||
|
* \param options is reserved, always pass 0.
|
||
|
* \param out_buffer_ptr pointer to receive the buffer pointer, which should be
|
||
|
* disposed using \c clang_free().
|
||
|
* \param out_buffer_size pointer to receive the buffer size.
|
||
|
* \returns 0 for success, non-zero to indicate an error.
|
||
|
*/
|
||
|
CINDEX_LINKAGE enum CXErrorCode
|
||
|
clang_ModuleMapDescriptor_writeToBuffer(CXModuleMapDescriptor, unsigned options,
|
||
|
char **out_buffer_ptr,
|
||
|
unsigned *out_buffer_size);
|
||
|
|
||
|
/**
|
||
|
* \brief Dispose a \c CXModuleMapDescriptor object.
|
||
|
*/
|
||
|
CINDEX_LINKAGE void clang_ModuleMapDescriptor_dispose(CXModuleMapDescriptor);
|
||
|
|
||
|
/**
|
||
|
* @}
|
||
|
*/
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* CLANG_C_BUILD_SYSTEM_H */
|
||
|
|