To format a CMakeLists.txt file using Clang-Format, follow these steps:
clang-format -style=file -i CMakeLists.txt
This command applies the formatting style defined in the .clang-format file to the CMakeLists.txt file.
(Optional) Modify the formatting style in the .clang-format file to match your preferred coding style.
Run the above command again to apply the updated style to the CMakeLists.txt file.
Please start posting anonymously - your entry will be published after you log in or create a new account. This space is reserved only for answers. If you would like to engage in a discussion, please instead post a comment under the question or an answer that you would like to discuss
Asked: 2021-10-13 11:00:00 +0000
Seen: 9 times
Last updated: Jan 11 '23
What is the process of altering the input style in a React hook form?
How to give an <svg> element a double border using CSS when there is no style attribute present?
Why isn't the HTML internal style applied in emails?
How can the official style of NETFLIX heading be achieved using CSS?
How to reuse a style in NativeWind?
What is the way to merge different inline style elements?
What are the steps to implement a customized theme to an EditText in the app theme?