preprocessor

package
v0.35.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 19 Imported by: 0

Documentation

Index

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

func GCC

func GCC(sourceFilePath *paths.Path, targetFilePath *paths.Path, includes paths.PathList, buildProperties *properties.Map) ([]byte, []byte, 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(sk *sketch.Sketch, buildPath *paths.Path, includeFolders paths.PathList, lineOffset int, buildProperties *properties.Map, onlyUpdateCompilationDatabase bool) ([]byte, []byte, error)

PreprocessSketchWithArduinoPreprocessor performs preprocessing of the arduino sketch using arduino-preprocessor (https://github.com/arduino/arduino-preprocessor).

func PreprocessSketchWithCtags

func PreprocessSketchWithCtags(sketch *sketch.Sketch, buildPath *paths.Path, includes paths.PathList, lineOffset int, buildProperties *properties.Map, onlyUpdateCompilationDatabase bool) ([]byte, []byte, error)

PreprocessSketchWithCtags performs preprocessing of the arduino sketch using CTags.

func RunCTags

func RunCTags(sourceFile *paths.Path, buildProperties *properties.Map) ([]byte, []byte, error)

RunCTags performs a run of ctags on the given source file. Returns the ctags output and the stderr contents.

Types

This section is empty.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL