Make mojom-generated C++ string constants really constant.
Previously, string constants generated from mojoms were of the form
const char* kName = "value";
This allows kName to be changed at runtime to point at other strings.
This replaces those with
const char kName[] = "value";
This also changes mojom-generated scalar constants to be constexpr.
BUG=682102
Review-Url: https://codereview.chromium.org/2637393002
Cr-Commit-Position: refs/heads/master@{#444871}
Committed: https://chromium.googlesource.com/chromium/src/+/1bcfeb4b504a90db6bd008c4e87e895f5957161f
Dry run: Try jobs failed on following builders: win_chromium_x64_rel_ng on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_x64_rel_ng/builds/350022)
3 years, 11 months ago
(2017-01-18 07:47:38 UTC)
#6
Description was changed from ========== Use constexpr for mojom-generated C++ constants. Previously, string constants generated ...
3 years, 11 months ago
(2017-01-18 23:47:46 UTC)
#7
Description was changed from
==========
Use constexpr for mojom-generated C++ constants.
Previously, string constants generated from mojom files used a
const char* kName = "value";
structure. This allows kName to be changed at runtime to point at other
strings. This changes C++ constants generated from mojom constants to
use constexpr and for strings to use the more standard form:
constexpr char kName[] = "value";
BUG=682102
==========
to
==========
Use a correct form for mojom-generated C++ string constants.
Previously, string constants generated from mojom files used a
const char* kName = "value";
structure. This allows kName to be changed at runtime to point at other
strings. This changes C++ constants generated from mojom constants to
use constexpr and for strings to use the more standard form:
const char kName[] = "value";
This also changes scalar constants to be constexpr.
BUG=682102
==========
Sam McNally
Description was changed from ========== Use a correct form for mojom-generated C++ string constants. Previously, ...
3 years, 11 months ago
(2017-01-18 23:54:42 UTC)
#8
Description was changed from
==========
Use a correct form for mojom-generated C++ string constants.
Previously, string constants generated from mojom files used a
const char* kName = "value";
structure. This allows kName to be changed at runtime to point at other
strings. This changes C++ constants generated from mojom constants to
use constexpr and for strings to use the more standard form:
const char kName[] = "value";
This also changes scalar constants to be constexpr.
BUG=682102
==========
to
==========
Use a correct form for mojom-generated C++ string constants.
Previously, string constants generated from mojom files used a
const char* kName = "value";
structure. This allows kName to be changed at runtime to point at other
strings. This changes C++ constants generated from mojom constants to
use constexpr and for strings to use the more standard form:
const char kName[] = "value";
This also changes scalar constants to be constexpr.
BUG=682102
==========
Sam McNally
The CQ bit was checked by sammc@chromium.org to run a CQ dry run
3 years, 11 months ago
(2017-01-18 23:54:51 UTC)
#9
Description was changed from ========== Use a correct form for mojom-generated C++ string constants. Previously, ...
3 years, 11 months ago
(2017-01-19 05:58:34 UTC)
#15
Description was changed from
==========
Use a correct form for mojom-generated C++ string constants.
Previously, string constants generated from mojom files used a
const char* kName = "value";
structure. This allows kName to be changed at runtime to point at other
strings. This changes C++ constants generated from mojom constants to
use constexpr and for strings to use the more standard form:
const char kName[] = "value";
This also changes scalar constants to be constexpr.
BUG=682102
==========
to
==========
Make mojom-generated C++ string constants really constant.
Previously, string constants generated from mojoms were of the form
const char* kName = "value";
This allows kName to be changed at runtime to point at other strings.
This replaces those with
const char kName[] = "value";
This also changes mojom-generated scalar constants to be constexpr.
BUG=682102
==========
Sam McNally
Description was changed from ========== Make mojom-generated C++ string constants really constant. Previously, string constants ...
3 years, 11 months ago
(2017-01-19 06:10:45 UTC)
#16
Description was changed from
==========
Make mojom-generated C++ string constants really constant.
Previously, string constants generated from mojoms were of the form
const char* kName = "value";
This allows kName to be changed at runtime to point at other strings.
This replaces those with
const char kName[] = "value";
This also changes mojom-generated scalar constants to be constexpr.
BUG=682102
==========
to
==========
Make mojom-generated C++ string constants really constant.
Previously, string constants generated from mojoms were of the form
const char* kName = "value";
This allows kName to be changed at runtime to point at other strings.
This replaces those with
const char kName[] = "value";
This also changes mojom-generated scalar constants to be constexpr.
BUG=682102
==========
CQ is committing da patch. Bot data: {"patchset_id": 60001, "attempt_start_ts": 1484865647668940, "parent_rev": "02e9bb3d16ab71e98fe162d7295eae3e67e102bd", "commit_rev": "1bcfeb4b504a90db6bd008c4e87e895f5957161f"}
3 years, 11 months ago
(2017-01-19 22:53:21 UTC)
#24
CQ is committing da patch.
Bot data: {"patchset_id": 60001, "attempt_start_ts": 1484865647668940,
"parent_rev": "02e9bb3d16ab71e98fe162d7295eae3e67e102bd", "commit_rev":
"1bcfeb4b504a90db6bd008c4e87e895f5957161f"}
commit-bot: I haz the power
Description was changed from ========== Make mojom-generated C++ string constants really constant. Previously, string constants ...
3 years, 11 months ago
(2017-01-19 22:53:53 UTC)
#25
Message was sent while issue was closed.
Description was changed from
==========
Make mojom-generated C++ string constants really constant.
Previously, string constants generated from mojoms were of the form
const char* kName = "value";
This allows kName to be changed at runtime to point at other strings.
This replaces those with
const char kName[] = "value";
This also changes mojom-generated scalar constants to be constexpr.
BUG=682102
==========
to
==========
Make mojom-generated C++ string constants really constant.
Previously, string constants generated from mojoms were of the form
const char* kName = "value";
This allows kName to be changed at runtime to point at other strings.
This replaces those with
const char kName[] = "value";
This also changes mojom-generated scalar constants to be constexpr.
BUG=682102
Review-Url: https://codereview.chromium.org/2637393002
Cr-Commit-Position: refs/heads/master@{#444871}
Committed:
https://chromium.googlesource.com/chromium/src/+/1bcfeb4b504a90db6bd008c4e87e...
==========
commit-bot: I haz the power
Committed patchset #4 (id:60001) as https://chromium.googlesource.com/chromium/src/+/1bcfeb4b504a90db6bd008c4e87e895f5957161f
3 years, 11 months ago
(2017-01-19 22:53:54 UTC)
#26
Issue 2637393002: Make mojom-generated C++ string constants really constant.
(Closed)
Created 3 years, 11 months ago by Sam McNally
Modified 3 years, 11 months ago
Reviewers: yzshen1
Base URL:
Comments: 0