Ticket #43839: clang-modernize.diff
File clang-modernize.diff, 9.5 KB (added by mamoll (Mark Moll), 10 years ago) |
---|
-
llvm-3.4/Portfile
5 5 6 6 set llvm_version 3.4 7 7 set llvm_version_no_dot 34 8 revision 28 revision 3 9 9 name llvm-${llvm_version} 10 10 subport clang-${llvm_version} {} 11 11 set suffix mp-${llvm_version} … … 56 56 # 57 57 #set compiler_rt_rev ${svn.revision} 58 58 #set libcxx_rev ${svn.revision} 59 #set clang-modernize_rev ${svn.revision} 59 60 #version ${llvm_version}-r${svn.revision} 60 61 #worksrcdir trunk 61 62 #svn.url http://llvm.org/svn/llvm-project/llvm/trunk … … 76 77 distfiles-append polly-${version}.src${extract.suffix} 77 78 } 78 79 } elseif {${subport} == "clang-${llvm_version}"} { 79 distfiles-append clang-${version}.src${extract.suffix} compiler-rt-${version}.src${extract.suffix} libcxx-${version}.src${extract.suffix} 80 distfiles-append clang-${version}.src${extract.suffix} compiler-rt-${version}.src${extract.suffix} libcxx-${version}.src${extract.suffix} clang-tools-extra-${version}.src${extract.suffix} 80 81 } 81 82 } 82 83 … … 94 95 sha256 f37c89b1383ce462d47537a0245ac798600887a9be9f63073e16b79ed536ab5c \ 95 96 libcxx-3.4.src.tar.gz \ 96 97 rmd160 146a49dc0ae9635f87b13038d36ad816b7245666 \ 97 sha256 bd9f200279f0eb19fc28ed2d9d607dfd38e2e7d92bf52e7fb2161f89212e0deb 98 sha256 bd9f200279f0eb19fc28ed2d9d607dfd38e2e7d92bf52e7fb2161f89212e0deb \ 99 clang-tools-extra-3.4.src.tar.gz \ 100 rmd160 8af0af0ead94bd50b1e6cbdcde5c4770bba5de0d \ 101 sha256 ba85187551ae97fe1c8ab569903beae5ff0900e21233e5eb5389f6ceab1028b4 98 102 99 103 patchfiles install_target.patch \ 100 104 tiger-shlib.patch … … 105 109 patchfiles-append tiger-shlib-clang.patch tiger-libclang.patch scan-build-PR-35006.patch \ 106 110 0001-Comment-out-SL-cctools-workaround.patch \ 107 111 clang-format.patch \ 112 clang-modernize.patch \ 108 113 snowleopard-cmath.patch 109 114 110 115 build.target clang-only … … 210 215 system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/trunk clang" 211 216 system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt" 212 217 system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/trunk libcxx" 218 system "cd ${worksrcpath}/tools/clang/tools && svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra" 213 219 } elseif {${worksrcdir} == "release_${llvm_version_no_dot}" } { 214 220 system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/branches/release_${llvm_version_no_dot} clang" 215 221 system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/branches/release_${llvm_version_no_dot} compiler-rt" 216 222 system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/branches/release_${llvm_version_no_dot} libcxx" 223 system "cd ${worksrcpath}/tools/clang/tools && svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/branches/release_${llvm_version_no_dot} extra" 217 224 } else { 218 225 file rename ${workpath}/clang-${llvm_version} ${worksrcpath}/tools/clang 219 226 file rename ${workpath}/compiler-rt-${llvm_version} ${worksrcpath}/projects/compiler-rt 220 227 file rename ${workpath}/libcxx-${llvm_version} ${worksrcpath}/projects/libcxx 228 file rename ${workpath}/clang-tools-extra-${llvm_version} ${worksrcpath}/tools/clang/tools/extra 221 229 } 222 230 } 223 231 } -
llvm-3.4/files/clang-modernize.patch
1 --- a/Makefile 2014-05-29 08:40:41.000000000 -0500 2 +++ b/Makefile 2014-05-29 08:41:52.000000000 -0500 3 @@ -72,7 +72,9 @@ 4 tools/clang/tools/c-index-test \ 5 tools/clang/runtime tools/clang/docs \ 6 tools/clang/include tools/clang/lib \ 7 - tools/clang/tools/clang-format 8 + tools/clang/tools/clang-format \ 9 + tools/clang/tools/extra/clang-modernize \ 10 + tools/clang/tools/extra/clang-apply-replacements 11 OPTIONAL_DIRS := 12 NO_INSTALL = 1 13 endif -
llvm-3.4/files/mp-clang-3.4
2 2 bin/clang++-mp-3.4 3 3 bin/clang-mp-3.4 4 4 bin/clang-format-mp-3.4 5 - 5 bin/clang-modernize-mp-3.4 6 6 bin/scan-build-mp-3.4 7 7 bin/scan-view-mp-3.4 -
llvm-3.5/Portfile
6 6 7 7 set llvm_version 3.5 8 8 set llvm_version_no_dot 35 9 revision 19 revision 2 10 10 name llvm-${llvm_version} 11 11 subport clang-${llvm_version} {} 12 12 set suffix mp-${llvm_version} … … 57 57 58 58 set compiler_rt_rev ${svn.revision} 59 59 set libcxx_rev ${svn.revision} 60 set clang-modernize_rev ${svn.revision} 60 61 version ${llvm_version}-r${svn.revision} 61 62 worksrcdir trunk 62 63 svn.url http://llvm.org/svn/llvm-project/llvm/trunk … … 77 78 distfiles-append polly-${version}.src${extract.suffix} 78 79 } 79 80 } elseif {${subport} == "clang-${llvm_version}"} { 80 distfiles-append clang-${version}.src${extract.suffix} compiler-rt-${version}.src${extract.suffix} libcxx-${version}.src${extract.suffix} 81 distfiles-append clang-${version}.src${extract.suffix} compiler-rt-${version}.src${extract.suffix} libcxx-${version}.src${extract.suffix} clang-tools-extra-${version}.src${extract.suffix} 81 82 } 82 83 } 83 84 … … 89 90 patchfiles-append scan-build-PR-35006.patch \ 90 91 0001-Comment-out-SL-cctools-workaround.patch \ 91 92 clang-format.patch \ 93 clang-modernize.patch \ 92 94 snowleopard-cmath.patch 93 95 94 96 build.target clang-only … … 214 216 system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/trunk clang" 215 217 system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/trunk compiler-rt" 216 218 system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/trunk libcxx" 219 system "cd ${worksrcpath}/tools/clang/tools && svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/trunk extra" 217 220 } elseif {${worksrcdir} == "release_${llvm_version_no_dot}" } { 218 221 system "cd ${worksrcpath}/tools && svn co -r ${svn.revision} http://llvm.org/svn/llvm-project/cfe/branches/release_${llvm_version_no_dot} clang" 219 222 system "cd ${worksrcpath}/projects && svn co -r ${compiler_rt_rev} http://llvm.org/svn/llvm-project/compiler-rt/branches/release_${llvm_version_no_dot} compiler-rt" 220 223 system "cd ${worksrcpath}/projects && svn co -r ${libcxx_rev} http://llvm.org/svn/llvm-project/libcxx/branches/release_${llvm_version_no_dot} libcxx" 224 system "cd ${worksrcpath}/tools/clang/tools && svn co -r ${clang-modernize_rev} http://llvm.org/svn/llvm-project/clang-tools-extra/branches/release_${llvm_version_no_dot} extra" 221 225 } else { 222 226 file rename ${workpath}/clang-${llvm_version} ${worksrcpath}/tools/clang 223 227 file rename ${workpath}/compiler-rt-${llvm_version} ${worksrcpath}/projects/compiler-rt 224 228 file rename ${workpath}/libcxx-${llvm_version} ${worksrcpath}/projects/libcxx 229 file rename ${workpath}/clang-tools-extra-${llvm_version} ${worksrcpath}/tools/clang/tools/extra 225 230 } 226 231 } 227 232 } -
llvm-3.5/files/clang-modernize.patch
1 --- a/Makefile 2014-05-29 08:40:41.000000000 -0500 2 +++ b/Makefile 2014-05-29 08:41:52.000000000 -0500 3 @@ -72,7 +72,9 @@ 4 tools/clang/tools/c-index-test \ 5 tools/clang/runtime tools/clang/docs \ 6 tools/clang/include tools/clang/lib \ 7 - tools/clang/tools/clang-format 8 + tools/clang/tools/clang-format \ 9 + tools/clang/tools/extra/clang-modernize \ 10 + tools/clang/tools/extra/clang-apply-replacements 11 OPTIONAL_DIRS := 12 NO_INSTALL = 1 13 endif -
llvm-3.5/files/mp-clang-3.5
2 2 bin/clang++-mp-3.5 3 3 bin/clang-mp-3.5 4 4 bin/clang-format-mp-3.5 5 - 5 bin/clang-modernize-mp-3.5 6 6 bin/scan-build-mp-3.5 7 7 bin/scan-view-mp-3.5