<feed xmlns='http://www.w3.org/2005/Atom'>
<title>clang/clang-tools-extra.git/clang-move/tool, branch release_60-based</title>
<subtitle>(deprecated) Vendor branches of https://git.llvm.org/git/clang-tools-extra.git , use clang/llvm-project instead.
</subtitle>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/'/>
<entry>
<title>[CMake] Use PRIVATE in target_link_libraries for executables</title>
<updated>2017-12-05T21:49:56+00:00</updated>
<author>
<name>Shoaib Meenai</name>
<email>smeenai@fb.com</email>
</author>
<published>2017-12-05T21:49:56+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=3376d39717b091c336960a2ca8444a0ac0c15c3c'/>
<id>3376d39717b091c336960a2ca8444a0ac0c15c3c</id>
<content type='text'>
We currently use target_link_libraries without an explicit scope
specifier (INTERFACE, PRIVATE or PUBLIC) when linking executables.
Dependencies added in this way apply to both the target and its
dependencies, i.e. they become part of the executable's link interface
and are transitive.

Transitive dependencies generally don't make sense for executables,
since you wouldn't normally be linking against an executable. This also
causes issues for generating install export files when using
LLVM_DISTRIBUTION_COMPONENTS. For example, clang has a lot of LLVM
library dependencies, which are currently added as interface
dependencies. If clang is in the distribution components but the LLVM
libraries it depends on aren't (which is a perfectly legitimate use case
if the LLVM libraries are being built static and there are therefore no
run-time dependencies on them), CMake will complain about the LLVM
libraries not being in export set when attempting to generate the
install export file for clang. This is reasonable behavior on CMake's
part, and the right thing is for LLVM's build system to explicitly use
PRIVATE dependencies for executables.

Unfortunately, CMake doesn't allow you to mix and match the keyword and
non-keyword target_link_libraries signatures for a single target; i.e.,
if a single call to target_link_libraries for a particular target uses
one of the INTERFACE, PRIVATE, or PUBLIC keywords, all other calls must
also be updated to use those keywords. This means we must do this change
in a single shot. I also fully expect to have missed some instances; I
tested by enabling all the projects in the monorepo (except dragonegg),
and configuring both with and without shared libraries, on both Darwin
and Linux, but I'm planning to rely on the buildbots for other
configurations (since it should be pretty easy to fix those).

Even after this change, we still have a lot of target_link_libraries
calls that don't specify a scope keyword, mostly for shared libraries.
I'm thinking about addressing those in a follow-up, but that's a
separate change IMO.

Differential Revision: https://reviews.llvm.org/D40823



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@319840 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
We currently use target_link_libraries without an explicit scope
specifier (INTERFACE, PRIVATE or PUBLIC) when linking executables.
Dependencies added in this way apply to both the target and its
dependencies, i.e. they become part of the executable's link interface
and are transitive.

Transitive dependencies generally don't make sense for executables,
since you wouldn't normally be linking against an executable. This also
causes issues for generating install export files when using
LLVM_DISTRIBUTION_COMPONENTS. For example, clang has a lot of LLVM
library dependencies, which are currently added as interface
dependencies. If clang is in the distribution components but the LLVM
libraries it depends on aren't (which is a perfectly legitimate use case
if the LLVM libraries are being built static and there are therefore no
run-time dependencies on them), CMake will complain about the LLVM
libraries not being in export set when attempting to generate the
install export file for clang. This is reasonable behavior on CMake's
part, and the right thing is for LLVM's build system to explicitly use
PRIVATE dependencies for executables.

Unfortunately, CMake doesn't allow you to mix and match the keyword and
non-keyword target_link_libraries signatures for a single target; i.e.,
if a single call to target_link_libraries for a particular target uses
one of the INTERFACE, PRIVATE, or PUBLIC keywords, all other calls must
also be updated to use those keywords. This means we must do this change
in a single shot. I also fully expect to have missed some instances; I
tested by enabling all the projects in the monorepo (except dragonegg),
and configuring both with and without shared libraries, on both Darwin
and Linux, but I'm planning to rely on the buildbots for other
configurations (since it should be pretty easy to fix those).

