Code Monkey home page Code Monkey logo

Comments (3)

ddalcino avatar ddalcino commented on July 30, 2024

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:

  1. 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.
  2. 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 Studio cl.exe compiler until clang-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.

pcolaianni avatar pcolaianni commented on July 30, 2024

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.

ddalcino avatar ddalcino commented on July 30, 2024

No problem, thank you for filing the bug with llvm!

from gui_starter_template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.