Added support of configuration files
Configuration files store set of options and allow to apply all of them
in a simple way, just by selection of particular file. This change extends
CommandLine Library with functions that read such files.
Paths
| Differential D24926
Added support of configuration files ClosedPublic Authored by sepavloff on Sep 26 2016, 9:56 AM.
Details Summary Added support of configuration files Configuration files store set of options and allow to apply all of them
Diff Detail
Event Timelinesepavloff updated this object. ABataev added inline comments.
sepavloff added inline comments.
sepavloff marked 2 inline comments as done. Comment ActionsUpdated patch according to reviewer's notes. Comment Actions Updated patch Based on feedback on mail list added three function instead of cl::findConfigFile. mgorny added inline comments.
Comment Actions Updated patch Several small changes:
Comment Actions Updated patch
Comment Actions Updated patch Simplified the patch:
It is more convenient to read options from such variable rather than the
to the error text. Also the function readConfigFile now returns boolean value to indicate Comment Actions Simplified patch Configuration files are no more considered a feature of CommandLine Comment Actions Updated patch Support and tests for comments and line continuation are removed from Comment Actions Updated patch Processing comments in config files is now made in the function Comment Actions Could this patch be reviewed?
Comment Actions Updated patch Treatment of trailing backslashes is moved to tokenizeConfigFile. This revision is now accepted and ready to land.Dec 29 2017, 7:12 AM Closed by commit rL321580: Added support for reading configuration files (authored by sepavloff). · Explain WhyDec 30 2017, 12:16 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 128317 include/llvm/Support/CommandLine.h
lib/Support/CommandLine.cpp
unittests/Support/CommandLineTest.cpp
|
\brief tag is not required