Skip to content

Commit bea1361

Browse files
committed
Moved CTags parser out of legacy
1 parent 7fd1a7f commit bea1361

23 files changed

+4
-3
lines changed

legacy/builder/ctags/ctags_parser_test.go renamed to arduino/builder/preprocessor/ctags/ctags_parser_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
)
2626

2727
func produceTags(t *testing.T, filename string) []*CTag {
28-
bytes, err := os.ReadFile(filepath.Join("test_data", filename))
28+
bytes, err := os.ReadFile(filepath.Join("testdata", filename))
2929
require.NoError(t, err)
3030

3131
parser := CTagsParser{}

legacy/builder/ctags/ctags_to_prototypes.go renamed to arduino/builder/preprocessor/ctags/ctags_to_prototypes.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import (
2020
"strings"
2121
)
2222

23+
// Prototype is a C++ prototype generated from ctags output
2324
type Prototype struct {
2425
FunctionName string
2526
File string

legacy/builder/ctags/ctags_to_prototypes_test.go renamed to arduino/builder/preprocessor/ctags/ctags_to_prototypes_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ import (
2525
)
2626

2727
func producePrototypes(t *testing.T, filename string, mainFile string) ([]*Prototype, int) {
28-
bytes, err := os.ReadFile(filepath.Join("test_data", filename))
28+
bytes, err := os.ReadFile(filepath.Join("testdata", filename))
2929
require.NoError(t, err)
3030

3131
parser := &CTagsParser{}

legacy/builder/prototypes_adder.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ import (
2020
"strconv"
2121
"strings"
2222

23+
"github.com/arduino/arduino-cli/arduino/builder/preprocessor/ctags"
2324
"github.com/arduino/arduino-cli/arduino/sketch"
2425
"github.com/arduino/arduino-cli/legacy/builder/constants"
25-
"github.com/arduino/arduino-cli/legacy/builder/ctags"
2626
"github.com/arduino/arduino-cli/legacy/builder/utils"
2727
)
2828

0 commit comments

Comments
 (0)