ccls/tests/stl.cc

538 lines
10 KiB
C++
Raw Normal View History

#include <assert.h>
#include <complex.h>
#include <ctype.h>
#include <errno.h>
#include <fenv.h>
#include <float.h>
#include <inttypes.h>
#include <iso646.h>
#include <limits.h>
#include <locale.h>
#include <math.h>
#include <setjmp.h>
#include <signal.h>
#include <stdalign.h>
#include <stdarg.h>
#include <stdatomic.h>
#include <stdbool.h>
#include <stddef.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdnoreturn.h>
#include <string.h>
#include <tgmath.h>
#include <threads.h>
#include <time.h>
#include <uchar.h>
#include <wchar.h>
#include <wctype.h>
#include <string>
#include <xiosbase>
#include <algorithm>
#include <type_traits>
#include <iterator>
#include <stdlib.h>
#include <cstddef>
#include <cmath>
#include <set>
#include <iosfwd>
#include <streambuf>
#include <ostream>
#include <fstream>
#include <memory>
#include <stdexcept>
#include <vector>
#include <sstream>
#include <iomanip>
#include <limits>
#include <tuple>
#include <cstdlib>
#include <csignal>
#include <csetjmp>
#include <cstdarg>
#include <typeinfo>
#include <typeindex>
#include <type_traits>
#include <bitset>
#include <functional>
#include <utility>
#include <ctime>
#include <chrono>
#include <cstddef>
#include <initializer_list>
#include <tuple>
#include <any>
#include <optional>
#include <variant>
#include <new>
#include <memory>
#include <scoped_allocator>
#include <memory_resource>
#include <climits>
#include <cfloat>
#include <cstdint>
#include <cinttypes>
#include <limits>
#include <exception>
#include <stdexcept>
#include <cassert>
#include <system_error>
#include <cerrno>
#include <cctype>
#include <cwctype>
#include <cstring>
#include <cwchar>
#include <cuchar>
#include <string>
#include <string_view>
#include <array>
#include <vector>
#include <deque>
#include <list>
#include <forward_list>
#include <set>
#include <map>
#include <unordered_set>
#include <unordered_map>
#include <stack>
#include <queue>
#include <algorithm>
#include <execution>
#include <iterator>
#include <cmath>
#include <complex>
#include <valarray>
#include <random>
#include <numeric>
#include <ratio>
#include <cfenv>
#include <iosfwd>
#include <ios>
#include <istream>
#include <ostream>
#include <iostream>
#include <fstream>
#include <sstream>
#include <strstream>
#include <iomanip>
#include <streambuf>
#include <cstdio>
#include <locale>
#include <clocale>
#include <codecvt>
#include <regex>
#include <atomic>
#include <thread>
#include <mutex>
#include <shared_mutex>
#include <future>
#include <condition_variable>
#include <filesystem>
/*
OUTPUT:
{
2017-05-21 03:46:15 +00:00
"includes": [{
"line": 1,
2017-11-30 03:21:23 +00:00
"resolved_path": "&assert.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 2,
2017-11-30 03:21:23 +00:00
"resolved_path": "&complex.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 3,
2017-11-30 03:21:23 +00:00
"resolved_path": "&ctype.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 4,
2017-11-30 03:21:23 +00:00
"resolved_path": "&errno.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 5,
2017-11-30 03:21:23 +00:00
"resolved_path": "&fenv.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 6,
2017-11-30 03:21:23 +00:00
"resolved_path": "&float.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 7,
2017-11-30 03:21:23 +00:00
"resolved_path": "&inttypes.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 8,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iso646.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 9,
2017-11-30 03:21:23 +00:00
"resolved_path": "&limits.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 10,
2017-11-30 03:21:23 +00:00
"resolved_path": "&locale.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 11,
2017-11-30 03:21:23 +00:00
"resolved_path": "&math.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 12,
2017-11-30 03:21:23 +00:00
"resolved_path": "&setjmp.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 13,
2017-11-30 03:21:23 +00:00
"resolved_path": "&signal.h"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 14,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
"line": 15,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdarg.h"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 16,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
"line": 17,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdbool.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 18,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stddef.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 19,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdint.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 20,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdio.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 21,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdlib.h"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 22,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
"line": 23,
2017-11-30 03:21:23 +00:00
"resolved_path": "&string.h"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 24,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 25,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
"line": 26,
2017-11-30 03:21:23 +00:00
"resolved_path": "&time.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 27,
2017-11-30 03:21:23 +00:00
"resolved_path": "&uchar.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 28,
2017-11-30 03:21:23 +00:00
"resolved_path": "&wchar.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 29,
2017-11-30 03:21:23 +00:00
"resolved_path": "&wctype.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 32,
2017-11-30 03:21:23 +00:00
"resolved_path": "&string"
2017-05-21 03:46:15 +00:00
}, {
"line": 33,
2017-11-30 03:21:23 +00:00
"resolved_path": "&xiosbase"
2017-05-21 03:46:15 +00:00
}, {
"line": 34,
2017-11-30 03:21:23 +00:00
"resolved_path": "&algorithm"
2017-05-21 03:46:15 +00:00
}, {
"line": 35,
2017-11-30 03:21:23 +00:00
"resolved_path": "&type_traits"
2017-05-21 03:46:15 +00:00
}, {
"line": 36,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iterator"
2017-05-21 03:46:15 +00:00
}, {
"line": 37,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdlib.h"
2017-05-21 03:46:15 +00:00
}, {
"line": 38,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstddef"
2017-05-21 03:46:15 +00:00
}, {
"line": 39,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cmath"
2017-05-21 03:46:15 +00:00
}, {
"line": 40,
2017-11-30 03:21:23 +00:00
"resolved_path": "&set"
2017-05-21 03:46:15 +00:00
}, {
"line": 41,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iosfwd"
2017-05-21 03:46:15 +00:00
}, {
"line": 42,
2017-11-30 03:21:23 +00:00
"resolved_path": "&streambuf"
2017-05-21 03:46:15 +00:00
}, {
"line": 43,
2017-11-30 03:21:23 +00:00
"resolved_path": "&ostream"
2017-05-21 03:46:15 +00:00
}, {
"line": 44,
2017-11-30 03:21:23 +00:00
"resolved_path": "&fstream"
2017-05-21 03:46:15 +00:00
}, {
"line": 45,
2017-11-30 03:21:23 +00:00
"resolved_path": "&memory"
2017-05-21 03:46:15 +00:00
}, {
"line": 46,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdexcept"
2017-05-21 03:46:15 +00:00
}, {
"line": 47,
2017-11-30 03:21:23 +00:00
"resolved_path": "&vector"
2017-05-21 03:46:15 +00:00
}, {
"line": 48,
2017-11-30 03:21:23 +00:00
"resolved_path": "&sstream"
2017-05-21 03:46:15 +00:00
}, {
"line": 49,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iomanip"
2017-05-21 03:46:15 +00:00
}, {
"line": 50,
2017-11-30 03:21:23 +00:00
"resolved_path": "&limits"
2017-05-21 03:46:15 +00:00
}, {
"line": 51,
2017-11-30 03:21:23 +00:00
"resolved_path": "&tuple"
2017-05-21 03:46:15 +00:00
}, {
"line": 52,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstdlib"
2017-05-21 03:46:15 +00:00
}, {
"line": 53,
2017-11-30 03:21:23 +00:00
"resolved_path": "&csignal"
2017-05-21 03:46:15 +00:00
}, {
"line": 54,
2017-11-30 03:21:23 +00:00
"resolved_path": "&csetjmp"
2017-05-21 03:46:15 +00:00
}, {
"line": 55,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstdarg"
2017-05-21 03:46:15 +00:00
}, {
"line": 56,
2017-11-30 03:21:23 +00:00
"resolved_path": "&typeinfo"
2017-05-21 03:46:15 +00:00
}, {
"line": 57,
2017-11-30 03:21:23 +00:00
"resolved_path": "&typeindex"
2017-05-21 03:46:15 +00:00
}, {
"line": 58,
2017-11-30 03:21:23 +00:00
"resolved_path": "&type_traits"
2017-05-21 03:46:15 +00:00
}, {
"line": 59,
2017-11-30 03:21:23 +00:00
"resolved_path": "&bitset"
2017-05-21 03:46:15 +00:00
}, {
"line": 60,
2017-11-30 03:21:23 +00:00
"resolved_path": "&functional"
2017-05-21 03:46:15 +00:00
}, {
"line": 61,
2017-11-30 03:21:23 +00:00
"resolved_path": "&utility"
2017-05-21 03:46:15 +00:00
}, {
"line": 62,
2017-11-30 03:21:23 +00:00
"resolved_path": "&ctime"
2017-05-21 03:46:15 +00:00
}, {
"line": 63,
2017-11-30 03:21:23 +00:00
"resolved_path": "&chrono"
2017-05-21 03:46:15 +00:00
}, {
"line": 64,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstddef"
2017-05-21 03:46:15 +00:00
}, {
"line": 65,
2017-11-30 03:21:23 +00:00
"resolved_path": "&initializer_list"
2017-05-21 03:46:15 +00:00
}, {
"line": 66,
2017-11-30 03:21:23 +00:00
"resolved_path": "&tuple"
2017-05-21 03:46:15 +00:00
}, {
"line": 67,
2017-11-30 03:21:23 +00:00
"resolved_path": "&any"
2017-05-21 03:46:15 +00:00
}, {
"line": 68,
2017-11-30 03:21:23 +00:00
"resolved_path": "&optional"
2017-05-21 03:46:15 +00:00
}, {
"line": 69,
2017-11-30 03:21:23 +00:00
"resolved_path": "&variant"
2017-05-21 03:46:15 +00:00
}, {
"line": 70,
2017-11-30 03:21:23 +00:00
"resolved_path": "&new"
2017-05-21 03:46:15 +00:00
}, {
"line": 71,
2017-11-30 03:21:23 +00:00
"resolved_path": "&memory"
2017-05-21 03:46:15 +00:00
}, {
"line": 72,
2017-11-30 03:21:23 +00:00
"resolved_path": "&scoped_allocator"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 73,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
"line": 74,
2017-11-30 03:21:23 +00:00
"resolved_path": "&climits"
2017-05-21 03:46:15 +00:00
}, {
"line": 75,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cfloat"
2017-05-21 03:46:15 +00:00
}, {
"line": 76,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstdint"
2017-05-21 03:46:15 +00:00
}, {
"line": 77,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cinttypes"
2017-05-21 03:46:15 +00:00
}, {
"line": 78,
2017-11-30 03:21:23 +00:00
"resolved_path": "&limits"
2017-05-21 03:46:15 +00:00
}, {
"line": 79,
2017-11-30 03:21:23 +00:00
"resolved_path": "&exception"
2017-05-21 03:46:15 +00:00
}, {
"line": 80,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stdexcept"
2017-05-21 03:46:15 +00:00
}, {
"line": 81,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cassert"
2017-05-21 03:46:15 +00:00
}, {
"line": 82,
2017-11-30 03:21:23 +00:00
"resolved_path": "&system_error"
2017-05-21 03:46:15 +00:00
}, {
"line": 83,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cerrno"
2017-05-21 03:46:15 +00:00
}, {
"line": 84,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cctype"
2017-05-21 03:46:15 +00:00
}, {
"line": 85,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cwctype"
2017-05-21 03:46:15 +00:00
}, {
"line": 86,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstring"
2017-05-21 03:46:15 +00:00
}, {
"line": 87,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cwchar"
2017-05-21 03:46:15 +00:00
}, {
"line": 88,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cuchar"
2017-05-21 03:46:15 +00:00
}, {
"line": 89,
2017-11-30 03:21:23 +00:00
"resolved_path": "&string"
2017-05-21 03:46:15 +00:00
}, {
"line": 90,
2017-11-30 03:21:23 +00:00
"resolved_path": "&string_view"
2017-05-21 03:46:15 +00:00
}, {
"line": 91,
2017-11-30 03:21:23 +00:00
"resolved_path": "&array"
2017-05-21 03:46:15 +00:00
}, {
"line": 92,
2017-11-30 03:21:23 +00:00
"resolved_path": "&vector"
2017-05-21 03:46:15 +00:00
}, {
"line": 93,
2017-11-30 03:21:23 +00:00
"resolved_path": "&deque"
2017-05-21 03:46:15 +00:00
}, {
"line": 94,
2017-11-30 03:21:23 +00:00
"resolved_path": "&list"
2017-05-21 03:46:15 +00:00
}, {
"line": 95,
2017-11-30 03:21:23 +00:00
"resolved_path": "&forward_list"
2017-05-21 03:46:15 +00:00
}, {
"line": 96,
2017-11-30 03:21:23 +00:00
"resolved_path": "&set"
2017-05-21 03:46:15 +00:00
}, {
"line": 97,
2017-11-30 03:21:23 +00:00
"resolved_path": "&map"
2017-05-21 03:46:15 +00:00
}, {
"line": 98,
2017-11-30 03:21:23 +00:00
"resolved_path": "&unordered_set"
2017-05-21 03:46:15 +00:00
}, {
"line": 99,
2017-11-30 03:21:23 +00:00
"resolved_path": "&unordered_map"
2017-05-21 03:46:15 +00:00
}, {
"line": 100,
2017-11-30 03:21:23 +00:00
"resolved_path": "&stack"
2017-05-21 03:46:15 +00:00
}, {
"line": 101,
2017-11-30 03:21:23 +00:00
"resolved_path": "&queue"
2017-05-21 03:46:15 +00:00
}, {
"line": 102,
2017-11-30 03:21:23 +00:00
"resolved_path": "&algorithm"
2017-05-21 03:46:15 +00:00
}, {
2017-11-30 03:21:23 +00:00
"line": 103,
"resolved_path": "&"
2017-05-21 03:46:15 +00:00
}, {
"line": 104,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iterator"
2017-05-21 03:46:15 +00:00
}, {
"line": 105,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cmath"
2017-05-21 03:46:15 +00:00
}, {
"line": 106,
2017-11-30 03:21:23 +00:00
"resolved_path": "&complex"
2017-05-21 03:46:15 +00:00
}, {
"line": 107,
2017-11-30 03:21:23 +00:00
"resolved_path": "&valarray"
2017-05-21 03:46:15 +00:00
}, {
"line": 108,
2017-11-30 03:21:23 +00:00
"resolved_path": "&random"
2017-05-21 03:46:15 +00:00
}, {
"line": 109,
2017-11-30 03:21:23 +00:00
"resolved_path": "&numeric"
2017-05-21 03:46:15 +00:00
}, {
"line": 110,
2017-11-30 03:21:23 +00:00
"resolved_path": "&ratio"
2017-05-21 03:46:15 +00:00
}, {
"line": 111,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cfenv"
2017-05-21 03:46:15 +00:00
}, {
"line": 112,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iosfwd"
2017-05-21 03:46:15 +00:00
}, {
"line": 113,
2017-11-30 03:21:23 +00:00
"resolved_path": "&ios"
2017-05-21 03:46:15 +00:00
}, {
"line": 114,
2017-11-30 03:21:23 +00:00
"resolved_path": "&istream"
2017-05-21 03:46:15 +00:00
}, {
"line": 115,
2017-11-30 03:21:23 +00:00
"resolved_path": "&ostream"
2017-05-21 03:46:15 +00:00
}, {
"line": 116,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iostream"
2017-05-21 03:46:15 +00:00
}, {
"line": 117,
2017-11-30 03:21:23 +00:00
"resolved_path": "&fstream"
2017-05-21 03:46:15 +00:00
}, {
"line": 118,
2017-11-30 03:21:23 +00:00
"resolved_path": "&sstream"
2017-05-21 03:46:15 +00:00
}, {
"line": 119,
2017-11-30 03:21:23 +00:00
"resolved_path": "&strstream"
2017-05-21 03:46:15 +00:00
}, {
"line": 120,
2017-11-30 03:21:23 +00:00
"resolved_path": "&iomanip"
2017-05-21 03:46:15 +00:00
}, {
"line": 121,
2017-11-30 03:21:23 +00:00
"resolved_path": "&streambuf"
2017-05-21 03:46:15 +00:00
}, {
"line": 122,
2017-11-30 03:21:23 +00:00
"resolved_path": "&cstdio"
2017-05-21 03:46:15 +00:00
}, {
"line": 123,
2017-11-30 03:21:23 +00:00
"resolved_path": "&locale"
2017-05-21 03:46:15 +00:00
}, {
"line": 124,
2017-11-30 03:21:23 +00:00
"resolved_path": "&clocale"
2017-05-21 03:46:15 +00:00
}, {
"line": 125,
2017-11-30 03:21:23 +00:00
"resolved_path": "&codecvt"
2017-05-21 03:46:15 +00:00
}, {
"line": 126,
2017-11-30 03:21:23 +00:00
"resolved_path": "&regex"
2017-05-21 03:46:15 +00:00
}, {
"line": 127,
2017-11-30 03:21:23 +00:00
"resolved_path": "&atomic"
2017-05-21 03:46:15 +00:00
}, {
"line": 128,
2017-11-30 03:21:23 +00:00
"resolved_path": "&thread"
2017-05-21 03:46:15 +00:00
}, {
"line": 129,
2017-11-30 03:21:23 +00:00
"resolved_path": "&mutex"
2017-05-21 03:46:15 +00:00
}, {
"line": 130,
2017-11-30 03:21:23 +00:00
"resolved_path": "&shared_mutex"
2017-05-21 03:46:15 +00:00
}, {
"line": 131,
2017-11-30 03:21:23 +00:00
"resolved_path": "&future"
2017-05-21 03:46:15 +00:00
}, {
"line": 132,
2017-11-30 03:21:23 +00:00
"resolved_path": "&condition_variable"
2017-05-21 03:46:15 +00:00
}, {
"line": 133,
2017-11-30 03:21:23 +00:00
"resolved_path": "&filesystem"
2017-12-12 05:15:37 +00:00
}],
"skipped_by_preprocessor": [],
"types": [],
"funcs": [],
"vars": []
}
2017-03-07 18:17:49 +00:00
*/