Comments (3)
Yea, definitely understand about wanting to be more conformant.
This is probably reasonable, the main thing I was concerned about is that people wouldn't be able to use it without going and learning a bunch of clang flags, which might be offputting for someone who wants an out-of-the-box experience that just works immediately after installing. As long as it "just works" with reasonable defaults then I'm happy :)
from clang-power-tools.
Very informative feedback. Thanks, Zachary.
Will definitely consider clang-cl.exe
driver as an alternative for the VS extension, in a future version.
We were reluctant to use the clang-cl.exe
driver because it is too compatible with cl.exe
, emulating its bad behaviors in terms of ISO C++ conformance (by automatically suppressing too many warnings).
We wanted to retain full control over the clang error flags, so that we can gradually eliminate all non-standard source code constructs. While this was annoying at first (lots of warnings), we found great benefits from actually fixing those warnings, instead of suppressing them.
I do agree, however, that for some teams this could be very challenging and a more cl.exe
compatible option should be required. For this purpose, we now default to the following clang++
flags:
- -std=c++14
- -Wall
- -fms-compatibility-version=19.10
- -fms-compatibility
- -Wmicrosoft
- -Wno-invalid-token-paste
- -Wno-unknown-pragmas
- -Wno-unused-variable
- -Wno-unused-value
from clang-power-tools.
How this issue is solved I will close it now.
Thank you for taking the time and helping us make a better product.
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 5
- Compile - ignore third-party project files
- Is there a way to kill "release notes" pop up? HOT 1
- NuGet Packages out-of-date HOT 1
- Clang Format Editor missing Publisher HOT 3
- Missing context menu item after install. HOT 2
- Index was out of range error when using CMake project
- Exported compile_commands.json file doesn't include paths to external headers. HOT 2
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.