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.
Search Criteria
Package Details: clang-modernize-svn 193252-3
Package Actions
- View PKGBUILD
- Download tarball
- Search wiki
- Flagged out-of-date (2014-05-15)
| Package Base: | clang-modernize-svn |
|---|---|
| Description: | Clang automated migration / convert tool for C++11 |
| Upstream URL: | http://llvm.org/ |
| Category: | devel |
| Licenses: | |
| Submitter: | mmm |
| Maintainer: | None |
| Last Packager: | None |
| Votes: | 4 |
| First Submitted: | 2013-10-24 13:17 |
| Last Updated: | 2013-10-26 12:10 |
Latest Comments
Comment by DonOregano
Comment by axper
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
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
Note: cannot use C[XX]FLAGS="-O4" LDFLAGS="-Wl,-plugin,/usr/lib/LLVMgold.so"
Comment by mmm
@msquared good catch, thanks! updated
Comment by msquared
can you please remove the -j3 flag as usually this should be defined in /etc/makepkg.conf (MAKEFLAGS)
thanks!
Comment by mmm
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.