[all-commits] [llvm/llvm-project] 788463: [pseudo-gen] Add -o flag, make --grammar required
Nico Weber via All-commits
all-commits at lists.llvm.org
Wed May 25 06:12:01 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 788463e72af847d11476793fdd5d57a104b18b3d
https://github.com/llvm/llvm-project/commit/788463e72af847d11476793fdd5d57a104b18b3d
Author: Nico Weber <thakis at chromium.org>
Date: 2022-05-25 (Wed, 25 May 2022)
Changed paths:
M clang-tools-extra/pseudo/gen/Main.cpp
M clang-tools-extra/pseudo/include/CMakeLists.txt
Log Message:
-----------
[pseudo-gen] Add -o flag, make --grammar required
Virtually all LLVM tools accept a `-o` flag, so add one. This will make it
possible to possibly add a --write-if-changed flag later. It also makes it
so that the file isn't partially written if the tool oesn't run successfully.
Marking --grammar as `Required` allows removing some manual
verification code for it.
Differential Revision: https://reviews.llvm.org/D126373
More information about the All-commits
mailing list