This is an archive of the discontinued LLVM Phabricator instance.

[Polly][CMake] Exclude isl_config from the polly-check-format target.
ClosedPublic

Authored by philip.pfaffe on May 15 2017, 6:20 AM.

Details

Summary

The custom polly-check-format target runs clang-format over all source files in the directory tree excluding lib/External. isl_config.h is a header file that is generated by CMake in the build directory, and it's not correctly formatted (which I also wouldn't consider necessary, as it is a generated file).

If the build directory is actually inside the Polly source directory (which it might be if you're building Polly out-of-tree), that check always fails. Hence this patch excludes this file from the check-format target.

Diff Detail

Repository
rL LLVM

Event Timeline

philip.pfaffe created this revision.May 15 2017, 6:20 AM
grosser accepted this revision.May 15 2017, 6:21 AM

LGTM

This revision is now accepted and ready to land.May 15 2017, 6:21 AM
This revision was automatically updated to reflect the committed changes.