AAaron BallmanFix an accidental escape sequence in a unit test
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Reland [clang] [unittest] Add a test for Generic_GCC::GCCVersion::Parse (#69078) This adds actual test cases for all the cases that are listed in a code comment in the implementation of this function; having such test coverage eases doing further modifications to the function. This relands b4b35a5d2b4ee26bf79b8a92715dd200f3f9cc49. This time, the new test is excluded if building with dylibs or shared libraries enabled, as the clang::toolchains::Generic_GCC class is marked LLVM_LIBRARY_VISIBILITY, giving it hidden visibility in such builds, making it unreferencable outside of the dylib/shared library. | 2 年前 | |
Fix an accidental escape sequence in a unit test This amends b49ce9c304b00dae49148b6a2f5f27965000206c | 2 年前 | |
[NFC][TargetParser] Replace uses of llvm/Support/Host.h The forwarding header is left in place because of its use in polly/lib/External/isl/interface/extract_interface.cc, but I have added a GCC warning about the fact it is deprecated, because it is used in isl from where it is included by Polly. | 3 年前 | |
[clang] [Gnu] Improve GCCVersion parsing to match versions such as "10-win32" (#69079) In earlier GCC versions, the Debian/Ubuntu provided mingw toolchains were packaged in /usr/lib/gcc/<triple> with version strings such as "5.3-win32", which were matched and found since 6afcd64eb65fca233a7b173f88cffb2c2c9c114c. However in recent versions, they have stopped including the minor version number and only have version strings such as "10-win32" and "10-posix". Generalize the parsing code to tolerate the patch suffix to be present on a version number with only a major number. Refactor the string parsing code to highlight the overall structure of the parsing. This implementation should yield the same result as before, except for when there's only one segment and it has trailing, non-number contents. This allows Clang to find the GCC libraries and headers in Debian/Ubuntu provided MinGW cross compilers. | 2 年前 | |
[clang] Use StringRef::{starts,ends}_with (NFC) (#75149) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 | |
[clang] Use StringRef::{starts,ends}_with (NFC) (#75149) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 | |
[Driver] Enable selecting multiple multilibs This will enable layering multilibs on top of each other. For example a multilib containing only a no-exceptions libc++ could be layered on top of a multilib containing C libs. This avoids the need to duplicate the C library for every libc++ variant. This change doesn't expose the functionality externally, it only opens the functionality up to be potentially used by ToolChain classes. Differential Revision: https://reviews.llvm.org/D143059 | 2 年前 | |
[NFC][TargetParser] Replace uses of llvm/Support/Host.h The forwarding header is left in place because of its use in polly/lib/External/isl/interface/extract_interface.cc, but I have added a GCC warning about the fact it is deprecated, because it is used in isl from where it is included by Polly. | 3 年前 | |
[NFC] Move DXC driver tests The DXC driver tests don't really belong mixed in with the toolchain tests. This pulls them out to their own file and moves the SimpleDiagnosticConsumer into a header so it can be used by both DXC and toolchain tests. fast-forwarded. | 3 年前 | |
[clang] Use StringRef::{starts,ends}_with (NFC) (#75149) This patch replaces uses of StringRef::{starts,ends}with with StringRef::{starts,ends}_with for consistency with std::{string,string_view}::{starts,ends}_with in C++20. I'm planning to deprecate and eventually remove StringRef::{starts,ends}with. | 2 年前 |