Comments (4)
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.
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.
Makes sense to me. Feel free to work up a patch.
from dxr.
Cool. :)
from dxr.
Related Issues (20)
- Advance searching in folder does not work HOT 1
- Cannot access https://dxr.mozilla.org/mozilla-central/source/devtools/client/debugger/new/debugger.js HOT 3
- How to pass multiple arguments to clang plugin ? HOT 1
- DXR fails to index files tracked by git when www_root is set
- Add robots.txt
- Suggestion: Publish to public docker hub
- Upgrade the clang plugin to clang 7 API HOT 1
- Wiki changes
- Support for distributing indexing tasks on a cluster of machines HOT 1
- Question: atomicity/consistency of incremental indexing HOT 1
- How to create a separate index for each git commit and allow browsing code as of old commits HOT 3
- "python setup.py install" results in "error: click 4.1 is installed but click>=5.1 is required by set(['Flask'])" HOT 4
- CODE_OF_CONDUCT.md file missing
- Installation fails due to conflicting click version HOT 2
- Search input isn't detected by Firefox One-Click Search Engines HOT 1
- missed keys set(['python', 'buglink', 'xpidl']) HOT 2
- Basic beginner 'getting started' broken HOT 3
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
- Suggestion: Dark mode
- Python3 support HOT 2
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 dxr.