xref: /llvm-project/clang/test/Analysis/Inputs/ctu-test-import-failure-import.cpp (revision 8e97f50eed71ff59b5a6fcb31e3e1af3fb30cdb4)
1 namespace std {
2 inline namespace __cxx11 {
3 template <typename _CharT, typename = int, typename = _CharT>
4 class basic_string;
5 }
6 template <typename, typename> class basic_istream;
7 template <typename> struct __get_first_arg;
8 struct allocator_traits {
9   using type = __get_first_arg<int>;
10 };
11 } // namespace std
12 namespace std {
13 inline namespace __cxx11 {
14 template <typename, typename, typename> class basic_string {
15   allocator_traits _M_allocated_capacity;
16   void _M_assign();
17 };
18 } // namespace __cxx11
19 } // namespace std
20 namespace std {
21 template <typename _CharT, typename _Alloc> void operator!=(_Alloc, _CharT);
22 template <typename _CharT, typename _Traits, typename _Alloc>
23 basic_istream<_CharT, _Traits> &getline(basic_istream<_CharT, _Traits> &,
24                                         basic_string<_CharT, _Traits, _Alloc> &,
25                                         _CharT);
26 } // namespace std
27 namespace std {
28 template <typename _CharT, typename _Traits, typename _Alloc>
29 void basic_string<_CharT, _Traits, _Alloc>::_M_assign() {
30   this != 0;
31 }
32 template <typename _CharT, typename _Traits, typename _Alloc>
33 basic_istream<_CharT, _Traits> &getline(basic_istream<_CharT, _Traits> &,
34                                         basic_string<_CharT, _Traits, _Alloc> &,
35                                         _CharT) {}
36 } // namespace std
37 struct CommandLineOptionDefinition {
38   void *OutAddress;
39 };
40 struct CommandLineCommand {
41   CommandLineOptionDefinition Options;
42 };
43 namespace CommandLine {
44 extern const CommandLineCommand RootCommands[];
45 extern const int RootExamples[];
46 } // namespace CommandLine
47 using utf8 = char;
48 using u8string = std::basic_string<utf8>;
49 u8string _rct2DataPath;
50 CommandLineOptionDefinition StandardOptions{&_rct2DataPath};
51 const CommandLineCommand CommandLine::RootCommands[]{StandardOptions};
52 const int CommandLine::RootExamples[]{};
53