Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to provide original file path for cases when IDE uses temporary file #324

Open
andrewsmolko opened this issue Jul 25, 2023 · 0 comments

Comments

@andrewsmolko
Copy link

QtCreator IDE uses temporary file for cmake-format processing, here is a sample command line from QtCreator logs:

/usr/local/bin/cmake-format --in-place /private/var/folders/bg/w1rssn8d4kn5bl2gfx845nvr0000gp/T/QtCreator-ukiZXr/qtc_beautifier_kGQmmUda.cmake

It seems that temporary file path breaks searching of .cmake-format config.

Would be great if a new option could be introduced in cmake-format to provide original file path. This original file path should be used for searching .cmake-format config.

clang-format has similar --assume-filename option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant