https://llvm.org/bugs/show_bug.cgi?id=27355
To compile with other binary output directory structures in build systems like Android.
Allow clang-tidy/ClangTidy.cpp and other files to include Checkers.inc like other .inc files,
with a relative path to clang/include.
Details
Diff Detail
Event Timeline
include/clang/StaticAnalyzer/Checkers/CMakeLists.txt | ||
---|---|---|
4 | Anna should probably decide here, but I think it might be preferable to actually move Checkers.td into include/..., since it is indeed being used beyond just the lib/... directory it currently resides in (hence the original problem here of a bizarre include path in clang/tools/extra). |
include/clang/StaticAnalyzer/Checkers/CMakeLists.txt | ||
---|---|---|
4 | +1 |
Would it be possible to generate the diff that shows that the file moved as opposed to being deleted and added?
Anna, if I scroll over the new include file in phabricator, it shows as a proper file move (in a yellow column at the start of the right diff - hover for it to say this). Every line is the same from the original file, as this is being moved only to fix up the relative paths, which are used across multiple directories.
I know that git and svn both handle renames properly (via mv), but I have no clue whether phabricator + git-svn are going to preserve history in the nicest way possible. If there are suggestions there for minimizing trouble, we're happy to listen.
I used "svn mv" to move the file and "svn diff --show-copies-as-adds" to generate the diff.
If I didn't use "--show-copies-as-adds", the new file was not included/shown by phabricator at all.
Please let me know if there is better way to generate and display such diff in phabricator.
Thanks.
Anna should probably decide here, but I think it might be preferable to actually move Checkers.td into include/..., since it is indeed being used beyond just the lib/... directory it currently resides in (hence the original problem here of a bizarre include path in clang/tools/extra).