Commit e03b10a9 authored by Lei Zhang's avatar Lei Zhang Committed by Commit Bot

Remove unneeded extern keywords in tools/gn.

Change-Id: I27262f6dbcb146f9c0939d03e831b750b8978c8f
Reviewed-on: https://chromium-review.googlesource.com/765048
Commit-Queue: Lei Zhang <thestig@chromium.org>
Reviewed-by: default avatarDirk Pranke <dpranke@chromium.org>
Cr-Commit-Position: refs/heads/master@{#516029}
parent c7497956
...@@ -56,7 +56,7 @@ size_t BackUpToLineBegin(const std::string& data, size_t offset) { ...@@ -56,7 +56,7 @@ size_t BackUpToLineBegin(const std::string& data, size_t offset) {
size_t cur = offset; size_t cur = offset;
do { do {
cur --; cur--;
if (Tokenizer::IsNewline(data, cur)) if (Tokenizer::IsNewline(data, cur))
return cur + 1; // Want the first character *after* the newline. return cur + 1; // Want the first character *after* the newline.
} while (cur > 0); } while (cur > 0);
...@@ -328,10 +328,10 @@ int EditArgsFile(const std::string& build_dir) { ...@@ -328,10 +328,10 @@ int EditArgsFile(const std::string& build_dir) {
} // namespace } // namespace
extern const char kArgs[] = "args"; const char kArgs[] = "args";
extern const char kArgs_HelpShort[] = const char kArgs_HelpShort[] =
"args: Display or configure arguments declared by the build."; "args: Display or configure arguments declared by the build.";
extern const char kArgs_Help[] = const char kArgs_Help[] =
R"(gn args <out_dir> [--list] [--short] [--args] [--overrides-only] R"(gn args <out_dir> [--list] [--short] [--args] [--overrides-only]
See also "gn help buildargs" for a more high-level overview of how See also "gn help buildargs" for a more high-level overview of how
......
...@@ -656,10 +656,9 @@ Value RunSharedLibrary(Scope* scope, ...@@ -656,10 +656,9 @@ Value RunSharedLibrary(Scope* scope,
// source_set ------------------------------------------------------------------ // source_set ------------------------------------------------------------------
extern const char kSourceSet[] = "source_set"; const char kSourceSet[] = "source_set";
extern const char kSourceSet_HelpShort[] = const char kSourceSet_HelpShort[] = "source_set: Declare a source set target.";
"source_set: Declare a source set target."; const char kSourceSet_Help[] =
extern const char kSourceSet_Help[] =
R"(source_set: Declare a source set target. R"(source_set: Declare a source set target.
A source set is a collection of sources that get compiled, but are not linked A source set is a collection of sources that get compiled, but are not linked
...@@ -685,11 +684,7 @@ extern const char kSourceSet_Help[] = ...@@ -685,11 +684,7 @@ extern const char kSourceSet_Help[] =
Variables Variables
)" )" CONFIG_VALUES_VARS_HELP DEPS_VARS DEPENDENT_CONFIG_VARS GENERAL_TARGET_VARS;
CONFIG_VALUES_VARS_HELP
DEPS_VARS
DEPENDENT_CONFIG_VARS
GENERAL_TARGET_VARS;
Value RunSourceSet(Scope* scope, Value RunSourceSet(Scope* scope,
const FunctionCallNode* function, const FunctionCallNode* function,
......
...@@ -146,7 +146,7 @@ Value DoConvertInputToValue(const Settings* settings, ...@@ -146,7 +146,7 @@ Value DoConvertInputToValue(const Settings* settings,
} // namespace } // namespace
extern const char kInputConversion_Help[] = const char kInputConversion_Help[] =
R"(input_conversion: Specifies how to transform input to a variable. R"(input_conversion: Specifies how to transform input to a variable.
input_conversion is an argument to read_file and exec_script that specifies input_conversion is an argument to read_file and exec_script that specifies
......
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
#include <windows.h> #include <windows.h>
#endif #endif
extern const char kDotfile_Help[] = const char kDotfile_Help[] =
R"(.gn file R"(.gn file
When gn starts, it will search the current directory and parent directories When gn starts, it will search the current directory and parent directories
......
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