preprocessor

package
v0.21.5 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2018 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Analyze

func Analyze(inputFiles, clangFlags []string) (pp []byte, comments []program.Comment, err error)

Analyze - separation preprocessor code to part

func GetIncludeFullList added in v0.21.0

func GetIncludeFullList(inputFile string) (lines []string, err error)

GetIncludeFullList - Get full list of include files Example: $ clang -M -c triangle.c

triangle.o: triangle.c /usr/include/stdio.h /usr/include/features.h \
  /usr/include/stdc-predef.h /usr/include/x86_64-linux-gnu/sys/cdefs.h \
  /usr/include/x86_64-linux-gnu/bits/wordsize.h \
  /usr/include/x86_64-linux-gnu/gnu/stubs.h \
  /usr/include/x86_64-linux-gnu/gnu/stubs-64.h \
  / ........ and other

func GetIncludeListWithUserSource added in v0.21.0

func GetIncludeListWithUserSource(inputFiles, clangFlags []string) (lines []string, err error)

GetIncludeListWithUserSource - Get list of include files Example: $ clang -MM -c exit.c exit.o: exit.c tests.h

Types

This section is empty.

Jump to

Keyboard shortcuts

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