Change only a specific option with clang-format in C++ source file The Next CEO of Stack OverflowHow to feed Visual Studio Clang-Format plugin with clang-format file?clang-format Overriding multi-line comments for WebKit styleclang-format stream outputHow to control indent of ternary operator using clang-format?How can i configure clang format without .clang-format file in every workspace?Fomating CMakeLists.txt with Clang-FormatHow do I specify a clang-format file?Clang-Format: How to specify a custom format options file?clang-format add extra space for negative integer value of throw statementWhat controls break before member function of an object in clang format?
How to avoid supervisors with prejudiced views?
How to safely derail a train during transit?
What flight has the highest ratio of time difference to flight time?
Complex fractions
What does "Its cash flow is deeply negative" mean?
If a black hole is created from light, can this black hole then move at speed of light?
Novel about a guy who is possessed by the divine essence and the world ends?
Why am I allowed to create multiple unique pointers from a single object?
If/When UK leaves the EU, can a future goverment conduct a referendum to join the EU?
How do scammers retract money, while you can’t?
Plot of histogram similar to output from @risk
How do I reset passwords on multiple websites easily?
Why does the UK parliament need a vote on the political declaration?
Why do professional authors make "consistency" mistakes? And how to avoid them?
Can I equip Skullclamp on a creature I am sacrificing?
What connection does MS Office have to Netscape Navigator?
Can you replace a racial trait cantrip when leveling up?
What does convergence in distribution "in the Gromov–Hausdorff" sense mean?
Which tube will fit a -(700 x 25c) wheel?
Example of a Mathematician/Physicist whose Other Publications during their PhD eclipsed their PhD Thesis
Inappropriate reference requests from Journal reviewers
Return the Closest Prime Number
How to prevent changing the value of variable?
"In the right combination" vs "with the right combination"?
Change only a specific option with clang-format in C++ source file
The Next CEO of Stack OverflowHow to feed Visual Studio Clang-Format plugin with clang-format file?clang-format Overriding multi-line comments for WebKit styleclang-format stream outputHow to control indent of ternary operator using clang-format?How can i configure clang format without .clang-format file in every workspace?Fomating CMakeLists.txt with Clang-FormatHow do I specify a clang-format file?Clang-Format: How to specify a custom format options file?clang-format add extra space for negative integer value of throw statementWhat controls break before member function of an object in clang format?
I need to change only PointerAlignment with clang-format and leave all the other options unchanged. Is it possible?
I tried the following file:
BasedOnStyle: Google
IndentWidth: 4
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
it changes PointerAlignment, but applies Google style. Also I tried
BasedOnStyle: none
but it does not work.
clang-format
add a comment |
I need to change only PointerAlignment with clang-format and leave all the other options unchanged. Is it possible?
I tried the following file:
BasedOnStyle: Google
IndentWidth: 4
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
it changes PointerAlignment, but applies Google style. Also I tried
BasedOnStyle: none
but it does not work.
clang-format
add a comment |
I need to change only PointerAlignment with clang-format and leave all the other options unchanged. Is it possible?
I tried the following file:
BasedOnStyle: Google
IndentWidth: 4
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
it changes PointerAlignment, but applies Google style. Also I tried
BasedOnStyle: none
but it does not work.
clang-format
I need to change only PointerAlignment with clang-format and leave all the other options unchanged. Is it possible?
I tried the following file:
BasedOnStyle: Google
IndentWidth: 4
Language: Cpp
# Force pointers to the type for C++.
DerivePointerAlignment: false
PointerAlignment: Left
it changes PointerAlignment, but applies Google style. Also I tried
BasedOnStyle: none
but it does not work.
clang-format
clang-format
asked Mar 21 at 16:58
Alexey StarinskyAlexey Starinsky
685111
685111
add a comment |
add a comment |
0
active
oldest
votes
Your Answer
StackExchange.ifUsing("editor", function ()
StackExchange.using("externalEditor", function ()
StackExchange.using("snippets", function ()
StackExchange.snippets.init();
);
);
, "code-snippets");
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "1"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285584%2fchange-only-a-specific-option-with-clang-format-in-c-source-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Stack Overflow!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f55285584%2fchange-only-a-specific-option-with-clang-format-in-c-source-file%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown