diff options
author | Abseil Team <absl-team@google.com> | 2019-10-22 16:24:04 (GMT) |
---|---|---|
committer | vslashg <gfalcon@google.com> | 2019-10-23 17:35:16 (GMT) |
commit | aa1146da816954a87bdd6ad745d6281a529e0d90 (patch) | |
tree | 49785dd359d7e11e7b9c4f93cea68fe4ce3f669f /googletest/docs | |
parent | f1afeaa6434812276d106c161f09bf9351a47d39 (diff) | |
download | googletest-aa1146da816954a87bdd6ad745d6281a529e0d90.zip googletest-aa1146da816954a87bdd6ad745d6281a529e0d90.tar.gz googletest-aa1146da816954a87bdd6ad745d6281a529e0d90.tar.bz2 |
Googletest export
Split the scoped trace examples into two snippets.
This doesn't have an effect in the github markdown renderer, but in some other renderers/templates, this leads them to be independently copy-pastable. In particular, the markdown rendering that Google uses internally has a copy button for each code snippet, which, before this change, would copy both lines. Bad copy button, no cookie! After this change, there will be two such buttons, one per line, and clicking a copy button will copy only the one snippet it is next to, and not the other. This is desirable because nobody will ever want to copy both lines, only one or the other.
PiperOrigin-RevId: 276079009
Diffstat (limited to 'googletest/docs')
-rw-r--r-- | googletest/docs/advanced.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index 5c34d26..ce8644e 100644 --- a/googletest/docs/advanced.md +++ b/googletest/docs/advanced.md @@ -918,6 +918,8 @@ the `SCOPED_TRACE` macro or the `ScopedTrace` utility: ```c++ SCOPED_TRACE(message); +``` +```c++ ScopedTrace trace("file_path", line_number, message); ``` |