Home | History | Annotate | Download | only in gn

Lines Matching refs:buffer

23   std::string buffer;
24 buffer.append("// Some comment\n");
25 buffer.append("\n");
26 buffer.append("#include \"foo/bar.h\"\n");
27 buffer.append("\n");
28 buffer.append("#include <stdio.h>\n");
29 buffer.append("\n");
30 buffer.append(" #include \"foo/baz.h\"\n"); // Leading whitespace
31 buffer.append("#include \"la/deda.h\"\n");
32 buffer.append("#import \"weird_mac_import.h\"\n");
33 buffer.append("\n");
34 buffer.append("void SomeCode() {\n");
37 file.SetContents(buffer);
64 std::string buffer;
66 buffer.append("x\n");
67 buffer.append("#include \"foo/bar.h\"\n");
70 file.SetContents(buffer);
82 std::string buffer;
84 buffer.push_back('\n');
86 buffer.append("// comment\n");
88 buffer.append("#preproc\n");
89 buffer.append("#include \"foo/bar.h\"\n");
92 file.SetContents(buffer);
111 std::string buffer;
114 buffer.append("foo\n");
115 buffer.append("#include \"" + include + "\"\n");
119 file.SetContents(buffer);