diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000000000..65cbdc5969218 --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,27 @@ +name: Pull Requests + +on: + pull_request: + branches: + - main + push: + branches: + - main + +jobs: + tests: + name: Tests + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Build and Test + uses: llvm/actions/build-test-llvm-project@main + with: + cmake_args: '-GNinja -DLLVM_ENABLE_PROJECTS="llvm" -DCMAKE_BUILD_TYPE=Release -DLLDB_INCLUDE_TESTS=OFF -DCMAKE_C_COMPILER_LAUNCHER=sccache -DCMAKE_CXX_COMPILER_LAUNCHER=sccache' + build_target: 'check-all' + diff --git a/clang/lib/Edit/EditedSource.cpp b/clang/lib/Edit/EditedSource.cpp index a3386b2489b07..5e77b0141e8a0 100644 --- a/clang/lib/Edit/EditedSource.cpp +++ b/clang/lib/Edit/EditedSource.cpp @@ -430,7 +430,7 @@ void EditedSource::applyRewrites(EditsReceiver &receiver, if (offs == CurEnd) { StrVec += act.Text; CurLen += act.RemoveLen; - CurEnd.getWithOffset(act.RemoveLen); + CurEnd = CurEnd.getWithOffset(act.RemoveLen); continue; } diff --git a/utils/ci/README.md b/utils/ci/README.md new file mode 100644 index 0000000000000..20f3a52f10c97 --- /dev/null +++ b/utils/ci/README.md @@ -0,0 +1,2 @@ +test file +2