Skip to content

Commit

Permalink
Integrate LLVM at llvm/llvm-project@e5a41f0afc15
Browse files Browse the repository at this point in the history
Updates LLVM usage to match
[e5a41f0afc15](llvm/llvm-project@e5a41f0afc15)

PiperOrigin-RevId: 646067665
Change-Id: I6319525f25552ec83fbe81613e0fc2dd81f1fe11
  • Loading branch information
d0k authored and copybara-github committed Jun 24, 2024
1 parent 470d04f commit f09a640
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sandboxed_api/tools/clang_generator/compilation_database.cc
Original file line number Diff line number Diff line change
Expand Up @@ -154,24 +154,24 @@ llvm::Error OptionsParser::init(int& argc, const char** argv,
const char* overview) {
static auto* build_path = new llvm::cl::opt<std::string>(
"p", llvm::cl::desc("Build path"), llvm::cl::Optional,
llvm::cl::cat(category), llvm::cl::sub(*llvm::cl::AllSubCommands));
llvm::cl::cat(category), llvm::cl::sub(llvm::cl::SubCommand::getAll()));

static auto* source_paths = new llvm::cl::list<std::string>(
llvm::cl::Positional, llvm::cl::desc("<source0> [... <sourceN>]"),
occurrences_flag, llvm::cl::cat(category),
llvm::cl::sub(*llvm::cl::AllSubCommands));
llvm::cl::sub(llvm::cl::SubCommand::getAll()));

static auto* args_after = new llvm::cl::list<std::string>(
"extra-arg",
llvm::cl::desc(
"Additional argument to append to the compiler command line"),
llvm::cl::cat(category), llvm::cl::sub(*llvm::cl::AllSubCommands));
llvm::cl::cat(category), llvm::cl::sub(llvm::cl::SubCommand::getAll()));

static auto* args_before = new llvm::cl::list<std::string>(
"extra-arg-before",
llvm::cl::desc(
"Additional argument to prepend to the compiler command line"),
llvm::cl::cat(category), llvm::cl::sub(*llvm::cl::AllSubCommands));
llvm::cl::cat(category), llvm::cl::sub(llvm::cl::SubCommand::getAll()));

llvm::cl::ResetAllOptionOccurrences();

Expand Down

0 comments on commit f09a640

Please sign in to comment.