Skip to content

Commit 1a5f270

Browse files
authored
[SYCL][NFC] Fix attribute documentation formatting (#4803)
Doxygen reports following warning (treated as an error by CI system): > clang/docs/AttributeReference.rst:7004:Error in "code-block" directive: > maximum 1 argument(s) allowed, 5 supplied. > > .. code-block:: c++ > class __attribute__((sycl_special_class)) accessor { > The problem here seems to be that `code-block` mark must be followed by an empty line. This patch also fixes code indentation.
1 parent 3ef8c82 commit 1a5f270

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

clang/include/clang/Basic/AttrDocs.td

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -417,11 +417,11 @@ The types that own this attribute are excluded from device-copyable and other
417417
type-legalization steps.
418418

419419
.. code-block:: c++
420-
class __attribute__((sycl_special_class)) accessor {
421420

422-
private:
423-
void __init() {}
424-
};
421+
class __attribute__((sycl_special_class)) accessor {
422+
private:
423+
void __init() {}
424+
};
425425
}];
426426
}
427427

0 commit comments

Comments
 (0)