Documentation
¶
Index ¶
- Variables
- func RunCTags(ctx context.Context, sourceFile *paths.Path, buildProperties *properties.Map) ([]byte, []byte, string, error)
- type Result
- func GCC(ctx context.Context, sourceFilePath, targetFilePath *paths.Path, ...) (Result, error)
- func PreprocessSketchWithArduinoPreprocessor(ctx context.Context, sk *sketch.Sketch, buildPath *paths.Path, ...) (*Result, error)
- func PreprocessSketchWithCtags(ctx context.Context, sketch *sketch.Sketch, buildPath *paths.Path, ...) (*Result, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var DebugPreprocessor bool
DebugPreprocessor when set to true the CTags preprocessor will output debugging info to stdout this is useful for unit-testing to provide more infos
Functions ¶
Types ¶
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
func GCC ¶
func GCC( ctx context.Context, sourceFilePath, targetFilePath *paths.Path, includes paths.PathList, buildProperties *properties.Map, ) (Result, error)
GCC performs a run of the gcc preprocess (macro/includes expansion). The function outputs the result to targetFilePath. Returns the stdout/stderr of gcc if any.
func PreprocessSketchWithArduinoPreprocessor ¶
func PreprocessSketchWithArduinoPreprocessor( ctx context.Context, sk *sketch.Sketch, buildPath *paths.Path, includeFolders paths.PathList, lineOffset int, buildProperties *properties.Map, onlyUpdateCompilationDatabase bool, ) (*Result, error)
PreprocessSketchWithArduinoPreprocessor performs preprocessing of the arduino sketch using arduino-preprocessor (https://github.com/arduino/arduino-preprocessor).
func PreprocessSketchWithCtags ¶
func PreprocessSketchWithCtags( ctx context.Context, sketch *sketch.Sketch, buildPath *paths.Path, includes paths.PathList, lineOffset int, buildProperties *properties.Map, onlyUpdateCompilationDatabase, verbose bool, ) (*Result, error)
PreprocessSketchWithCtags performs preprocessing of the arduino sketch using CTags.
Click to show internal directories.
Click to hide internal directories.