Skip to content

Commit 94743d2

Browse files
[SYCLomatic][DOC][NFC] Update user-defined rule doc for rule templates/examples (#1987)
Signed-off-by: Huang, Andy <[email protected]> Co-authored-by: Jiang, Zhiwei <[email protected]>
1 parent 486da12 commit 94743d2

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

docs/dev_guide/migration/migration-rules.rst

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,3 +259,25 @@ output source code:
259259
260260
int *ptr, *ptr2;
261261
int * new_ptr = bar(*ptr, 30);
262+
263+
264+
More Examples and Rule Templates
265+
--------------------------------------------------------
266+
267+
A set of rule examples that can be used as templates to implement new rules are
268+
available in the *extensions/rule_templates* folder on the installation path of
269+
the tool.
270+
271+
.. code-block:: bash
272+
273+
extensions
274+
├── rule_templates
275+
├── api_rule.yaml
276+
├── class_rule.yaml
277+
├── disable_rule.yaml
278+
├── enum_rule.yaml
279+
├── header_rule.yaml
280+
├── helper_function_rule.yaml
281+
├── macro_rule.yaml
282+
├── pattern_rewrite_rule.yaml
283+
└── type_rule.yaml

0 commit comments

Comments
 (0)