[all-commits] [llvm/llvm-project] 834526: [clang] Abstract away string allocation in command...
Jan Svoboda via All-commits
all-commits at lists.llvm.org
Thu Aug 3 20:35:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 83452650490eb1021939129682b01fcdff34c691
https://github.com/llvm/llvm-project/commit/83452650490eb1021939129682b01fcdff34c691
Author: Jan Svoboda <jan_svoboda at apple.com>
Date: 2023-08-03 (Thu, 03 Aug 2023)
Changed paths:
M clang/include/clang/Frontend/CompilerInvocation.h
M clang/lib/Frontend/CompilerInvocation.cpp
Log Message:
-----------
[clang] Abstract away string allocation in command line generation
This patch abstracts away the string allocation and vector push-back from command line generation. Instead, **all** generated arguments are passed into `ArgumentConsumer`, which may choose to do the string allocation and vector push-back, or something else entirely.
Reviewed By: benlangmuir
Differential Revision: https://reviews.llvm.org/D157046
More information about the All-commits
mailing list