mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-23 12:29:27 +01:00
Add all standard C++ headers to C++ compiler_vm language
This commit is contained in:
parent
29b3d7e80f
commit
766e433d33
@ -12,30 +12,101 @@ sub initialize {
|
|||||||
$self->{name} = 'c++';
|
$self->{name} = 'c++';
|
||||||
$self->{sourcefile} = 'prog.cpp';
|
$self->{sourcefile} = 'prog.cpp';
|
||||||
$self->{execfile} = 'prog';
|
$self->{execfile} = 'prog';
|
||||||
$self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=bounds -fsanitize=alignment -fsanitize=undefined';
|
$self->{default_options} = '-std=c++14 -Wextra -Wall -Wno-unused -pedantic -Wfloat-equal -Wshadow -lm -Wfatal-errors -fsanitize=alignment,undefined';
|
||||||
$self->{options_paste} = '-fdiagnostics-show-caret';
|
$self->{options_paste} = '-fdiagnostics-show-caret';
|
||||||
$self->{options_nopaste} = '-fno-diagnostics-show-caret';
|
$self->{options_nopaste} = '-fno-diagnostics-show-caret';
|
||||||
$self->{cmdline} = 'g++ -ggdb -g3 $sourcefile $options -o $execfile';
|
$self->{cmdline} = 'g++ -ggdb -g3 $sourcefile $options -o $execfile';
|
||||||
|
|
||||||
$self->{prelude} = <<'END';
|
$self->{prelude} = <<'END';
|
||||||
|
#if 0
|
||||||
#define _XOPEN_SOURCE 9001
|
#define _XOPEN_SOURCE 9001
|
||||||
#define __USE_XOPEN
|
#define __USE_XOPEN
|
||||||
|
|
||||||
|
#include <algorithm>
|
||||||
|
#include <fstream>
|
||||||
|
#include <list>
|
||||||
|
#include <regex>
|
||||||
|
#include <tuple>
|
||||||
|
#include <array>
|
||||||
|
#include <functional>
|
||||||
|
#include <locale>
|
||||||
|
#include <scoped_allocator>
|
||||||
|
#include <type_traits>
|
||||||
|
#include <atomic>
|
||||||
|
#include <future>
|
||||||
|
#include <map>
|
||||||
|
#include <set>
|
||||||
|
#include <typeindex>
|
||||||
|
#include <bitset>
|
||||||
|
#include <initializer_list>
|
||||||
|
#include <memory>
|
||||||
|
#include <sstream>
|
||||||
|
#include <typeinfo>
|
||||||
|
#include <chrono>
|
||||||
|
#include <iomanip>
|
||||||
|
#include <mutex>
|
||||||
|
#include <stack>
|
||||||
|
#include <unordered_map>
|
||||||
|
#include <codecvt>
|
||||||
|
#include <ios>
|
||||||
|
#include <new>
|
||||||
|
#include <stdexcept>
|
||||||
|
#include <unordered_set>
|
||||||
|
#include <complex>
|
||||||
|
#include <iosfwd>
|
||||||
|
#include <numeric>
|
||||||
|
#include <streambuf>
|
||||||
|
#include <utility>
|
||||||
|
#include <condition_variable>
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include <limits>
|
#include <ostream>
|
||||||
|
#include <string>
|
||||||
|
#include <valarray>
|
||||||
|
#include <deque>
|
||||||
|
#include <istream>
|
||||||
|
#include <queue>
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <exception>
|
#include <exception>
|
||||||
#include <stdexcept>
|
#include <iterator>
|
||||||
#include <typeinfo>
|
#include <system_error>
|
||||||
#include <type_traits>
|
#include <forward_list>
|
||||||
#include <typeindex>
|
#include <iostream>
|
||||||
#include <cstdlib>
|
#include <limits>
|
||||||
|
#include <ratio>
|
||||||
|
#include <thread>
|
||||||
|
|
||||||
|
#include <cassert>
|
||||||
|
#include <cinttypes>
|
||||||
|
#include <csignal>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
#include <cwchar>
|
||||||
|
#include <ccomplex>
|
||||||
|
#include <ciso646>
|
||||||
|
#include <cstdalign>
|
||||||
|
#include <cstdlib>
|
||||||
|
#include <cwctype>
|
||||||
|
#include <cctype>
|
||||||
|
#include <climits>
|
||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <functional>
|
#include <cstring>
|
||||||
#include <tuple>
|
#include <cerrno>
|
||||||
|
#include <clocale>
|
||||||
|
#include <cstdbool>
|
||||||
|
#include <ctgmath>
|
||||||
|
#include <cfenv>
|
||||||
|
#include <cmath>
|
||||||
|
#include <cstddef>
|
||||||
|
#include <ctime>
|
||||||
|
#include <cfloat>
|
||||||
|
#include <csetjmp>
|
||||||
|
#include <cstdint>
|
||||||
|
|
||||||
#include <prelude.h>
|
#include <prelude.h>
|
||||||
|
|
||||||
using namespace std;
|
using namespace std;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#include <prelude.hpp>
|
||||||
|
|
||||||
END
|
END
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user