Skip to content

Instantly share code, notes, and snippets.

#include <type_traits>
#include <assert.h>
template
<
typename Identifier
>
struct Leaf
{
};
/usr/bin/clang++ -gdwarf-2 -std=c++1z -nostdinc++ -isystem /usr/local/Toolchains/LLVM7.0.0svn.xctoolchain -isystem /usr/local/Toolchains/LLVM7.0.0svn.xctoolchain/usr/include/c++/v1 -isystem /usr/local/include -isystem /usr/include -I/Users/asher/Projects -fmodules -fmodules-ts -fcxx-modules -fbuiltin-module-map -fno-inline -fno-implicit-module-maps -fmodules-cache-path=/Users/asher/Projects/•Deployment/build/modules -fvisibility=default -fdiagnostics-show-template-tree -ftemplate-depth=512 -ftemplate-backtrace-limit=0 -fmodule-map-file=/Users/asher/Projects/strongai/modules.modulemap -fmodule-map-file=/usr/local/Toolchains/LLVM7.0.0svn.xctoolchain/usr/include/c++/v1/module.modulemap -Xlinker -L/usr/local/Toolchains/LLVM7.0.0svn.xctoolchain/lib -Xlinker -L/usr/local/lib -Xlinker -lc++experimental -Xlinker -lgtest -Xlinker -lgtest_main -c /Users/asher/Projects/strongai/aspect/test/traits/tests.cpp -o /Users/asher/Projects/•Deployment/build/test/StrongAI•Aspect•Traits•Test
clang-7: warning: -Xlinker -L/usr/local
extern "C" {
#include <ctype.h>
#include <xlocale.h>
}
/*
clang++ -x c++ -c -pipe -O -Wall -Wextra -Wpointer-arith -Wconditional-uninitialized -Wno-unused-parameter -Wno-ignored-qualifiers -Wno-mismatched-tags -Wno-missing-braces -Wno-deprecated-declarations -Werror -g -std=c++1z -stdlib=libc++ -nostdinc++ -isystem /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain//usr/include -isystem /Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain//usr/include/c++/v1 -isystem /usr/local/include -isystem /usr/include -fdiagnostics-show-template-tree -ftemplate-depth=512 -ftemplate-backtrace-limit=0 -fmodules -fmodules-ts -fcxx-modules -fno-implicit-module-maps -fmodule-map-file=/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain//usr/include/c++/v1/module.modulemap -o /Users/asher/clangbug.o /Users/asher/clangbug.cpp
*/
const llvm::Module&
compileString(
std::string source_string
) {
std::vector<std::string> args = {
"/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/bin/clang++",
"-std=c++1z",
"-isystem", "/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/include/c++/v1",
"-isystem", "/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/include",
const llvm::Module&
compileString(
std::string source_string
) {
std::vector<std::string> args = {
"/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/bin/clang++",
"-std=c++1z",
"-isystem", "/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/include/c++/v1",
"-isystem", "/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/include",
const llvm::Module&
compileString(
std::string source_string
) {
std::vector<std::string> args = {
"/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/bin/clang++",
"-std=c++1z",
"-isystem", "/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/include/c++/v1",
"-isystem", "/usr/local/Toolchains/LLVM5.0.0.xctoolchain/usr/include",
[asher:Zero] [23:01:01] [Tue Jan 09] [~/Projects/Source/llvm-build/bin]
∴ ./clang++ -I/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include -o ~/test ~/test.cc
In file included from /Users/asher/test.cc:1:
In file included from /usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/Tooling/Tooling.h:33:
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTConsumer.h:124:66: error: use of undeclared identifier 'nullptr'
virtual ASTMutationListener *GetASTMutationListener() { return nullptr; }
^
/usr/local/Toolchains/LLVM6.0.0svn.xctoolchain/usr/include/clang/AST/ASTConsumer.h:129:12: error: use of undeclared identifier 'nullptr'
return nullptr;
^
Object.defineProperty(Object.prototype, 'newWithArray', {
value: function( args_array ) {
function create() {
var factory = this.bind.apply(this, arguments);
return factory;
};
var apply_args = Array.prototype.concat.apply( [this], args_array );
var constructor = create.apply( this, apply_args );
/*
From https://github.com/akrzemi1/Optional.
Modifications by Asher Haig ([email protected]) for constexpr&.
Copyright (C) 2011 - 2012 Andrzej Krzemienski.
Use, modification, and distribution is subject to the Boost Software
License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
http://www.boost.org/LICENSE_1_0.txt)
∴ /usr/local/bin/clang -x c++ -arch x86_64 -fmessage-length=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu++14 -stdlib=libc++ -fmodules -gmodules -fmodules-cache-path=/Users/asher/Library/Developer/Xcode/DerivedData/ModuleCache -fmodules-prune-interval=86400 -fmodules-prune-after=345600 -fbuild-session-file=/Users/asher/Library/Developer/Xcode/DerivedData/ModuleCache/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type -Wdocumentation -Wunreachable-code -Werror=deprecated-objc-isa-usage -Werror=objc-root-class -Wno-non-virtual-dtor -Wno-overloaded-virtual -Wno-exit-time-destructors -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-un