#
212833ce |
| 01-Feb-2019 |
James Henderson <jh7370@my.bristol.ac.uk> |
Revert r352750.
This was causing a build bot failure: http://green.lab.llvm.org/green/job/clang-stage2-Rthinlto/15346/
llvm-svn: 352848
|
#
140f75f6 |
| 31-Jan-2019 |
James Henderson <jh7370@my.bristol.ac.uk> |
[CommandLine] Improve help text for cl::values style options
In order to make an option value truly optional, both the ValueOptional and an empty-named value are required. This empty-named value app
[CommandLine] Improve help text for cl::values style options
In order to make an option value truly optional, both the ValueOptional and an empty-named value are required. This empty-named value appears in the command-line help text, which is not ideal.
This change improves the help text for these sort of options in a number of ways: 1) ValueOptional options with an empty-named value now print their help text twice: both without and then with '=<value>' after the name. The latter version then lists the allowed values after it. 2) Empty-named values with no help text in ValueOptional options are not listed in the permitted values. 3) Otherwise empty-named options are printed as =<empty> rather than simply '='. 4) Option values without help text do not have the '-' separator printed.
It also tweaks the llvm-symbolizer -functions help text to not print a trailing ':' as that looks bad combined with 1) above.
Reviewed by: thopre, ruiu
Differential Revision: https://reviews.llvm.org/D57030
llvm-svn: 352750
show more ...
|
#
5cb11930 |
| 27-Jan-2019 |
Thomas Preud'homme <thomasp@graphcore.ai> |
Revert "Add support for prefix-only CLI options"
This reverts commit r351038.
llvm-svn: 352310
|
Revision tags: llvmorg-8.0.0-rc1 |
|
#
2946cd70 |
| 19-Jan-2019 |
Chandler Carruth <chandlerc@gmail.com> |
Update the file headers across all of the LLVM projects in the monorepo to reflect the new license.
We understand that people may be surprised that we're moving the header entirely to discuss the ne
Update the file headers across all of the LLVM projects in the monorepo to reflect the new license.
We understand that people may be surprised that we're moving the header entirely to discuss the new license. We checked this carefully with the Foundation's lawyer and we believe this is the correct approach.
Essentially, all code in the project is now made available by the LLVM project under our new license, so you will see that the license headers include that license only. Some of our contributors have contributed code under our old license, and accordingly, we have retained a copy of our old license notice in the top-level files in each project and repository.
llvm-svn: 351636
show more ...
|
#
bc5e6ee8 |
| 14-Jan-2019 |
Thomas Preud'homme <thomasp@graphcore.ai> |
Add support for prefix-only CLI options
Summary: Add support for options that always prefix their value, giving an error if the value is in the next argument or if the option is given a value assign
Add support for prefix-only CLI options
Summary: Add support for options that always prefix their value, giving an error if the value is in the next argument or if the option is given a value assignment (ie. opt=val). This is the desired behavior for the -D option of FileCheck for instance.
Copyright: - Linaro (changes in version 2 of revision D55940) - GraphCore (changes in later versions and introduced when creating D56549)
Reviewers: jdenny
Subscribers: llvm-commits, probinson, kristina, hiraditya, JonChesterfield
Differential Revision: https://reviews.llvm.org/D56549
llvm-svn: 351038
show more ...
|
Revision tags: llvmorg-7.0.1, llvmorg-7.0.1-rc3, llvmorg-7.0.1-rc2, llvmorg-7.0.1-rc1, llvmorg-7.0.0, llvmorg-7.0.0-rc3, llvmorg-7.0.0-rc2, llvmorg-7.0.0-rc1, llvmorg-6.0.1, llvmorg-6.0.1-rc3 |
|
#
12ba9ec9 |
| 13-Jun-2018 |
Hans Wennborg <hans@hanshq.net> |
Do not enforce absolute path argv0 in windows
Even if we support no-canonical-prefix on clang-cl(https://reviews.llvm.org/D47480), argv0 becomes absolute path in clang-cl and that embeds absolute pa
Do not enforce absolute path argv0 in windows
Even if we support no-canonical-prefix on clang-cl(https://reviews.llvm.org/D47480), argv0 becomes absolute path in clang-cl and that embeds absolute path in /showIncludes.
This patch removes such full path normalization from InitLLVM on windows, and that removes absolute path from clang-cl output (obj/stdout/stderr) when debug flag is disabled.
Patch by Takuto Ikuta!
Differential Revision https://reviews.llvm.org/D47578
llvm-svn: 334602
show more ...
|
Revision tags: llvmorg-6.0.1-rc2 |
|
#
ec8598ef |
| 15-May-2018 |
Benjamin Kramer <benny.kra@googlemail.com> |
Use perfect forwarding to deduplicate code in unit test. NFC.
llvm-svn: 332388
|
#
5390e369 |
| 15-May-2018 |
Eric Liu <ioeric@google.com> |
Fix broken asan Support tests
The asan failures were caught in google internal asan tests after r332311 o Make StackOption support cl::list o Rememeber to removeArguments for cl::alias in tests.
ll
Fix broken asan Support tests
The asan failures were caught in google internal asan tests after r332311 o Make StackOption support cl::list o Rememeber to removeArguments for cl::alias in tests.
llvm-svn: 332354
show more ...
|
#
8248d7c6 |
| 14-May-2018 |
Keno Fischer <keno@alumni.harvard.edu> |
[CommandLine] Error message for incorrect PositionalEatArgs usage
Summary: bugpoint has several options specified as `PositionalEatArgs` to pass options through to the underlying tool, e.g. `-tool-a
[CommandLine] Error message for incorrect PositionalEatArgs usage
Summary: bugpoint has several options specified as `PositionalEatArgs` to pass options through to the underlying tool, e.g. `-tool-args`. The `-help` message suggests the usage is: `-tool-args=<string>`. However, this is misleading, because that's not how these arguments work. Rather than taking a value, the option consumes all positional arguments until the next recognized option (or all arguments if `--` is specified at some point). To make this slightly clearer, instead print the help as: ``` -tool-args <string>... - <tool arguments>... ``` Additionally, add an error if the user attempts to use a `PositionalEatArgs` argument with a value, instead of silently ignoring it. Example: ``` ./bin/bugpoint -tool-args=-mpcu=skylake-avx512 bugpoint: for the -tool-args option: This argument does not take a value. Instead, it consumes any positional arguments until the next recognized option. ```
Reviewed By: aprantl Differential Revision: https://reviews.llvm.org/D46787
llvm-svn: 332311
show more ...
|
Revision tags: llvmorg-6.0.1-rc1 |
|
#
a8b32dec |
| 07-Apr-2018 |
Vitaly Buka <vitalybuka@google.com> |
Fix stack-use-after-scope in test previously hidden by -fmerge-all-constants
llvm-svn: 329489
|
Revision tags: llvmorg-5.0.2, llvmorg-5.0.2-rc2, llvmorg-5.0.2-rc1 |
|
#
430c7ff7 |
| 05-Mar-2018 |
Dmitry Mikulin <dmitry.mikulin@sony.com> |
On Windows we need to be able to process response files with Windows-style path names.
Differential Revision: https://reviews.llvm.org/D43988
llvm-svn: 326737
|
Revision tags: llvmorg-6.0.0, llvmorg-6.0.0-rc3, llvmorg-6.0.0-rc2, llvmorg-6.0.0-rc1 |
|
#
9f0ac82f |
| 30-Dec-2017 |
Serge Pavlov <sepavloff@gmail.com> |
Added support for reading configuration files
Configuration file is read as a response file in which file names in the nested constructs `@file` are resolved relative to the directory where the incl
Added support for reading configuration files
Configuration file is read as a response file in which file names in the nested constructs `@file` are resolved relative to the directory where the including file resides. Lines in which the first non-whitespace character is '#' are considered as comments and are skipped. Trailing backslashes are used to concatenate lines in the same way as they are used in shell scripts.
Differential Revision: https://reviews.llvm.org/D24926
llvm-svn: 321586
show more ...
|
#
c15a438a |
| 30-Dec-2017 |
Serge Pavlov <sepavloff@gmail.com> |
Reverted 321580: Added support for reading configuration files
It caused buildbot fails.
llvm-svn: 321582
|
#
0c1981ea |
| 30-Dec-2017 |
Serge Pavlov <sepavloff@gmail.com> |
Added support for reading configuration files
Configuration file is read as a response file in which file names in the nested constructs `@file` are resolved relative to the directory where the incl
Added support for reading configuration files
Configuration file is read as a response file in which file names in the nested constructs `@file` are resolved relative to the directory where the including file resides. Lines in which the first non-whitespace character is '#' are considered as comments and are skipped. Trailing backslashes are used to concatenate lines in the same way as they are used in shell scripts.
Differential Revision: https://reviews.llvm.org/D24926
llvm-svn: 321580
show more ...
|
Revision tags: llvmorg-5.0.1, llvmorg-5.0.1-rc3, llvmorg-5.0.1-rc2, llvmorg-5.0.1-rc1, llvmorg-5.0.0, llvmorg-5.0.0-rc5, llvmorg-5.0.0-rc4 |
|
#
1587086f |
| 28-Aug-2017 |
Evgeny Mankov <evgeny.mankov@gmail.com> |
[Support][CommandLine] Add cl::Option::setDefault()
Add abstract virtual method setDefault() to class Option and implement it in its inheritors in order to be able to set all the options to its defa
[Support][CommandLine] Add cl::Option::setDefault()
Add abstract virtual method setDefault() to class Option and implement it in its inheritors in order to be able to set all the options to its default values in user's code without actually knowing all these options. For instance:
for (auto &OM : cl::getRegisteredOptions(*cl::TopLevelSubCommand)) { cl::Option *O = OM.second; O->setDefault(); }
Reviewed by: rampitec, Eugene.Zelenko, kasaurov
Differential Revision: http://reviews.llvm.org/D36877
llvm-svn: 311887
show more ...
|
Revision tags: llvmorg-5.0.0-rc3, llvmorg-5.0.0-rc2, llvmorg-5.0.0-rc1 |
|
#
8199dada |
| 20-Jun-2017 |
Saleem Abdulrasool <compnerd@compnerd.org> |
Support: chunk writing on Linux
This is a workaround for large file writes. It has been witnessed that write(2) failing with EINVAL (22) due to a large value (>2G). Thanks to James Knight for the
Support: chunk writing on Linux
This is a workaround for large file writes. It has been witnessed that write(2) failing with EINVAL (22) due to a large value (>2G). Thanks to James Knight for the help with coming up with a sane test case.
llvm-svn: 305846
show more ...
|
#
fcae62d6 |
| 15-Jun-2017 |
Galina Kistanova <gkistanova@gmail.com> |
Added braces to work around gcc warning in googletest: suggest explicit braces to avoid ambiguous 'else'. NFC.
llvm-svn: 305506
|
Revision tags: llvmorg-4.0.1, llvmorg-4.0.1-rc3 |
|
#
9a67b073 |
| 06-Jun-2017 |
Chandler Carruth <chandlerc@gmail.com> |
Re-sort #include lines for unittests. This uses a slightly modified clang-format (https://reviews.llvm.org/D33932) to keep primary headers at the top and handle new utility headers like 'gmock' consi
Re-sort #include lines for unittests. This uses a slightly modified clang-format (https://reviews.llvm.org/D33932) to keep primary headers at the top and handle new utility headers like 'gmock' consistently with other utility headers.
No other change was made. I did no manual edits, all of this is clang-format.
This should allow other changes to have more clear and focused diffs, and is especially motivated by moving some headers into more focused libraries.
llvm-svn: 304786
show more ...
|
Revision tags: llvmorg-4.0.1-rc2 |
|
#
3642e513 |
| 28-May-2017 |
Galina Kistanova <gkistanova@gmail.com> |
Reverted r304083 as it seems there is a desire to address this in the googletest.
llvm-svn: 304084
|
#
6cb62f72 |
| 28-May-2017 |
Galina Kistanova <gkistanova@gmail.com> |
Added braces to address gcc warning: suggest explicit braces to avoid ambiguous 'else' [-Wdangling-else]. NFC.
llvm-svn: 304083
|
Revision tags: llvmorg-4.0.1-rc1 |
|
#
e51ee066 |
| 15-Mar-2017 |
Eric Liu <ioeric@google.com> |
[Support][CommandLine] Make it possible to get error messages from ParseCommandLineOptions when ignoring errors.
Summary: Previously, ParseCommandLineOptions returns false and ignores error messages
[Support][CommandLine] Make it possible to get error messages from ParseCommandLineOptions when ignoring errors.
Summary: Previously, ParseCommandLineOptions returns false and ignores error messages when IgnoreErrors. It would be useful to also return error messages if users decide to check parsing result instead of having the program exit on error.
Reviewers: chandlerc, mehdi_amini, rnk
Reviewed By: rnk
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D30893
llvm-svn: 297810
show more ...
|
Revision tags: llvmorg-4.0.0, llvmorg-4.0.0-rc4, llvmorg-4.0.0-rc3, llvmorg-4.0.0-rc2, llvmorg-4.0.0-rc1, llvmorg-3.9.1, llvmorg-3.9.1-rc3, llvmorg-3.9.1-rc2, llvmorg-3.9.1-rc1 |
|
#
af20d5e3 |
| 01-Nov-2016 |
Serge Pavlov <sepavloff@gmail.com> |
Attempt to pacify buildbot
llvm-svn: 285676
|
#
6ac8e034 |
| 01-Nov-2016 |
Serge Pavlov <sepavloff@gmail.com> |
Allow resolving response file names relative to including file
If a response file included by construct @file itself includes a response file and that file is specified by relative file name, curren
Allow resolving response file names relative to including file
If a response file included by construct @file itself includes a response file and that file is specified by relative file name, current behavior is to resolve the name relative to the current working directory. The change adds additional flag to ExpandResponseFiles that may be used to resolve nested response file names relative to including file. With the new mode a set of related response files may be kept together and reference each other with short position independent names.
Differential Revision: https://reviews.llvm.org/D24917
llvm-svn: 285675
show more ...
|
#
27358cff |
| 05-Oct-2016 |
Dean Michael Berris <dberris@google.com> |
[Support][CommandLine] Add cl::getRegisteredSubcommands()
This should allow users of the library to get a range to iterate through all the subcommands that are registered to the global parser. This
[Support][CommandLine] Add cl::getRegisteredSubcommands()
This should allow users of the library to get a range to iterate through all the subcommands that are registered to the global parser. This allows users to define subcommands in libraries that self-register to have dispatch done at a different stage (like main). It allows for writing code like the following:
for (auto *S : cl::getRegisteredSubcommands()) { if (*S) { // Dispatch on S->getName(). } }
This change also contains tests that show this usage pattern.
Reviewers: zturner, dblaikie, echristo
Subscribers: llvm-commits, mehdi_amini
Differential Revision: https://reviews.llvm.org/D24489
llvm-svn: 283296
show more ...
|
#
e11b745b |
| 01-Oct-2016 |
Mehdi Amini <mehdi.amini@apple.com> |
Use StringRef in CommandLine Options handling (NFC)
llvm-svn: 283007
|