From aa1146da816954a87bdd6ad745d6281a529e0d90 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 22 Oct 2019 12:24:04 -0400 Subject: [PATCH] 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 --- googletest/docs/advanced.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/googletest/docs/advanced.md b/googletest/docs/advanced.md index 5c34d262..ce8644e4 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); ```