Comments (5)
If you are using the VS plugin for this, you can also set FormatStyle: file
in your project's .clang-tidy file. I could be wrong about this but clang-format code might be built into clang-tidy as it properly formats things for me even though I don't have clang-format on my system path.
from clang-power-tools.
Depends on #68
from clang-power-tools.
Use the -format-style
clang-build.ps1 switch.
Style for formatting code around applied fixes:
- 'none' (default) turns off formatting
- 'file' (literally 'file', not a placeholder) uses .clang-format file in the closest parent directory
- 'llvm', 'google', 'webkit', 'mozilla'
from clang-power-tools.
Indeed, @chri7325, when using .clang-tidy
config file (with FormatStyle:) it will work auto-magically :)
But, not everybody uses a config file, so we'll also provide dedicated UI in Settings for configuring clang-format => Depends on #68
from clang-power-tools.
This issue was fixed and it will be available in the next version.
from clang-power-tools.
Related Issues (20)
- Does this tool support VS 2019? Why it finds on VS 2022 instead of 2019?
- Ability to Execute Clang-Tidy Workloads without Applying .clang-tidy Configuration HOT 2
- Not work with wdk HOT 5
- error: definition of macro differs between the precompiled header ('\\') and the command line(')" HOT 1
- Detection of .clang-tidy file not working HOT 5
- modernize-use-override IgnoreDestructors HOT 2
- When exporting the compilation database, the -imsvc compiler option is not recognized HOT 1
- Add LLVM 18.1.2
- could you please update the https://github.com/Caphyon/clang-format-editor HOT 2
- Several Tidy Checks are missing from the list (LLVM 18.1.2) HOT 2
- Interactive mode for multiple files
- Since CPT 2024.4 Clang Tidy Checks are no longer sorted alphabetically HOT 1
- Files to ignore - File picker HOT 4
- Compile - ignore third-party project files
- Is there a way to kill "release notes" pop up?
- NuGet Packages out-of-date
- Clang Format Editor missing Publisher HOT 3
- Missing context menu item after install. HOT 1
- Index was out of range error when using CMake project
- Exported compile_commands.json file doesn't include paths to external headers. HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from clang-power-tools.