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

Unified Diff: tools/gn/command_format.cc

Issue 1335313003: Replace instances of datadeps --> data_deps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: make formatter recognize both datadeps and data_deps Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/android/md5sum/BUILD.gn ('k') | tools/gn/docs/language.md » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/command_format.cc
diff --git a/tools/gn/command_format.cc b/tools/gn/command_format.cc
index 81424ab7a445a291b02ba0caefc2b5a21d7a573b..5eff6017f3f9c2f4a4574e852e7e0ca0373d2d0c 100644
--- a/tools/gn/command_format.cc
+++ b/tools/gn/command_format.cc
@@ -299,9 +299,9 @@ void Printer::AnnotatePreferredMultilineAssignment(const BinaryOpNode* binop) {
// things, but not flags things.
if (binop->op().value() == "=" && ident && list) {
const base::StringPiece lhs = ident->value().value();
- if (lhs == "data" || lhs == "datadeps" || lhs == "deps" ||
- lhs == "inputs" || lhs == "outputs" || lhs == "public" ||
- lhs == "public_deps" || lhs == "sources") {
+ if (lhs == "data" || lhs == "datadeps" || lhs == "data_deps" ||
+ lhs == "deps" || lhs == "inputs" || lhs == "outputs" ||
+ lhs == "public" || lhs == "public_deps" || lhs == "sources") {
const_cast<ListNode*>(list)->set_prefer_multiline(true);
}
}
« no previous file with comments | « tools/android/md5sum/BUILD.gn ('k') | tools/gn/docs/language.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698