Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor Clang AST building and fix typing in all representations #121

Merged
merged 59 commits into from
May 19, 2021

Conversation

surovic
Copy link
Contributor

@surovic surovic commented Mar 17, 2021

This PR aims to implement #6 and #39.

@surovic surovic self-assigned this Mar 17, 2021
* Adds .gitmodules
* Adds doctest as a submodule
* Adds `unittest/` that mirrors the folder structure of `rellic/`
* I really hope this one passes. I'm getting sick of the GH spam.
Replaces some CreateIntegerLiteral with ASTBuilder methods
* Replaced rest of CreateIntegerLiteral uses
* Replaced CreateNullPointerExpr
* Replaced CreateUndefExpr
* Replaced CreateTrue
* Introduces clang::Sema to ASTBuilder

* Implements unit tests fro ASTBuilder::CreateCStyleCast

* Implements first attempt at ASTBuilder::CreateCStyleCast

* Replaces usage clang::ASContext with clang::ASTUnit
* CreateVarDecl, DeclRefExpr, DeclStmt
* CreateUnaryOperator for UO_Deref and UO_AddrOf
* Misc unit test improvements
@surovic surovic marked this pull request as ready for review May 12, 2021 12:20
@pgoodman
Copy link
Collaborator

Merge at your earliest convenience :-)

@surovic surovic merged commit fec3539 into master May 19, 2021
@surovic surovic deleted the issue_6_astbuilder branch May 19, 2021 10:55
ekilmer added a commit that referenced this pull request May 29, 2021
* master:
  Fix links to cxx-common (#139)
  Fix constructor ambiguity error llvm::APInt in tests LLVM 11 (#138)
  Remove duplicate test run. CMake already runs both roundtrips.
  Refactor Clang AST building and fix typing in all representations (#121)
  Update anghabench-after-build.yml
  Disable 1M for now
  Update anghabench-after-build.yml
  Update anghabench-after-build.yml
  Run AnghaBench small runs in CI (#135)
  Add --install option to build script (#134)
  CI :Use v0.1.3 (latest) cxx-common prebuilt libraries (#133)
  Fixes a typo in IsSignExt() (#131)
  Adds handling of 128-bit integer literals (#130)
  Adds Z3 conversions from bool to bitvector sorts (#129)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants