Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ParseLineMarker ¶
func ParseLineMarker(line string) *paths.Path
ParseLineMarker parses the given line as a gcc line marker and returns the contained filename.
func ParseString ¶
ParseString parse a string as emitted by the preprocessor. This is a string contained in double quotes, with any backslashes or quotes escaped with a backslash. If a valid string was present at the start of the given line, returns the unquoted string contents, the remainder of the line (everything after the closing "), and true. Otherwise, returns the empty string, the entire line and false.
func QuoteString ¶
QuoteString returns the given string as a quoted string for use with the C preprocessor. This adds double quotes around it and escapes any double quotes and backslashes in the string.
Types ¶
This section is empty.