[all-commits] [llvm/llvm-project] 0a5ae0: [HIP] Fix test rcom-detect.hip

MyDeveloperDay via All-commits all-commits at lists.llvm.org
Wed Oct 20 20:51:15 PDT 2021


  Branch: refs/heads/release/13.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 0a5ae011cd23a0acaa212fa0281e662443a01d7d
      https://github.com/llvm/llvm-project/commit/0a5ae011cd23a0acaa212fa0281e662443a01d7d
  Author: Yaxun (Sam) Liu <yaxun.liu at amd.com>
  Date:   2021-10-20 (Wed, 20 Oct 2021)

  Changed paths:
    M clang/test/Driver/rocm-detect.hip

  Log Message:
  -----------
  [HIP] Fix test rcom-detect.hip

This patches fixes https://bugs.llvm.org/show_bug.cgi?id=51404

Some builds use custom resource directory for clang, therefore the test
cannot assume default resource directory for clang. Use -resource-dir
to force it.

Differential Revision: https://reviews.llvm.org/D111726

(cherry picked from commit 1439df00fc5e6dfffeb6a99e3537f6de2e539785)


  Commit: a797306b772160d7096f32380cb238c02df20ff8
      https://github.com/llvm/llvm-project/commit/a797306b772160d7096f32380cb238c02df20ff8
  Author: mydeveloperday <mydeveloperday at gmail.com>
  Date:   2021-10-20 (Wed, 20 Oct 2021)

  Changed paths:
    M clang/lib/Format/TokenAnnotator.cpp
    M clang/lib/Format/UnwrappedLineParser.cpp
    M clang/unittests/Format/FormatTest.cpp
    M clang/unittests/Format/FormatTestCSharp.cpp

  Log Message:
  -----------
  [clang-format] [PR51640] - New AfterEnum brace wrapping changes have cause C# behaviour to change

LLVM 13.0.0-rc2 shows change of behaviour in enum and interface BraceWrapping (likely before we simply didn't wrap)  but may be related to {D99840}

Logged as https://bugs.llvm.org/show_bug.cgi?id=51640

This change ensure AfterEnum works for

`internal|public|protected|private enum A {`  in the same way as it works for `enum A {` in C++

A similar issue was also observed with `interface` in C#

Reviewed By: krasimir, owenpan

Differential Revision: https://reviews.llvm.org/D108810

(cherry picked from commit ed367b9dff10ee1df9ac1984eb2ad7544da7ab06)


Compare: https://github.com/llvm/llvm-project/compare/1a40203f8e94...a797306b7721


More information about the All-commits mailing list