Skip to content

Commit 11efa53

Browse files
committed
Skip empty prototype generation
Signed-off-by: Cristian Maglie <c.maglie@arduino.cc>
1 parent 3cad689 commit 11efa53

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/arduino.cc/builder/ctags_to_prototypes.go

+3
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,9 @@ func firstFunctionAtLine(tags []*types.CTag) int {
108108
func toPrototypes(tags []*types.CTag) []*types.Prototype {
109109
prototypes := []*types.Prototype{}
110110
for _, tag := range tags {
111+
if strings.TrimSpace(tag.Prototype) == "" {
112+
continue
113+
}
111114
if !tag.SkipMe {
112115
prototype := &types.Prototype{
113116
FunctionName: tag.FunctionName,

0 commit comments

Comments
 (0)