Code Monkey home page Code Monkey logo

Comments (4)

erikrose avatar erikrose commented on June 14, 2024

Hi, Chris. The plugin itself is full of ifdefs and supports a range of clang versions—it looks like 3.2-3.5. We do "bundle" the one we test against (3.5), in that we install it by default on the vagrant box.

That in mind, what did you have in mind? Perhaps we should, for example, stick clang3.5 in CC rather than merely clang.

from dxr.

cwgreene avatar cwgreene commented on June 14, 2024

Hi Erik,

Consider the following scenario:

Project X needs to be built with a specific version of clang (maybe it's a clang plugin project itself, like YCM, uses C++ features that only got implemented recently, needs a specific flag that only exists for some clang versions, or it uses it's own clang plugins during compilation, like chromium does). The plugin will need to be recompiled, and dxr will need to invoke the correct version of clang and use the correct plugin. Some projects, YCM and chromium, for example, bundle their own versions of clang to ensure that they have compatibility.

Since this will be a per project behavior, dxr will need to figure out where to find the clang version for that project, (and potentially rebuild the plugin for that project). Hence my suggestion that these be dxr.config variables.

from dxr.

erikrose avatar erikrose commented on June 14, 2024

Makes sense to me. Feel free to work up a patch.

from dxr.

cwgreene avatar cwgreene commented on June 14, 2024

Cool. :)

from dxr.

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.