diff options
author | 2017-01-18 11:32:11 -0800 | |
---|---|---|
committer | 2017-01-18 11:48:23 -0800 | |
commit | 0c46c7bcb05b1502bda869db371bee198d5be28a (patch) | |
tree | 09b972af48f67690af32795c346599bae57ad7a5 /tensorflow/cc/framework/cc_op_gen.cc | |
parent | c25cedd8ab96ed3e2f7b53690ed53f2020ba5d14 (diff) |
Switch to doxygen-friendly comments in generated C++ op code.
Change: 144859450
Diffstat (limited to 'tensorflow/cc/framework/cc_op_gen.cc')
-rw-r--r-- | tensorflow/cc/framework/cc_op_gen.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tensorflow/cc/framework/cc_op_gen.cc b/tensorflow/cc/framework/cc_op_gen.cc index 3586e93ecf..a4da3aa8e2 100644 --- a/tensorflow/cc/framework/cc_op_gen.cc +++ b/tensorflow/cc/framework/cc_op_gen.cc @@ -76,9 +76,9 @@ string ToGuard(const std::string& path) { } // Change: Into: -// ABC // ABC -// // -// DEF // DEF +// ABC /// ABC +// /// +// DEF /// DEF string MakeComment(StringPiece text, StringPiece indent) { string ret; while (!text.empty()) { @@ -89,9 +89,9 @@ string MakeComment(StringPiece text, StringPiece indent) { if (text[newline] != ' ') last_non_space = newline; } if (last_non_space == -1) { - strings::StrAppend(&ret, indent, "//\n"); + strings::StrAppend(&ret, indent, "///\n"); } else { - strings::StrAppend(&ret, indent, "// ", + strings::StrAppend(&ret, indent, "/// ", text.substr(0, last_non_space + 1), "\n"); } text.remove_prefix(newline + 1); |