Several of the required llvm files were either missing or seemingly
out-of-sync from the 3.8.0 release at revision r262564. They've been
imported from that revision.
Sponsored by: EMC / Isilon Storage Division
Differential D6856
Add clang-format under WITH_CLANG_EXTRAS. bdrewery on Jun 16 2016, 12:52 AM. Authored by Tags None Referenced Files
Subscribers
Details Several of the required llvm files were either missing or seemingly Sponsored by: EMC / Isilon Storage Division I ran clang-format -h and clang-format --version. Nothing beyond that yet.
Diff Detail
Event TimelineComment Actions I assume there's actually a vendor branch for these files that needs to be updated first and then imported back from. The import to the vendor/contrib trees seems a bit chaotic since it is tending to miss updates. I think it would be simpler to just sync the entire llvm checkout in there? Comment Actions I'm not sure what you mean, can you explain this further? I always import to ^/base/vendor/llvm and ^/base/vendor/clang, then merge from there to ^/base/head/contrib/llvm, like it was done for ages. The versions in the vendor area correspond exactly with whatever is in ^/base/head/contrib/llvm, minus some build cruft like CMake files and things we don't need in base. And some small patches are imported on top of the base versions, for example for specific crash reports from users or port maintainers. But that's really it. I don't really see where all the differences you mention come from,
Comment Actions After fixing where I imported from, the only file missing was ClangFormat.cpp. I would copy that from the vendor branch before committing this. Comment Actions For the rest, LGTM. It builds for me, and the resulting clang-format executable is able to reformat a bunch of .c files in the source tree.
|