Lines Matching refs:ofs

71       fs::ofstream ofs(config_path / "config_info.cpp");  in write_config_info()  local
72 ofs << new_text; in write_config_info()
78 fs::ofstream ofs(config_path / "config_test.cpp"); in write_config_test() local
80 ofs << "// This file was automatically generated on " << std::ctime(&t); in write_config_test()
81 ofs << "// by libs/config/tools/generate.cpp\n" << copyright << std::endl; in write_config_test()
82 ofs << "// Test file for config setup\n" in write_config_test()
89 ofs << config_test1.str() << std::endl; in write_config_test()
90 ofs << config_test1a.str() << std::endl; in write_config_test()
91 ofs << "int main( int, char *[] )\n{\n" << config_test2.str() << " return error_count;\n}\n\n"; in write_config_test()
96 fs::ofstream ofs(config_path / "all" / "Jamfile.v2"); in write_jamfile_v2() local
98ofs << "#\n# Regression test Jamfile for boost configuration setup.\n# *** DO NOT EDIT THIS FILE B… in write_jamfile_v2()
100 ofs << "# by libs/config/tools/generate.cpp\n" in write_jamfile_v2()
116 ofs << jamfile_v2.str() << std::endl; in write_jamfile_v2()
131 fs::ofstream ofs(file); in write_test_file() local
133 ofs << "// This file was automatically generated on " << std::ctime(&t); in write_test_file()
134 ofs << "// by libs/config/tools/generate.cpp\n" << copyright << std::endl; in write_test_file()
135 ofs << "\n// Test file for macro " << macro_name << std::endl; in write_test_file()
139 ofs << "// This file should compile, if it does not then\n" in write_test_file()
142 ofs << "not "; in write_test_file()
143 ofs << "be defined.\n"; in write_test_file()
147 ofs << "// This file should not compile, if it does then\n" in write_test_file()
150 ofs << "not "; in write_test_file()
151 ofs << "be defined.\n"; in write_test_file()
153 ofs << "// See file " << header_file << " for details\n\n"; in write_test_file()
155 ofs << "// Must not have BOOST_ASSERT_CONFIG set; it defeats\n" in write_test_file()
163 ofs << "#include <boost/config.hpp>\n"; in write_test_file()
166 ofs << "#include <boost/tr1/detail/config.hpp>\n"; in write_test_file()
168 ofs << "#include \"test.hpp\"\n\n" in write_test_file()
171 ofs << "n"; in write_test_file()
172 ofs << "def " << macro_name << in write_test_file()
176 ofs << "namespace " << namespace_name << " = empty_boost;\n"; in write_test_file()
178 ofs << "#error \"this file should not compile\"\n"; in write_test_file()
179 ofs << "#endif\n\n"; in write_test_file()
181 ofs << "int main( int, char *[] )\n{\n return " << namespace_name << "::test();\n}\n\n"; in write_test_file()
191 fs::ofstream ofs(config_path / ".." / "checks" / "test_case.cpp"); in write_build_tests() local
193 ofs << "// This file was automatically generated on " << std::ctime(&t); in write_build_tests()
194 ofs << "// by libs/config/tools/generate.cpp\n" << copyright << std::endl; in write_build_tests()
195 ofs << build_config_test.str() << std::endl; in write_build_tests()
196 ofs << "int main( int, char *[] )\n{\n" << " return test::test();\n}\n\n"; in write_build_tests()
201 fs::ofstream ofs(config_path / ".." / "checks" / "Jamfile.v2"); in write_build_check_jamfile() local
203 ofs << "#\n# *** DO NOT EDIT THIS FILE BY HAND ***\n" in write_build_check_jamfile()
205 ofs << "# by libs/config/tools/generate.cpp\n" in write_build_check_jamfile()
227 ofs << build_config_jamfile.str() << std::endl; in write_build_check_jamfile()