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

Unified Diff: tools/gn/pattern.cc

Issue 500423003: Enhance GN diagnostic tools (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use patterns for gn check Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/gn/pattern.h ('k') | tools/gn/setup.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/gn/pattern.cc
diff --git a/tools/gn/pattern.cc b/tools/gn/pattern.cc
index e4ac8df160b450ee0247ec0d4e3b2044a798b6a4..7747d6259381fdbb6b17a4dae7e23652bd191d31 100644
--- a/tools/gn/pattern.cc
+++ b/tools/gn/pattern.cc
@@ -6,40 +6,6 @@
#include "tools/gn/value.h"
-const char kPattern_Help[] =
- "Patterns\n"
- " Patterns are VERY limited regular expressions that are used in\n"
- " several places.\n"
- "\n"
- " Patterns must match the entire input string to be counted as a match.\n"
- " In regular expression parlance, there is an implicit \"^...$\"\n"
- " surrounding your input. If you want to match a substring, you need to\n"
- " use wildcards at the beginning and end.\n"
- "\n"
- " There are only two special tokens understood by the pattern matcher.\n"
- " Everything else is a literal.\n"
- "\n"
- " * Matches zero or more of any character. It does not depend on the\n"
- " preceding character (in regular expression parlance it is\n"
- " equivalent to \".*\").\n"
- "\n"
- " \\b Matches a path boundary. This will match the beginning or end of\n"
- " a string, or a slash.\n"
- "\n"
- "Examples\n"
- "\n"
- " \"*asdf*\"\n"
- " Matches a string containing \"asdf\" anywhere.\n"
- "\n"
- " \"asdf\"\n"
- " Matches only the exact string \"asdf\".\n"
- "\n"
- " \"*.cc\"\n"
- " Matches strings ending in the literal \".cc\".\n"
- "\n"
- " \"\\bwin/*\"\n"
- " Matches \"win/foo\" and \"foo/win/bar.cc\" but not \"iwin/foo\".\n";
-
namespace {
void ParsePattern(const std::string& s, std::vector<Pattern::Subrange>* out) {
« no previous file with comments | « tools/gn/pattern.h ('k') | tools/gn/setup.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698