[PATCH] D125862: [clang][driver] Add gcc-toolset/devtoolset 12 to prefixes

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 1 22:36:15 PDT 2022


MaskRay added a comment.

In D125862#3552465 <https://reviews.llvm.org/D125862#3552465>, @tbaeder wrote:

> Ping. @MaskRay Can you take a quick look and check if this is what you had in mind?

LG



================
Comment at: clang/unittests/Driver/ToolChainTest.cpp:615
+TEST(ToolChainTest, Toolsets) {
+
+  // Ignore this test on Windows hosts.
----------------
delete blank line


================
Comment at: clang/unittests/Driver/ToolChainTest.cpp:623
+  IntrusiveRefCntPtr<DiagnosticIDs> DiagID(new DiagnosticIDs());
+  struct TestDiagnosticConsumer : public DiagnosticConsumer {};
+
----------------
delete `public`.

Can you avoid using a derived DiagnosticConsumer?


================
Comment at: clang/unittests/Driver/ToolChainTest.cpp:698
+    }
+    if (is_style_windows(llvm::sys::path::Style::native))
+      std::replace(S.begin(), S.end(), '\\', '/');
----------------
This should be removed if we exclude Windows.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D125862/new/

https://reviews.llvm.org/D125862



More information about the cfe-commits mailing list