Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(176)

Side by Side Diff: tools/gn/command_format.cc

Issue 2250623004: gn: make gn gen preserve import statements passed in --args (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixes Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/gn/command_format.h ('k') | tools/gn/command_format_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "tools/gn/command_format.h"
6
5 #include <stddef.h> 7 #include <stddef.h>
6 8
7 #include <sstream> 9 #include <sstream>
8 10
9 #include "base/command_line.h" 11 #include "base/command_line.h"
10 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
11 #include "base/macros.h" 13 #include "base/macros.h"
12 #include "base/strings/string_split.h" 14 #include "base/strings/string_split.h"
13 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
14 #include "tools/gn/commands.h" 16 #include "tools/gn/commands.h"
(...skipping 1056 matching lines...) Expand 10 before | Expand all | Expand 10 after
1071 } 1073 }
1072 printf("Wrote formatted to '%s'.\n", to_write.AsUTF8Unsafe().c_str()); 1074 printf("Wrote formatted to '%s'.\n", to_write.AsUTF8Unsafe().c_str());
1073 } 1075 }
1074 } 1076 }
1075 } 1077 }
1076 1078
1077 return 0; 1079 return 0;
1078 } 1080 }
1079 1081
1080 } // namespace commands 1082 } // namespace commands
OLDNEW
« no previous file with comments | « tools/gn/command_format.h ('k') | tools/gn/command_format_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698