Method and device for automatically optimizing and prompting code annotation
The invention relates to a method and a device for automatically optimizing and prompting code annotations. The method mainly comprises the following steps: matching a function name and a historical version number of a current function with a function name and a historical version number in a histor...
Gespeichert in:
Hauptverfasser: | , , |
---|---|
Format: | Patent |
Sprache: | chi ; eng |
Schlagworte: | |
Online-Zugang: | Volltext bestellen |
Tags: |
Tag hinzufügen
Keine Tags, Fügen Sie den ersten Tag hinzu!
|
Zusammenfassung: | The invention relates to a method and a device for automatically optimizing and prompting code annotations. The method mainly comprises the following steps: matching a function name and a historical version number of a current function with a function name and a historical version number in a historical database, and generating a first group of code annotations according to similarity; matching the internal code of the current function with the code in the historical database, and generating a second group of code annotations according to the similarity; and comparing and screening the first group of code annotations and the second group of code annotations to obtain a to-be-selected group of code annotations for final selection. According to the method, a part of historical functions closest to the current function in the historical database and code annotations of the historical functions can be screened for a developer and a maintainer to select, and the code annotation efficiency of the developer and the |
---|