Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Aug 05 2018 13:09
    amitdo starred berenm/swang
  • Aug 19 2015 13:02

    berenm on swang

    Remove original sources, as swa… (compare)

  • Aug 19 2015 13:02

    berenm on swang

    Remove original sources, as swa… (compare)

  • Aug 19 2015 13:01

    berenm on swang

    Remove original sources, as swa… (compare)

  • Aug 19 2015 12:53

    berenm on swang

    clang-tidy: Add checker that wa… [clang-tidy] Move user-defined … clang-tidy: Add checker that wa… and 71 more (compare)

  • Jul 14 2015 06:37
    nauhygon starred berenm/swang
  • Jun 26 2015 18:16

    berenm on clang-tidy

    clang-tidy: Add checker that wa… [clang-tidy] Move user-defined … clang-tidy: Add checker that wa… and 6 more (compare)

  • Jun 22 2015 09:45
    mrsch starred berenm/swang
  • Jun 21 2015 17:00
    nyotis starred berenm/swang
  • Jun 07 2015 17:29
    Sarcasm commented #5
  • Jun 07 2015 17:23
    berenm closed #5
  • Jun 07 2015 17:23
    berenm commented #5
  • Jun 07 2015 17:20

    berenm on swang

    Fixed a typo in a comment. NFC.… clang-tidy: [misc-use-override]… clang-tidy: [misc-use-override]… and 139 more (compare)

  • Jun 07 2015 16:37
    Sarcasm opened #5
  • Jun 07 2015 16:19
  • Jun 05 2015 13:34

    berenm on swang

    Update README.rst (compare)

  • Apr 27 2015 07:28
    kiron1 starred berenm/swang
  • Apr 14 2015 15:38
    teZeriusz starred berenm/swang
  • Feb 20 2015 07:20
    ataraxer starred berenm/swang
  • Feb 18 2015 09:03
    borman starred berenm/swang
s-kramer
@s-kramer
Hi there. I'm trying to get swang running but I can't make it compile. I've proceeded according to http://clang.llvm.org/get_started.html but used the https://github.com/berenm/swang/tree/swang/swang for extra tools repo. Swang directory is just ignored during compilation. even though the .../clang/tools/extra/CMakeLists.txt lists swang as a subdirectory. Am I missing something here?
Beren Minor
@berenm
Hi!
Which target are you building? If you do make swang explicitely, does it fail to find a target with this name?
s-kramer
@s-kramer
I was building the all target - I thought swang will be build just like e.g. clang-check. The steps I did:
  1. Download all the sources as described previously
  2. mkdir build && cd build && ../llvm/configure --prefix=/opt/llvm --enable-optimized
for make swang in build/tools/clang/tools/extra I get make: Nothing to be done for '/home/skramer/builds/llvm/tools/clang/tools/extra/swang'.
Although I don't have a directory swang in build/tools/clang/tools/extra
Beren Minor
@berenm
I usually use the CMake build chain, maybe it doesn't work with the autoconf build chain.
I'll check that
s-kramer
@s-kramer
ok, I'll give cmake build chain a shot
thanks
gnzlbg
@gnzlbg
when trying to clone swang into extra i get
fatal: destination path 'extra' already exists and is not an empty directory.
gnzlbg
@gnzlbg
@berenm
Beren Minor
@berenm
@gnzlbg the extra folder should not already exist, the swang repository is a fork of the clang-tools-extra repository which should be located in tools/clang/tools/extra in the llvm source treee
gnzlbg
@gnzlbg
@berenm it exists if I also want to install http://llvm.org/svn/llvm-project/clang-tools-extra/trunk
it seems I can only use one or the other
Beren Minor
@berenm
yes, the swang repository is basically a fork of clang-tools-extra. Both should be mergeable quite easily though
gnzlbg
@gnzlbg
will it be possible to have it as a tool within clang-tools-extra? So that installing it is as easy as checking it in the clang-tool-extra directory while a normal llvm install ?
Beren Minor
@berenm
actually it has been accepted as a new checker in clang-tidy, which is part of clang-tools-extra
gnzlbg
@gnzlbg
@berenm awesome!
gnzlbg
@gnzlbg
do you happen to have an example of a .clang-tidy file that uses that check? the docs are really really scarce :/
gnzlbg
@gnzlbg
solved :)