From 03846df7c737b7624a83ea3b0bbb4b5ab89efd11 Mon Sep 17 00:00:00 2001 From: Francesco Bertolaccini Date: Thu, 21 Nov 2024 16:48:20 +0100 Subject: [PATCH] cc: Formatting. --- include/vast/Frontend/Options.hpp | 4 ++-- lib/vast/Frontend/Consumer.cpp | 4 +++- tools/detect-parsers/main.cpp | 1 + 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/include/vast/Frontend/Options.hpp b/include/vast/Frontend/Options.hpp index ac447914b5..d823387979 100644 --- a/include/vast/Frontend/Options.hpp +++ b/include/vast/Frontend/Options.hpp @@ -91,9 +91,9 @@ namespace vast::cc llvm::Twine disable(string_ref pipeline_name); - constexpr option_t show_locs = "show-locs"; + constexpr option_t show_locs = "show-locs"; constexpr option_t locs_as_meta_ids = "locs-as-meta-ids"; - constexpr option_t loc_attrs = "loc-attrs"; + constexpr option_t loc_attrs = "loc-attrs"; constexpr option_t disable_unsupported = "disable-unsupported"; diff --git a/lib/vast/Frontend/Consumer.cpp b/lib/vast/Frontend/Consumer.cpp index c3a1e7f00d..3550b916a4 100644 --- a/lib/vast/Frontend/Consumer.cpp +++ b/lib/vast/Frontend/Consumer.cpp @@ -294,7 +294,9 @@ namespace vast::cc { void vast_stream_consumer::print_mlir_string_format(owning_mlir_module_ref mod) { // FIXME: we cannot roundtrip prettyForm=true right now. mlir::OpPrintingFlags flags; - flags.enableDebugInfo(vargs.has_option(opt::show_locs), /* prettyForm */ !vargs.has_option(opt::loc_attrs)); + flags.enableDebugInfo( + vargs.has_option(opt::show_locs), /* prettyForm */ !vargs.has_option(opt::loc_attrs) + ); mod->print(*output_stream, flags); } diff --git a/tools/detect-parsers/main.cpp b/tools/detect-parsers/main.cpp index 053a16f27e..89440dc85f 100644 --- a/tools/detect-parsers/main.cpp +++ b/tools/detect-parsers/main.cpp @@ -41,6 +41,7 @@ namespace vast { VAST_FATAL("Failed to open file for SARIF output: {}", ec.message()); } gap::sarif::root root{ + .version = gap::sarif::version::k2_1_0, .runs{ { {