Skip to content

Commit

Permalink
cc: Formatting.
Browse files Browse the repository at this point in the history
  • Loading branch information
frabert committed Nov 21, 2024
1 parent 627701e commit 03846df
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 2 additions & 2 deletions include/vast/Frontend/Options.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down
4 changes: 3 additions & 1 deletion lib/vast/Frontend/Consumer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
1 change: 1 addition & 0 deletions tools/detect-parsers/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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{
{
{
Expand Down

0 comments on commit 03846df

Please sign in to comment.