Package Details: clang-modernize-svn 193252-3

Package Base: clang-modernize-svn
Description: Clang automated migration / convert tool for C++11
Upstream URL: http://llvm.org/
Category: devel
Licenses: custom
Submitter: mmm
Maintainer: None
Last Packager: None
Votes: 4
First Submitted: 2013-10-24 13:17
Last Updated: 2013-10-26 12:10

Dependencies (1)

Required by (0)

Sources

Latest Comments

Comment by DonOregano

2014-05-15 13:12

This package currently installs an old svn revision of this clang tool. So the version you get if you install the clang-tools-extra package in extra is newer.

Comment by axper

2013-12-17 19:25

When trying to modernize a simple c++ program

#include <iostream>
int main() {}

$ clang-modernize main.cpp
I get this error:

In file included from /media/storage/temp/test-clang/main.cpp:1:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/iostream:39:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/ostream:38:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/ios:38:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/iosfwd:40:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/bits/postypes.h:40:
In file included from /../lib64/gcc/x86_64-unknown-linux-gnu/4.8.2/../../../../include/c++/4.8.2/cwchar:44:
/usr/include/wchar.h:39:11: fatal error: 'stdarg.h' file not found
# include <stdarg.h>
^
1 error generated.
Error while processing /media/storage/temp/test-clang/main.cpp.
Error encountered during translation.

Some investigation shows this http://clang.llvm.org/docs/FAQ.html#id3

Comment by mmm

2013-11-10 19:53

hi justinzane,

thanks for noting, but C[XX]FLAGS are read from your /etc/makepkg.conf, so it's up to the user to unsure you have sane values there. If it was just FYI note, then apologies and thanks for posting it here!
Cheers,

Comment by justinzane

2013-11-07 05:07

Note: cannot use C[XX]FLAGS="-O4" LDFLAGS="-Wl,-plugin,/usr/lib/LLVMgold.so"

Comment by mmm

2013-10-26 12:10

@msquared good catch, thanks! updated

Comment by msquared

2013-10-25 19:03

can you please remove the -j3 flag as usually this should be defined in /etc/makepkg.conf (MAKEFLAGS)

thanks!

Comment by mmm

2013-10-24 13:18

based on clang-svn pkgbuild, I know newer/better pkgbuild method is suggested for svn, but i just quickly hacked this up. If clang-svn does it, i'll apply it here.