Comments (3)
Clang-cl is new to me, so please take anything I say with a big grain of salt.
I had a look at the the llvm docs for supported command-line options (https://clang.llvm.org/docs/UsersManual.html#id9), and it sounds to me like the options they support are a subset of the full MSVC command-line options list. The docs provide a full listing of the options supported, and /permissive-
is not on it.
A direct quote:
"Please file a bug for any valid cl.exe flags that clang-cl does not understand."
How would you achieve the desired result?
I would do two things:
- File the bug report. The old adage "it's not the compiler, it's you" should not apply to
clang-cl.exe
, because it's a compatibility layer, not a compiler. Until the bug is fixed,clang-cl.exe
will not do the job you want it to. - Use multiple builds to make sure you're getting all the warnings you need. To get the
/permissive-
flag, I would use the standard Visual Studiocl.exe
compiler untilclang-cl.exe
is patched. To my knowledge,cl.exe
can warn for things that gcc and clang cannot: See Cpp Weekly #46. Additionally, I would compile regularly with clang and gcc as well: this is what the Travis-CI, Appveyor and Github-Actions builds are for.
from gui_starter_template.
Thanks David, that is very helpful information.
I filed the bug; hopefully it'll be easy to fix.
I like the idea of having builds for each supported platform. That is probably the best way to go, in any case.
As this issue is not found about the cpp_starter_project, I am closing it.
from gui_starter_template.
No problem, thank you for filing the bug with llvm!
from gui_starter_template.
Related Issues (20)
- CI fails with "Detected a mismatch for the compiler version between your conan profile"
- Failure upon building the project on OSX HOT 3
- Showing up as the smaller cpp_boilerplate_project HOT 2
- Builds fail for CMake < 3.18 HOT 5
- publish docker image HOT 3
- Regex broken in clang format HOT 4
- build error on OSX HOT 1
- conan install fails due to zlib version conflict HOT 1
- PROJECT_IS_TOP_LEVEL in test/CMakeLists.txt is not set prior to CMake 3.21
- Env variables left in cache causes gcc-11 builds on ubuntu to fail HOT 5
- Doesn't work with openssl dependency HOT 5
- CI Failures on Ubuntu and Windows HOT 1
- Imgui examples.
- Doxygen was removed?
- Failing configuration with VS 2017
- why a template, want to clone to my machine HOT 1
- Conan error sdl/2.0.20
- Error with CLI library
- How to change LSAN variables HOT 1
- Using static constexpr in header file leads to duplication of data.
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 gui_starter_template.