Even after this change, we still have a lot of target_link_libraries
calls that don't specify a scope keyword, mostly for shared libraries.
I'm thinking about addressing those in a follow-up, but that's a
separate change IMO.

Differential Revision: https://reviews.llvm.org/D40823



git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@319840 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] Create ClangMoveActionFactory on stack</title>
<updated>2017-04-14T18:12:11+00:00</updated>
<author>
<name>Alexander Shaposhnikov</name>
<email>shal1t712@gmail.com</email>
</author>
<published>2017-04-14T18:12:11+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=aa20e0a69df7ffc3744cb7c098007bffad4c8e40'/>
<id>aa20e0a69df7ffc3744cb7c098007bffad4c8e40</id>
<content type='text'>
This diff removes unnecessary using of unique_ptr with ClangMoveActionFactory (pico cleanup).
NFC

Test plan: make check-clang-tools

Differential revision: https://reviews.llvm.org/D32063


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@300356 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This diff removes unnecessary using of unique_ptr with ClangMoveActionFactory (pico cleanup).
NFC

Test plan: make check-clang-tools

Differential revision: https://reviews.llvm.org/D32063


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@300356 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] Fix buildbot failures</title>
<updated>2016-12-12T20:24:44+00:00</updated>
<author>
<name>Alexander Shaposhnikov</name>
<email>shal1t712@gmail.com</email>
</author>
<published>2016-12-12T20:24:44+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=d297a3cfe4c5a130bd24def06f60821a321bb883'/>
<id>d297a3cfe4c5a130bd24def06f60821a321bb883</id>
<content type='text'>
Fix the buildbot failures introduced by D27669


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@289465 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix the buildbot failures introduced by D27669


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@289465 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] Use appendArgumentsAdjuster for adding extra arguments</title>
<updated>2016-12-12T19:56:37+00:00</updated>
<author>
<name>Alexander Shaposhnikov</name>
<email>shal1t712@gmail.com</email>
</author>
<published>2016-12-12T19:56:37+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=63e25bab443a62a4a18d57b7959aecae3180f38e'/>
<id>63e25bab443a62a4a18d57b7959aecae3180f38e</id>
<content type='text'>
1. Remove some boilerplate code for appending -fparse-all-comments to the list of arguments.
2. Run clang-format -i against ClangMoveMain.cpp.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D27669


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@289464 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
1. Remove some boilerplate code for appending -fparse-all-comments to the list of arguments.
2. Run clang-format -i against ClangMoveMain.cpp.

Test plan: make check-all

Differential revision: https://reviews.llvm.org/D27669


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@289464 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] don't miss ',' in json output when there are duplicate elements.</title>
<updated>2016-12-03T15:28:03+00:00</updated>
<author>
<name>Eric Liu</name>
<email>ioeric@google.com</email>
</author>
<published>2016-12-03T15:28:03+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=d5fcd066dfd1ce275c307586130f8b8098f90f04'/>
<id>d5fcd066dfd1ce275c307586130f8b8098f90f04</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@288586 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@288586 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] Enable dump all declarations in old header.</title>
<updated>2016-11-24T10:17:17+00:00</updated>
<author>
<name>Haojian Wu</name>
<email>hokein@google.com</email>
</author>
<published>2016-11-24T10:17:17+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=af69684c62413b3372526b8688c94006f8c73366'/>
<id>af69684c62413b3372526b8688c94006f8c73366</id>
<content type='text'>
Summary:
* Add -dump_dels option to dump all declarations from old header. It
  will allow clang-move used as a frontend to get declarations from
  header. Further more, this will make debugging stuff easier. Currently only
  class/function types are supported.
* Refactoring code a little bit by creating a ClangMoveContext which
  holds all options for ClangMoveTool, which can simplify the code in
  some degree.

