Skip to content

Commit f1fe3ba

Browse files
committed
Removed temporary CTags task
Signed-off-by: Cristian Maglie <[email protected]>
1 parent 91a9a55 commit f1fe3ba

File tree

3 files changed

+10
-18
lines changed

3 files changed

+10
-18
lines changed

src/arduino.cc/builder/container_add_prototypes.go

-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ func (s *ContainerAddPrototypes) Run(ctx *types.Context) error {
4848
&FilterSketchSource{Source: &ctx.SourceGccMinusE},
4949
&CTagsTargetFileSaver{Source: &ctx.SourceGccMinusE, TargetFileName: constants.FILE_CTAGS_TARGET_FOR_GCC_MINUS_E},
5050
&ctags.CTagsRunner{},
51-
&ctags.CTags{},
5251
&PrototypesAdder{},
5352
&SketchSaver{},
5453
}

src/arduino.cc/builder/ctags/command.go

-16
This file was deleted.

src/arduino.cc/builder/ctags/ctags_runner.go

+10-1
Original file line numberDiff line numberDiff line change
@@ -30,11 +30,12 @@
3030
package ctags
3131

3232
import (
33+
"fmt"
34+
3335
"arduino.cc/builder/constants"
3436
"arduino.cc/builder/i18n"
3537
"arduino.cc/builder/types"
3638
"arduino.cc/builder/utils"
37-
"fmt"
3839
)
3940

4041
type CTagsRunner struct{}
@@ -71,5 +72,13 @@ func (s *CTagsRunner) Run(ctx *types.Context) error {
7172

7273
ctx.CTagsOutput = string(sourceBytes)
7374

75+
parser := &CTagsParser{}
76+
ctx.CTagsOfPreprocessedSource = parser.Parse(ctx.CTagsOutput)
77+
protos, line := parser.GeneratePrototypes()
78+
if line != -1 {
79+
ctx.PrototypesLineWhereToInsert = line
80+
}
81+
ctx.Prototypes = protos
82+
7483
return nil
7584
}

0 commit comments

Comments
 (0)