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
lib
runtime
tools
unittests
utils
ABITest
CIndex
ClangVisualizers
TableGen
CMakeLists.txt
ClangASTNodesEmitter.cpp
ClangAttrEmitter.cpp.REMOVED.git-id
ClangCommentCommandInfoEmitter.cpp
ClangCommentHTMLNamedCharacterReferenceEmitter.cpp
ClangCommentHTMLTagsEmitter.cpp
ClangDataCollectorsEmitter.cpp
ClangDiagnosticsEmitter.cpp
ClangOptionDocEmitter.cpp
ClangSACheckersEmitter.cpp
NeonEmitter.cpp
TableGen.cpp
TableGenBackends.h
TestUtils
VtableTest
analyzer
check_cfc
perf-training
valgrind
CaptureCmd
ClangDataFormat.py
CmpDriver
FindSpecRefs
FuzzTest
bash-autocomplete.sh
builtin-defines.c
clangdiag.py
find-unused-diagnostics.sh
modfuzz.py
token-delta.py
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
19 lines
519 B
C++
19 lines
519 B
C++
![]() |
#include "llvm/TableGen/Record.h"
|
||
|
#include "llvm/TableGen/TableGenBackend.h"
|
||
|
|
||
|
using namespace llvm;
|
||
|
|
||
|
namespace clang {
|
||
|
void EmitClangDataCollectors(RecordKeeper &RK, raw_ostream &OS) {
|
||
|
const auto &Defs = RK.getClasses();
|
||
|
for (const auto &Entry : Defs) {
|
||
|
Record &R = *Entry.second;
|
||
|
OS << "DEF_ADD_DATA(" << R.getName() << ", {\n";
|
||
|
auto Code = R.getValue("Code")->getValue();
|
||
|
OS << Code->getAsUnquotedString() << "}\n)";
|
||
|
OS << "\n";
|
||
|
}
|
||
|
OS << "#undef DEF_ADD_DATA\n";
|
||
|
}
|
||
|
} // end namespace clang
|