Git Product home page Git Product logo

Comments (5)

metaflow avatar metaflow commented on May 3, 2024 1

@ChristianKuehnel currently this reports look like: https://reviews.llvm.org/D71594

from llvm-premerge-checks.

metaflow avatar metaflow commented on May 3, 2024

Recommended way to check for clang-format fixes is git clang-format https://llvm.org/docs/GettingStarted.html#sending-patches

if it's not installed we can run clang/tools/clang-format/git-clang-format --diff in a directory with applied patch

from llvm-premerge-checks.

metaflow avatar metaflow commented on May 3, 2024

to run clang-tidy:

git diff -U0 | clang-tidy-diff-8.py -p1 -clang-tidy-binary=clang-tidy-8

should do the trick given that we linked compile-commands.json and the sources in question were involved in compile commands (looks like we have to enable other projects in cmake to make sure that we will compile diff).

from llvm-premerge-checks.

ChristianKuehnel avatar ChristianKuehnel commented on May 3, 2024

Phabricator supports displaying "lint results" (section Lint results):
https://secure.phabricator.com/conduit/method/harbormaster.sendmessage/

I have no idea what the results looks like or on how to convert the clang-tidy output to this format.

If you want to give it a shot, you can extend/rewrite/duplicate/... the script:
https://github.com/google/llvm-premerge-checks/blob/master/scripts/phabtalk/phabtalk.py

Right now the script is a quick hack to report the test results and add a comment with a short summary. This is what I needed for the compile & test scenarios.

from llvm-premerge-checks.

metaflow avatar metaflow commented on May 3, 2024

Windows build will be addressed separately.

from llvm-premerge-checks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.