Coder Social home page Coder Social logo

Comments (6)

ahayzen-kdab avatar ahayzen-kdab commented on August 25, 2024

https://blog.jetbrains.com/rust/2022/12/05/what-every-rust-developer-should-know-about-macro-support-in-ides/ is relevant here too with the RUST_IDE_PROC_MACRO_COMPLETION_DUMMY_IDENTIFIER env var.

from cxx-qt.

LeonMatthesKDAB avatar LeonMatthesKDAB commented on August 25, 2024

Also see my comment on #455

from cxx-qt.

ahayzen-kdab avatar ahayzen-kdab commented on August 25, 2024

Interestingly internally cxx_gen has two options gen_header and gen_implementation https://github.com/dtolnay/cxx/blob/5ebaee1a1dd668ab48a231890a26bae5fa81888a/gen/src/mod.rs#L58 these then avoid the generation phase https://github.com/dtolnay/cxx/blob/5ebaee1a1dd668ab48a231890a26bae5fa81888a/gen/src/mod.rs#L178

Say that these were public or we could modify them somehow, this would allow us to pass the tokens through CXX and find out if it was the parsing/checks phase that has failed or the write phase. Which then means if this first phase failed we could stop the build script and emit a warning, then we know that the macro expansion will fail ?

But as the later write phases don't fail there is actually no advantage here? So if the generate_header_and_cc fails this means the same and we should try to warn.

from cxx-qt.

ahayzen-kdab avatar ahayzen-kdab commented on August 25, 2024

Think i've figured it out 😅

from cxx-qt.

ahayzen-kdab avatar ahayzen-kdab commented on August 25, 2024

#547 has massively helped with this. I think this issue is done now ?

from cxx-qt.

ahayzen-kdab avatar ahayzen-kdab commented on August 25, 2024

We have separate issues for any remaining tasks.

from cxx-qt.

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.