File tree Expand file tree Collapse file tree 1 file changed +9
-2
lines changed
cpp/ql/src/semmle/code/cpp Expand file tree Collapse file tree 1 file changed +9
-2
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,11 @@ import semmle.code.cpp.Location
22import semmle.code.cpp.Element
33
44/**
5- * A C/C++ comment.
5+ * A C/C++ comment. For example the comment in the following code:
6+ * ```
7+ * // C++ style single-line comment
8+ * ```
9+ * or a C style comment (which starts with `/*`).
610 */
711class Comment extends Locatable , @comment {
812 override string toString ( ) { result = this .getContents ( ) }
@@ -21,7 +25,10 @@ class CStyleComment extends Comment {
2125}
2226
2327/**
24- * A CPP style comment (one which starts with `//`).
28+ * A CPP style comment. For example the comment in the following code:
29+ * ```
30+ * // C++ style single-line comment
31+ * ```
2532 */
2633class CppStyleComment extends Comment {
2734 CppStyleComment ( ) {
You can’t perform that action at this time.
0 commit comments