Commit 7f2385e9 authored by Karl Wiberg's avatar Karl Wiberg Committed by Commit Bot

gn format: Sort `public` just like we sort `sources`

Since both of them list source files.

Change-Id: I1eb2516ffb0fe1efa8208562384a620eb45903dd
Reviewed-on: https://chromium-review.googlesource.com/674877Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Reviewed-by: default avatarScott Graham <scottmg@chromium.org>
Commit-Queue: Karl Wiberg <kwiberg@chromium.org>
Cr-Commit-Position: refs/heads/master@{#503965}
parent 569732c0
......@@ -336,7 +336,7 @@ void Printer::SortIfSourcesOrDeps(const BinaryOpNode* binop) {
binop->op().value() == "-=") &&
ident && list) {
const base::StringPiece lhs = ident->value().value();
if (lhs == "sources")
if (lhs == "public" || lhs == "sources")
const_cast<ListNode*>(list)->SortAsStringsList();
else if (lhs == "deps" || lhs == "public_deps")
const_cast<ListNode*>(list)->SortAsDepsList();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment