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?










0















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.










share|improve this question


























    0















    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.










    share|improve this question
























      0












      0








      0








      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.










      share|improve this question














      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 21 at 16:58









      Alexey StarinskyAlexey Starinsky

      685111




      685111






















          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
          );



          );













          draft saved

          draft discarded


















          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















          draft saved

          draft discarded
















































          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.




          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

          Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

          Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript