Git Product home page Git Product logo

Comments (4)

bobbrow avatar bobbrow commented on June 3, 2024

${fileDirname} is not a stable path, so that variable is not supported in our configurations. Currently our extension only allows for per-file configurations via compile_commands.json and configurationProvider.

I believe this has been requested before, but I'm not sure that we kept that issue. We could maybe detect variables like ${fileDirname} and create a hidden configuration provider for them. I'll mark this as a feature request.

from vscode-cpptools.

fr43nk avatar fr43nk commented on June 3, 2024

Ok, thanks.

just to explain a bit more: my first guess was, to write those include paths without the ${fileDirname} variable but that didn't work either. The goal is, that the search behavior is the same as the compiler does. There I have the same include structure. So in the end it would also be sufficient for me to just write ../../h. The extensions just needs to know that the start for all included header files is the current file.

from vscode-cpptools.

bobbrow avatar bobbrow commented on June 3, 2024

If your files all have a common parent folder, you could do: /project/commonparent/**/h and /project/commonparent/**/incs and we'll figure out the include paths for you.

from vscode-cpptools.

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.