MaskRay accepted this revision.
MaskRay added inline comments.
This revision is now accepted and ready to land.


================
Comment at: clang/lib/Driver/ToolChain.cpp:917
 
+/*static*/ std::string ToolChain::concat(const std::string &Path,
+                                         const Twine &A, const Twine &B,
----------------
I think the first argument of `concat` should be `StringRef`, then we can avoid 
changing the signature of `getMultiarchTriple`


================
Comment at: clang/test/Driver/linux-header-search.cpp:76
+
+// Test Linux with libstdc++.
+// RUN: %clang -### %s -fsyntax-only 2>&1 \
----------------
I suspect this test does not add more coverage than linux-cross.cpp.

To test --sysroot with a trailing `/`, just modify the previous 
`CHECK-BASIC-LIBCXXV2` by appending a `/`


================
Comment at: clang/test/Driver/linux-header-search.cpp:88
+// CHECK-BASIC-LIBSTDCXX-SYSROOT-SAME: "-internal-isystem" 
"[[SYSROOT]]/usr/lib/gcc/x86_64-unknown-linux-gnu/4.8/../../../../x86_64-unknown-linux-gnu/include"
+//
+// Test Linux with libstdc++ when the sysroot path ends with `/`.
----------------
Remove the otherwise empty `//`

It adds no value but makes `{` `}` in vim-style editors inconvenient.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D126289

_______________________________________________
cfe-commits mailing list
cfe-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to