<commit_before><commit_msg>Add theoreticaly support for Clang/LLVM. Current Gentoo clang ebuild doesn't seem to work with C++ at all so untested.<commit_after>realname "Clang/LLVM"

# Largely copied from the gcc config

macro_name "CLANG"

binary_name clang

compile_option "-c "
output_to_option "-o "
add_include_dir_option "-I"
add_lib_dir_option "-L"
add_lib_option "-l"

lang_flags "-D_REENTRANT -ansi -Wno-long-long"
warning_flags "-W -Wall"

makefile_style unix

lib_opt_flags "-O2"
check_opt_flags "-O2"
shared_flags "-fPIC"
debug_flags "-g"
no_debug_flags "-finline-functions"

<so_link_flags>
# The default works for GNU ld and several other Unix linkers
default -> "$(CXX) -shared -fPIC -Wl,-soname,$(SONAME)"
</so_link_flags>

<mach_abi_linking>
amd64   -> "-m64"
mips64  -> "-mabi=64"
s390    -> "-m31"
s390x   -> "-m64"
sparc32 -> "-m32 -mno-app-regs"
sparc64 -> "-m64 -mno-app-regs"
ppc64   -> "-m64"

# This should probably be used on most/all targets, but the docs are incomplete
openbsd -> "-pthread"
freebsd -> "-pthread"
dragonfly -> "-pthread"
netbsd  -> "-pthread -D_NETBSD_SOURCE"
qnx     -> "-fexceptions -D_QNX_SOURCE"
</mach_abi_linking>
{'fraction_non_alphanumeric': 0.13671539122957868, 'fraction_numerical': 0.027515047291487533, 'mean_word_length': 4.173333333333333, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 20, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5367003', 'n_tokens_mistral': 482, 'n_tokens_neox': 451, 'n_words': 120}