-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add support for C++ style forward declares.
In cimple, `struct X;` will now mean the same as `typedef struct X X;`, which is (roughly) the same behaviour as in C++. This is only to support having plain `struct X;` declarations where we put our comments vs. having the typedefs surrounded by ifdefs for C99 reasons (benign typedef redefinitions are a C11 feature).
- Loading branch information
Showing
4 changed files
with
36 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
--- | ||
version: 2 | ||
|
||
workflows: | ||
version: 2 | ||
circleci: | ||
jobs: | ||
- bazel-opt | ||
|
||
jobs: | ||
bazel-opt: | ||
working_directory: /tmp/cirrus-ci-build | ||
docker: | ||
- image: toxchat/toktok-stack:latest-release | ||
|
||
steps: | ||
- checkout | ||
- run: /src/workspace/tools/inject-repo hs-cimple | ||
- run: cd /src/workspace && bazel test -k //hs-cimple/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
--- | ||
bazel-opt_task: | ||
container: | ||
image: toxchat/toktok-stack:latest-release | ||
cpu: 2 | ||
memory: 6G | ||
configure_script: | ||
- /src/workspace/tools/inject-repo hs-cimple | ||
test_all_script: | ||
- cd /src/workspace && bazel test -k | ||
--config=ci | ||
//hs-cimple/... | ||
# --- | ||
# bazel-opt_task: | ||
# container: | ||
# image: toxchat/toktok-stack:latest-release | ||
# cpu: 2 | ||
# memory: 6G | ||
# configure_script: | ||
# - /src/workspace/tools/inject-repo hs-cimple | ||
# test_all_script: | ||
# - cd /src/workspace && bazel test -k | ||
# --config=ci | ||
# //hs-cimple/... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters