Skip to content

Commit c06a53a

Browse files
committed
Add initial version of release notes and contributor's guide
1 parent 5323f41 commit c06a53a

File tree

2 files changed

+69
-0
lines changed

2 files changed

+69
-0
lines changed

CONTRIBUTING.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
# Guide for contributors
2+
3+
Scala Native Bindgen follows Scala Native's [contributing guidelines].
4+
Larger contributions should always begin by creating an issue to
5+
ensure that it is properly scoped.
6+
7+
Important to note is that all contributors must have signed the [Scala CLA].
8+
9+
[contributing guidelines]: http://www.scala-native.org/en/latest/contrib/contributing.html
10+
[Scala CLA]: https://www.lightbend.com/contribute/cla/scala
11+
12+
## Developer Workflow
13+
14+
Build the `scalaBindgen` tool:
15+
16+
```sh
17+
mkdir target
18+
cd target
19+
cmake ..
20+
make
21+
22+
# Alternatively rerun on change
23+
watchman-make -p '*.cpp' '*.h' --run 'make -C target'
24+
```
25+
26+
In another terminal, run the test suite:
27+
28+
```sh
29+
cd tests
30+
sbt ~test
31+
```
32+
33+
## Coding Guidelines
34+
35+
The C++ tool is built on Clang and Libtooling and should respect the conventions of
36+
LLVM and Clang tools. The code itself should adhere to the [LLVM Coding Standards],
37+
specifically:
38+
39+
- For code generation and error reporting use `llvm::outs()` and `llvm::errs()`.
40+
- [Use `\n` instead of `std::endl`](https://llvm.org/docs/CodingStandards.html#avoid-std-endl)
41+
and remember to flush when reporting errors.
42+
43+
[LLVM Coding Standards]: https://llvm.org/docs/CodingStandards.html

NEWS.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Release notes
2+
3+
## master
4+
5+
Improvements:
6+
7+
- Save results from AST visitor in an intermediate representation. [#6], [#10]
8+
- Add struct alloc helper. [mrRosset#3], [mrRosset#4]
9+
- Simplify the build to link against system installed Clang libraries. [mrRosset#2]
10+
- Use docker-compose to run tests against multiple LLVM versions on Travis. [#8], [#9]
11+
- Migrate the test suite to Scala and sbt. [#17]
12+
- Align code with LLVM Coding Standards. [#23]
13+
14+
[mrRosset#2]: https://github.com/mrRosset/scala-native-bindgen/pull/2
15+
[mrRosset#3]: https://github.com/mrRosset/scala-native-bindgen/issues/3
16+
[mrRosset#4]: https://github.com/mrRosset/scala-native-bindgen/pull/4
17+
[#6]: https://github.com/kornilova-l/scala-native-bindgen/issues/6
18+
[#8]: https://github.com/kornilova-l/scala-native-bindgen/pull/8
19+
[#9]: https://github.com/kornilova-l/scala-native-bindgen/issues/9
20+
[#10]: https://github.com/kornilova-l/scala-native-bindgen/pull/10
21+
[#17]: https://github.com/kornilova-l/scala-native-bindgen/pull/17
22+
23+
Based on work by [Marius Rosset][@mrRosset] done as part of a project at [EPFL].
24+
25+
[@mrRosset]: https://github.com/mrRosset
26+
[EPFL]: https://www.epfl.ch/

0 commit comments

Comments
 (0)