trailofbits / vast

VAST is an experimental compiler pipeline designed for program analysis of C and C++. It provides a tower of IRs as MLIR dialects to choose the best fit representations for a program analysis or further program abstraction.
https://trailofbits.github.io/vast/
Apache License 2.0
368 stars 23 forks source link

Bring `vast-repl` up to date. #623

Closed lkorenc closed 2 weeks ago

lkorenc commented 2 weeks ago

Update vast-repl to use newer APIs. Backport some forgotten patches in the experimental branches - some of these features do not work yet, but there is no reason not to include them as we are already developing tower and we will need them in some form eventually.

github-actions[bot] commented 2 weeks ago

Cpp-Linter Report :warning:

Some files did not pass the configured checks!

clang-format reports: 11 file(s) not formatted - include/vast/repl/cli.hpp - include/vast/repl/command.hpp - include/vast/repl/command_base.hpp - include/vast/repl/common.hpp - include/vast/repl/config.hpp - include/vast/repl/pipeline.hpp - lib/vast/Frontend/Action.cpp - tools/vast-repl/cli.cpp - tools/vast-repl/codegen.cpp - tools/vast-repl/command.cpp - tools/vast-repl/config.cpp
clang-tidy reports: 6 concern(s) - **include/vast/repl/pipeline.hpp:9:27:** error: [clang-diagnostic-error] > use of undeclared identifier 'std' ```hpp 9 | using pass_name = std::string; | ^ ``` - **include/vast/repl/pipeline.hpp:10:30:** error: [clang-diagnostic-error] > use of undeclared identifier 'std' ```hpp 10 | using passname_ref = std::string_view; | ^ ``` - **include/vast/repl/pipeline.hpp:12:9:** error: [clang-diagnostic-error] > use of undeclared identifier 'std' ```hpp 12 | std::vector< pass_name > passes; | ^ ``` - **include/vast/repl/pipeline.hpp:12:22:** error: [clang-diagnostic-error] > use of undeclared identifier 'pass_name' ```hpp 12 | std::vector< pass_name > passes; | ^ ``` - **include/vast/repl/pipeline.hpp:15:9:** error: [clang-diagnostic-error] > use of undeclared identifier 'std' ```hpp 15 | std::vector< passname_ref > make_snapshot_after = {}; | ^ ``` - **include/vast/repl/pipeline.hpp:15:22:** error: [clang-diagnostic-error] > use of undeclared identifier 'passname_ref' ```hpp 15 | std::vector< passname_ref > make_snapshot_after = {}; | ^ ```

Have any feedback or feature suggestions? Share it here.