<commit_before># 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 -std=c++0x"
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"

visibility_build_flags "-fvisibility=hidden"
visibility_attribute '__attribute__((visibility("default")))'

<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_opt>
x86_64    -> "-march=SUBMODEL"
nehalem   -> "-march=corei7"
westmere  -> "-march=corei7 -maes"
</mach_opt>

<mach_abi_linking>
all     -> "-pthread"

x86_64  -> "-m64"
ppc64   -> "-m64"

netbsd  -> "-D_NETBSD_SOURCE"
</mach_abi_linking><commit_msg>Use libc++ with Clang by default as libstdc++ and Clang don't play well together in C++11 mode.<commit_after># 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 -std=c++0x"
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"

visibility_build_flags "-fvisibility=hidden"
visibility_attribute '__attribute__((visibility("default")))'

<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_opt>
x86_64    -> "-march=SUBMODEL"
nehalem   -> "-march=corei7"
westmere  -> "-march=corei7 -maes"
</mach_opt>

<mach_abi_linking>
all     -> "-stdlib=libc++ -pthread"

x86_64  -> "-m64"
ppc64   -> "-m64"

netbsd  -> "-D_NETBSD_SOURCE"
</mach_abi_linking>
{'fraction_non_alphanumeric': 0.13512119649303764, 'fraction_numerical': 0.020629190304280558, 'mean_word_length': 4.878787878787879, 'pattern_counts': {'":': 0, '<': 15, '<?xml version=': 0, '>': 31, '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': '1654931', 'n_tokens_mistral': 809, 'n_tokens_neox': 763, 'n_words': 176}