Previously it was just a combination of heuristics to try to fit a
constant in an *ast.BasicLit. For more complex expressions, this is not
enough.
This change also introduces proper syntax error with locations, if
parsing a constant failed. For example, this will print a real error
message with source location:
#define FOO 5)
|
||
|---|---|---|
| .. | ||
| testdata | ||
| cgo.go | ||
| cgo_test.go | ||
| const.go | ||
| const_test.go | ||
| libclang.go | ||
| libclang_config.go | ||
| libclang_stubs.c | ||
| sync.go | ||