cpp

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Nov 28, 2023 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Std11 = New("cpp11", "C++ 11", "c++11").(Cpp)
View Source
var Std14 = New("cpp14", "C++ 14", "c++14").(Cpp)
View Source
var Std17 = New("cpp17", "C++ 17", "c++17").(Cpp)

Functions

func AutoCompile

func AutoCompile(fs afero.Fs, s language.Sandbox, workDir, src, dst string) error

func ExtractHeaderNames

func ExtractHeaderNames(fs afero.Fs, dir string, src []byte) []string

func New

func New(id, name, ver string) language.Language

Types

type Cpp

type Cpp struct {
	// contains filtered or unexported fields
}

func (Cpp) Compile

func (c Cpp) Compile(s language.Sandbox, r language.File, w io.Writer, e io.Writer, extras []language.File) error

func (Cpp) DefaultFileName

func (c Cpp) DefaultFileName() string

func (Cpp) Id

func (c Cpp) Id() string

func (Cpp) Name

func (c Cpp) Name() string

func (Cpp) Run

func (Cpp) Run(s language.Sandbox, binary, stdin io.Reader, stdout io.Writer, tl time.Duration, ml int) (language.Status, error)

func (Cpp) Test

func (c Cpp) Test(s language.Sandbox) error

Jump to

Keyboard shortcuts

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