clang-format -- Possibility to Don't use --assume-file by default #4723
Unanswered
niva-xx
asked this question in
Q&A - Ask for help with problems
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Considering a recent test using clang-format on a cpp source, the reformatting functionality according to my own .clang-format defined with the option -style=file:/my/path/to/my/own/.clang -format does not work. g:ale_c_clangformat_options=--style=file:/my/path/to/my/own/.clang-format . With a return success (code 0) Ale systematically launches by default --assume-filename as follows 'clang-format --assume-filename=my_sample.cpp --style=file:/my/path/to/.clang- format < %tmp%/tmp_file' .
However, I centralized my .clang-format in a location other than an ascending directory of my source on purpose to unify this according to N projects /!\
I find that manually sending the command Don't reformat anything unless I remove --assume-filename. Using only g:ale_c_clangformat_use_local_file": "/my/path/to/.clang-format" is excessively long (20-30s) under win11 with gvim x64 built v9.0.114 and also uses --assume-filename= . even though launching the same command manually takes less than 1 second.
Can you help me ?
Thank you
Nicolas
Beta Was this translation helpful? Give feedback.
All reactions