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
391 stars 23 forks source link

Fix version generation #696

Closed xlauko closed 1 month ago

github-actions[bot] commented 1 month ago

Cpp-Linter Report :warning:

Some files did not pass the configured checks!

clang-format reports: 31 file(s) not formatted - include/vast/ABI/MLIRTypeInfo.hpp - include/vast/CodeGen/CodeGenDriver.hpp - include/vast/Dialect/Core/CoreOps.hpp - include/vast/Dialect/Core/SymbolTable.hpp - include/vast/Interfaces/SymbolInterface.hpp - include/vast/Interfaces/SymbolRefInterface.hpp - include/vast/Interfaces/SymbolTableInterface.hpp - include/vast/Target/LLVMIR/Convert.hpp - include/vast/Util/Common.hpp - include/vast/Util/Pipeline.hpp - lib/vast/CodeGen/CodeGenDriver.cpp - lib/vast/CodeGen/DataLayout.cpp - lib/vast/Conversion/ABI/EmitABI.cpp - lib/vast/Conversion/Core/ToLLVM.cpp - lib/vast/Conversion/ToLLVM/IRsToLLVM.cpp - lib/vast/Dialect/Core/CoreOps.cpp - lib/vast/Dialect/Core/SymbolTable.cpp - lib/vast/Dialect/HighLevel/HighLevelTypes.cpp - lib/vast/Dialect/HighLevel/HighLevelVar.cpp - lib/vast/Dialect/HighLevel/Transforms/LowerEnums.cpp - lib/vast/Dialect/LowLevel/Transforms/ToLLVM.cpp - lib/vast/Frontend/Action.cpp - lib/vast/Frontend/Consumer.cpp - lib/vast/Interfaces/SymbolRefInterface.cpp - lib/vast/Interfaces/SymbolTableInterface.cpp - lib/vast/Target/LLVMIR/Convert.cpp - lib/vast/Util/Pipeline.cpp - tools/vast-query/vast-query.cpp - tools/vast-repl/codegen.cpp - tools/vast-repl/command.cpp - tools/vast-repl/state.cpp
clang-tidy reports: 23 concern(s) - **include/vast/Conversion/ABI/AggregateTypes.hpp:44:45:** error: [clang-diagnostic-error] > unknown type name 'mlir_type' ```hpp 44 | std::size_t align_paddding_size(mlir_type type) { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:53:16:** error: [clang-diagnostic-error] > unknown type name 'mlir_type' ```hpp 53 | static mlir_type mk_int_type(mcontext_t &mctx, auto size) { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:53:38:** error: [clang-diagnostic-error] > unknown type name 'mcontext_t' ```hpp 53 | static mlir_type mk_int_type(mcontext_t &mctx, auto size) { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:62:28:** error: [clang-diagnostic-error] > unknown type name 'mlir_type' ```hpp 62 | bool needs_nesting(mlir_type type) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:67:9:** error: [clang-diagnostic-error] > use of undeclared identifier 'gap' ```hpp 67 | gap::generator< mlir_value > field_ptrs( | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:67:25:** error: [clang-diagnostic-error] > use of undeclared identifier 'mlir_value' ```hpp 67 | gap::generator< mlir_value > field_ptrs( | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:68:13:** error: [clang-diagnostic-error] > use of undeclared identifier 'hl' ```hpp 68 | hl::ArrayType array_type, mlir_value value, | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:68:39:** error: [clang-diagnostic-error] > unknown type name 'mlir_value' ```hpp 68 | hl::ArrayType array_type, mlir_value value, | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:83:9:** error: [clang-diagnostic-error] > use of undeclared identifier 'gap' ```hpp 83 | gap::generator< mlir_value > field_ptrs( | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:83:25:** error: [clang-diagnostic-error] > use of undeclared identifier 'mlir_value' ```hpp 83 | gap::generator< mlir_value > field_ptrs( | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:84:13:** error: [clang-diagnostic-error] > use of undeclared identifier 'hl' ```hpp 84 | hl::RecordType record_type, mlir_value value, | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:84:41:** error: [clang-diagnostic-error] > unknown type name 'mlir_value' ```hpp 84 | hl::RecordType record_type, mlir_value value, | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:103:9:** error: [clang-diagnostic-error] > use of undeclared identifier 'gap' ```hpp 103 | gap::generator< mlir_value > field_ptrs(operation root, auto loc, auto &bld) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:103:25:** error: [clang-diagnostic-error] > use of undeclared identifier 'mlir_value' ```hpp 103 | gap::generator< mlir_value > field_ptrs(operation root, auto loc, auto &bld) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:103:49:** error: [clang-diagnostic-error] > unknown type name 'operation' ```hpp 103 | gap::generator< mlir_value > field_ptrs(operation root, auto loc, auto &bld) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:122:9:** error: [clang-diagnostic-error] > use of undeclared identifier 'gap' ```hpp 122 | gap::generator< mlir_type > fields(hl::ArrayType array_type) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:122:25:** error: [clang-diagnostic-error] > use of undeclared identifier 'mlir_type' ```hpp 122 | gap::generator< mlir_type > fields(hl::ArrayType array_type) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:122:44:** error: [clang-diagnostic-error] > use of undeclared identifier 'hl' ```hpp 122 | gap::generator< mlir_type > fields(hl::ArrayType array_type) const { | ^ ``` - **include/vast/Conversion/ABI/AggregateTypes.hpp:131:21:** error: [clang-diagnostic-error] > unknown type name 'mlir_type' ```hpp 131 | auto fields(mlir_type t, core::module mod) const { | ^ ``` - **include/vast/Conversion/TypeConverters/LLVMTypeConverter.hpp:5:1:** error: [clang-diagnostic-error] > unknown type name 'VAST_RELAX_WARNINGS' ```hpp 5 | VAST_RELAX_WARNINGS | ^ ``` - **include/vast/Conversion/TypeConverters/LLVMTypeConverter.hpp:15:1:** error: [clang-diagnostic-error] > unknown type name 'VAST_UNRELAX_WARNINGS' ```hpp 15 | VAST_UNRELAX_WARNINGS | ^ ``` - **include/vast/Interfaces/SymbolInterface.hpp:25:10:** error: [clang-diagnostic-error] > 'vast/Interfaces/SymbolInterface.h.inc' file not found ```hpp 25 | #include "vast/Interfaces/SymbolInterface.h.inc" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ``` - **include/vast/Interfaces/SymbolRefInterface.hpp:16:10:** error: [clang-diagnostic-error] > 'vast/Interfaces/SymbolRefInterface.h.inc' file not found ```hpp 16 | #include "vast/Interfaces/SymbolRefInterface.h.inc" | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ```

Have any feedback or feature suggestions? Share it here.