diff options
author | Ayke van Laethem <[email protected]> | 2019-11-22 11:15:23 +0100 |
---|---|---|
committer | Ron Evans <[email protected]> | 2019-11-25 09:32:03 +0100 |
commit | 6a1bb134f9dfddf915421d15c0bb6f8a5fcbfc25 (patch) | |
tree | 9ddf826609ba6e2fe1ae7438df10c581587d54df /cgo/libclang.go | |
parent | f0bb3c092d0c6b4aa639bb3d6e47e2234f329662 (diff) | |
download | tinygo-6a1bb134f9dfddf915421d15c0bb6f8a5fcbfc25.tar.gz tinygo-6a1bb134f9dfddf915421d15c0bb6f8a5fcbfc25.zip |
cgo: add tests for errors
This commit adds tests for CGo preprocessing. There are various errors
that can be reported while preprocessing, and they should integrate well
with the compiler (including accurate source location tracking).
Also allow CGo preprocessing to continue after Clang encountered an
error, for a better view of what happened.
Diffstat (limited to 'cgo/libclang.go')
-rw-r--r-- | cgo/libclang.go | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/cgo/libclang.go b/cgo/libclang.go index 336122a74..2e918a497 100644 --- a/cgo/libclang.go +++ b/cgo/libclang.go @@ -132,7 +132,6 @@ func (p *cgoPackage) parseFragment(fragment string, cflags []string, posFilename addDiagnostic(C.clang_getDiagnosticInSet(diagnostics, C.uint(j))) } } - return } ref := storedRefs.Put(p) |