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

Unified Diff: tools/gn/label_pattern.cc

Issue 2481423002: Convert gn docstrings to C++11 raw strings. (Closed)
Patch Set: Fixes Created 4 years, 1 month 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/gn/input_conversion.cc ('k') | tools/gn/parser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/label_pattern.cc
diff --git a/tools/gn/label_pattern.cc b/tools/gn/label_pattern.cc
index a330b3b66649c032c306dc06a5a3551149d75f88..5b8bf80ff7fa232d3415100cd35b972c8f156105 100644
--- a/tools/gn/label_pattern.cc
+++ b/tools/gn/label_pattern.cc
@@ -13,40 +13,40 @@
#include "tools/gn/value.h"
const char kLabelPattern_Help[] =
- "Label patterns\n"
- "\n"
- " A label pattern is a way of expressing one or more labels in a portion\n"
- " of the source tree. They are not general regular expressions.\n"
- "\n"
- " They can take the following forms only:\n"
- "\n"
- " - Explicit (no wildcard):\n"
- " \"//foo/bar:baz\"\n"
- " \":baz\"\n"
- "\n"
- " - Wildcard target names:\n"
- " \"//foo/bar:*\" (all targets in the //foo/bar/BUILD.gn file)\n"
- " \":*\" (all targets in the current build file)\n"
- "\n"
- " - Wildcard directory names (\"*\" is only supported at the end)\n"
- " \"*\" (all targets)\n"
- " \"//foo/bar/*\" (all targets in any subdir of //foo/bar)\n"
- " \"./*\" (all targets in the current build file or sub dirs)\n"
- "\n"
- " Any of the above forms can additionally take an explicit toolchain.\n"
- " In this case, the toolchain must be fully qualified (no wildcards\n"
- " are supported in the toolchain name).\n"
- "\n"
- " \"//foo:bar(//build/toochain:mac)\"\n"
- " An explicit target in an explicit toolchain.\n"
- "\n"
- " \":*(//build/toolchain/linux:32bit)\"\n"
- " All targets in the current build file using the 32-bit Linux\n"
- " toolchain.\n"
- "\n"
- " \"//foo/*(//build/toolchain:win)\"\n"
- " All targets in //foo and any subdirectory using the Windows\n"
- " toolchain.\n";
+ R"*(Label patterns
+
+ A label pattern is a way of expressing one or more labels in a portion of the
+ source tree. They are not general regular expressions.
+
+ They can take the following forms only:
+
+ - Explicit (no wildcard):
+ "//foo/bar:baz"
+ ":baz"
+
+ - Wildcard target names:
+ "//foo/bar:*" (all targets in the //foo/bar/BUILD.gn file)
+ ":*" (all targets in the current build file)
+
+ - Wildcard directory names ("*" is only supported at the end)
+ "*" (all targets)
+ "//foo/bar/*" (all targets in any subdir of //foo/bar)
+ "./*" (all targets in the current build file or sub dirs)
+
+ Any of the above forms can additionally take an explicit toolchain. In this
+ case, the toolchain must be fully qualified (no wildcards are supported in
+ the toolchain name).
+
+ "//foo:bar(//build/toochain:mac)"
+ An explicit target in an explicit toolchain.
+
+ ":*(//build/toolchain/linux:32bit)"
+ All targets in the current build file using the 32-bit Linux toolchain.
+
+ "//foo/*(//build/toolchain:win)"
+ All targets in //foo and any subdirectory using the Windows
+ toolchain.
+)*";
LabelPattern::LabelPattern() : type_(MATCH) {
}
« no previous file with comments | « tools/gn/input_conversion.cc ('k') | tools/gn/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698