summaryrefslogtreecommitdiffstats
path: root/llvm/test/tools/llvm-mt
Commit message (Collapse)AuthorAgeFilesLines
* [llvm-mt] Use WithColor for printing errors.Jonas Devlieghere2018-06-233-5/+5
| | | | | | Use the WithColor helper from support to print errors. llvm-svn: 335416
* Change "UNSUPPORTED: windows" to be "UNSUPPORTED: system-windows" so that ↵Douglas Yung2018-02-085-5/+5
| | | | | | | | test is actually skipped on Windows. Reviewed by Paul Robinson llvm-svn: 324632
* [llvm-mt] Remove platform-specific path in testBrian Gesiak2018-01-051-1/+1
| | | | | | | | | | Summary: Remove a platform-specific path separator added to the llvm-mt help text test in https://reviews.llvm.org/D41732. Test Plan: `check-llvm` llvm-svn: 321881
* [Option] Add 'findNearest' method to catch typosBrian Gesiak2018-01-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: Add a method `OptTable::findNearest`, which allows users of OptTable to check user input for misspelled options. In addition, have llvm-mt check for misspelled options. For example, if a user invokes `llvm-mt /oyt:foo`, the error message will indicate that while an option named `/oyt:` does not exist, `/out:` does. The method ports the functionality of the `LookupNearestOption` method from LLVM CommandLine to libLLVMOption. This allows tools like Clang and Swift, which do not use CommandLine, to use this functionality to suggest similarly spelled options. As room for future improvement, the new method as-is cannot yet properly suggest nearby "joined" options -- that is, for an option string "-FozBar", where "-Foo" is the correct option name and "Bar" is the value being passed along with the misspelled option, this method will calculate an edit distance of 4, by deleting "Bar" and changing "z" to "o". It should instead calculate an edit distance of just 1, by changing "z" to "o" and recognizing "Bar" as a value. This commit includes a disabled test that expresses this limitation. Test Plan: `check-llvm` Reviewers: yamaguchi, v.g.vassilev, teemperor, ruiu, jroelofs Reviewed By: jroelofs Subscribers: jroelofs, llvm-commits Differential Revision: https://reviews.llvm.org/D41732 llvm-svn: 321877
* llvm-mt: Merge manifest namespaces.Eric Beckmann2017-08-1911-5/+131
| | | | | | | | | | | mt.exe performs a tree merge where certain element nodes are combined into one. This introduces the possibility of xml namespaces conflicting with each other. The original mt.exe has a hierarchy whereby certain namespace names can override others, and nodes that would then end up in ambigious namespaces have their namespaces explicitly defined. This namespace handles this merging process. llvm-svn: 311215
* Add test to reject merging of empty manifest.Eric Beckmann2017-07-272-2/+9
| | | | | | | | | | Reviewers: ruiu, rnk Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D35954 llvm-svn: 309317
* Diffing against a file that is itself used in the test seems to be a badEric Beckmann2017-07-261-1/+25
| | | | | | idea, because it might get locked down and rendered unopenable. llvm-svn: 309142
* Reapply "llvm-mt: implement simple merging of manifests, not factoring ↵Eric Beckmann2017-07-265-2/+90
| | | | | | | | | | namespaces. This time with correct #if. This reverts commit 9cf4eca0e0383040c1ff1416815c7f649650c2a0. llvm-svn: 309064
* Revert "llvm-mt: implement simple merging of manifests, not factoring ↵Eric Beckmann2017-07-255-90/+2
| | | | | | | | namespaces." This reverts commit 813308e240792ca70ed2f998f21df24a5061ada0. llvm-svn: 309050
* llvm-mt: implement simple merging of manifests, not factoring namespaces.Eric Beckmann2017-07-255-2/+90
| | | | | | | | | | | | Summary: Does a simple merge, where mergeable elements are combined, all others are appended. Does not apply trickly namespace rules. Subscribers: llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D35753 llvm-svn: 309047
* Implement parsing and writing of a single xml manifest file.Eric Beckmann2017-07-205-4/+31
| | | | | | | | | | Summary: Implement parsing and writing of a single xml manifest file. Subscribers: mgorny, llvm-commits, hiraditya Differential Revision: https://reviews.llvm.org/D35425 llvm-svn: 308679
* Revert "Adding temporary debugging info to llvm-mt to solve fedora failure."Eric Beckmann2017-07-181-2/+0
| | | | | | This reverts commit 223ef99f839f6b056272bcf4390841fcb26dda3c. llvm-svn: 308263
* Change '?' to 'h' in llvm-mt test.Eric Beckmann2017-07-181-1/+1
| | | | | | Some shells seem to have trouble parsing non-alphanumeric symbols. llvm-svn: 308259
* Adding extra test info for llvm-mt.Eric Beckmann2017-07-181-0/+2
| | | | llvm-svn: 308252
* Create empty shell of llvm-mt.Eric Beckmann2017-07-171-0/+7
Summary: This is the first patch towards creating the llvm-mt tool for merging Windows manifests. This is a reimplementation of mt.exe. Reviewers: zturner, ruiu, rnk Subscribers: llvm-commits, mgorny Differential Revision: https://reviews.llvm.org/D35333 llvm-svn: 308224
OpenPOWER on IntegriCloud