Reviewers: ioeric

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D27059

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@287863 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
* Add -dump_dels option to dump all declarations from old header. It
  will allow clang-move used as a frontend to get declarations from
  header. Further more, this will make debugging stuff easier. Currently only
  class/function types are supported.
* Refactoring code a little bit by creating a ClangMoveContext which
  holds all options for ClangMoveTool, which can simplify the code in
  some degree.

Reviewers: ioeric

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D27059

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@287863 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] Add some options allowing to add old/new.h to new/old.h respectively.</title>
<updated>2016-11-23T10:04:19+00:00</updated>
<author>
<name>Haojian Wu</name>
<email>hokein@google.com</email>
</author>
<published>2016-11-23T10:04:19+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=944c6d5d46583d40c9ba680437ba590a2d630b59'/>
<id>944c6d5d46583d40c9ba680437ba590a2d630b59</id>
<content type='text'>
Summary:
* --new_depend_on_old: new header will include old header
* --old_depend_on_new: old header will include new header.

Reviewers: ioeric

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D26966

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@287752 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
* --new_depend_on_old: new header will include old header
* --old_depend_on_new: old header will include new header.

Reviewers: ioeric

Subscribers: cfe-commits

Differential Revision: https://reviews.llvm.org/D26966

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@287752 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-tools-extra] Format sources with clang-format. NFC.</title>
<updated>2016-11-08T07:50:19+00:00</updated>
<author>
<name>Mandeep Singh Grang</name>
<email>mgrang@codeaurora.org</email>
</author>
<published>2016-11-08T07:50:19+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=5242a87b7665f03c2cb314f35401c707c72f1543'/>
<id>5242a87b7665f03c2cb314f35401c707c72f1543</id>
<content type='text'>
Summary:
Ran clang-format on all .c/.cpp/.h files in clang-tools-extra.
Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories.

Reviewers: klimek, alexfh

Subscribers: nemanjai

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D26329

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@286221 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Summary:
Ran clang-format on all .c/.cpp/.h files in clang-tools-extra.
Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories.

Reviewers: klimek, alexfh

Subscribers: nemanjai

Tags: #clang-tools-extra

Differential Revision: https://reviews.llvm.org/D26329

git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@286221 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] Use cl::list for the list of names</title>
<updated>2016-10-14T23:16:25+00:00</updated>
<author>
<name>Alexander Shaposhnikov</name>
<email>shal1t712@gmail.com</email>
</author>
<published>2016-10-14T23:16:25+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=387f5e3e586a0669f2d23f36ab0dbfc638150a69'/>
<id>387f5e3e586a0669f2d23f36ab0dbfc638150a69</id>
<content type='text'>
This diff replaces manual parsing of the comma-separated list of names with 
cl::list and cl::CommaSeparated.
Test plan: make -j8 check-clang-tools

Differential revision: https://reviews.llvm.org/D25586


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@284291 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This diff replaces manual parsing of the comma-separated list of names with 
cl::list and cl::CommaSeparated.
Test plan: make -j8 check-clang-tools

Differential revision: https://reviews.llvm.org/D25586


git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@284291 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
<entry>
<title>[clang-move] error out when fail to create new files.</title>
<updated>2016-10-13T19:49:19+00:00</updated>
<author>
<name>Eric Liu</name>
<email>ioeric@google.com</email>
</author>
<published>2016-10-13T19:49:19+00:00</published>
<link rel='alternate' type='text/html' href='https://code.qt.io/cgit/clang/clang-tools-extra.git/commit/?id=fd7cb0bd721f90e5c137c3a16ffbedaf1fd2cc2e'/>
<id>fd7cb0bd721f90e5c137c3a16ffbedaf1fd2cc2e</id>
<content type='text'>
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@284155 91177308-0d34-0410-b5e6-96231b3b80d8
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
git-svn-id: https://llvm.org/svn/llvm-project/clang-tools-extra/trunk@284155 91177308-0d34-0410-b5e6-96231b3b80d8
</pre>
</div>
</content>
</entry>
</feed>
