GithubHelp home page GithubHelp logo

Preprocess fails about emacs-ccls HOT 5 CLOSED

emacs-lsp avatar emacs-lsp commented on June 19, 2024
Preprocess fails

from emacs-ccls.

Comments (5)

MaskRay avatar MaskRay commented on June 19, 2024 1

This may be a somewhat ugly solution:

(nbutlast (gethash "args" (ccls-file-info)) 3)

But -working-directory= is also important. It gives the "directory": ... information.

from emacs-ccls.

MaskRay avatar MaskRay commented on June 19, 2024

-working-directory and -resource-dir are clang-specific options not known to GCC. When the first argument (compiler driver) is gcc, there might be some unavoidable processing to make up a runnable command line, but I'm not sure how this should be done.

from emacs-ccls.

myrgy avatar myrgy commented on June 19, 2024

I think there are 2 options - use gcc with original command line or perform call using clang, embedded into ccls.
UPD: here is rtags solution: https://github.com/Andersbakken/rtags/blob/4747d5b695bee40c3b0a2e3591ac8897571edd66/src/Preprocessor.cpp

from emacs-ccls.

myrgy avatar myrgy commented on June 19, 2024

Better than nothing! will give a try! Thanks!

from emacs-ccls.

MaskRay avatar MaskRay commented on June 19, 2024

Since this can be easily fixed I am closing this

from emacs-ccls.

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.