Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
    wallenwang
    @wallenwang
    用ccls索引glibc 2.17的代码,总是报这个错,查了下是clang不支持这种嵌套的函数,怎么破。。
    我用的gcc版本是4.8.5,llvm+clang是9.0.0
    defolos
    @defolos:matrix.org
    [m]
    hey, does anyone know which theme is being used on https://github.com/MaskRay/emacs-ccls?
    Stephen Zhang
    @stark-zhang
    hey, I am using ccls and coc.nvim to read/write cpp code. ccls always takes me to the position of function decleartion when I want to view the definition, how to go to definition directly?
    Zj.zhang
    @zhijie-zhang
    提个问题, 为啥ccls的.ccls-cache里面会有项目源码?
    Sergey Pashaev
    @sergey-pashaev
    Hey guys! I have a question related to ccls/lsp protocol. Is there any query that would provide information about the symbol under the cursor? In a way that I could easily parse and pipe it to another tool. For example: when I put cursor on a field declaration lsp-server returns some info from which I could extract that it's some field named Foo in class Bar with type T. Maybe ccls already doing something similar?
    gyl
    @ooknn
    image.png
    image.png
    ubuntu18.04ccls总是崩溃
    gyl
    @ooknn

    看了下堆栈,#111323 0x000055a8d9a4454d in clang::ASTContext::getTypeInfo(clang::Type const*) const ()

    #111324 0x000055a8d9a43975 in clang::ASTContext::getTypeInfoImpl(clang::Type const*) const ()

    有好几十万层,应该是爆了,但是在命令行下执行ccls索引同一个项目不会出现

    gyl
    @ooknn
    #498一样的堆栈, #390 说是堆栈大小
    Zj.zhang
    @zhijie-zhang
    @sergey-pashaev enable highlight Isrange
    highlight lsRanges : true
    wusatosi
    @wusatosi
    Hi, I know I am probably being really dumb. But I cannot resolve the [ccls 2] [E] no member named 'cout' in namespace 'std' problem
    I did not write a .ccls file, but I generated a compile_commands.json file in the project root using cmake
    My CMake works and I am sure my project runs as intended.
    Looking through the documentation here, I tried to step into <stdio.h>, <new> with success, but I cannot step into <stddef.h>
    wusatosi
    @wusatosi
    From the documentation, I noticed all the std source file lives under the clang -print-resource-dir directory. I checked and the <stddef.h> is there
    I see I can also step into the iostream header file, and the cout (std::cout that ccls is complaining that I'm missing) is present.
    wusatosi
    @wusatosi
    Okay I recompiled ccls and it worksnow
    Qiming zhao
    @chemzqm
    list.maxPreviewHeight
    Harold7233
    @Harold7233
    image.png
    image.png
    ccls crashed and the log shows no errors?
    clanghans
    @clanghans
    Hi, while indexing there are a lot of lines with ’error:20 Endian not defined’. How can I resolve this?
    Zachary Streeter
    @zstreeter

    I'm having trouble with linting setup with ccls. I get "use of undeclared identifier 'Operator' but the header file Operator.h is included without error so I'm confused. Here is my .ccls

    │ File: .ccls
    clang

    %h -x
    %h c++-header
    -I
    include

    Zachary Streeter
    @zstreeter
    UPDATE: I created a compile_commands.json file with CMake and it works as expected. What is the correct .ccls file I need, in case I can't get the json file?
    ranjithshegde
    @ranjithshegde
    have been very very happy with ccls. recently tried out clangd and was surprised at the extent of the hover documentation
    is there any config I need to do to get as much from documentation? (nvim, coc + ccls)
    Kevin Morris
    @kevr
    Hello. I have a problem with ccls missing out on some source file information. I have a C++ project. There is a template class located in the C++ project that is a base for another file in the project. When viewing the file, ccls gives me a publishDiagnostics notification about the base class not being a base of derived, but it is. I can compile this with no issue.
    here's a paste of :CocCommand workspace.showOutput: http://sprunge.us/CxQwEg
    The file that contains the base class is src/Pipe.hpp. The file that contains the derivation of Pipe is src/ESP.cpp.
    I executed this command while viewing src/ESP.cpp, which is where the issue occurs.
    One issue that I do see out of the box is that, for some reason, it is storing information about my standard x86_64 compiler, but all files compiled in this project are compiled with another toolchain at avr-g++.
    It doesn't seem to be causing issues, but it does look like it shouldn't be happening.
    Kevin Morris
    @kevr

    Here's a ~/.vim/coc-settings.json I own: http://sprunge.us/KpMyCk

    Is there anything wrong with this? Coc doesn't seem to be loading .ccls-cpp in the root of my project.

    If I rename it to .ccls, it loads up fine, but it doesn't go with .ccls-cpp in rootPatterns
    Apologies, wrong channel.
    David Manouchehri
    @Manouchehri
    How can I remap codeql-zip-archive://0-42/mnt/space/v8/7.9.317.33/v8/codeql/src.zip/mnt/space/v8/7.9.317.33/v8/ to file://mnt/space/v8/7.9.317.33/v8/?
    David Manouchehri
    @Manouchehri
    Decided to open a proper ticket for my question. =) MaskRay/ccls#776
    Ryan Bray
    @rbray89:matrix.org
    [m]
    Hi @all, I was wondering if it is possible for CCLS to index symbols from ASM files.
    Ryan Bray
    @rbray89:matrix.org
    [m]
    I take it there isn't.
    Is there a way to have CCLS limit reference results to specific directories or trees
    Tim Sanders
    @Gollum999
    CCLS is indexing everything except files listed in my compile_commands.json? Anyone know how that could happen?
    I confirmed in the log that it finds the correct compile_commands.json and it looks like it is using the right -resource-dir.
    Also c-index-test -index-file local /path/to/source_file.cpp and c-index-test -compilation-db lookup /path/to/source_file.cpp /path/to/compile_commands.json both return sane-looking results
    Mohammad Arfan
    @marfanr
    image.png
    hello, I use ccls in atom for coding c, how do I get rid of this problem notification because when it is compiled it works fine.
    incompatible pointer types passing 'int [14]' to parameter of type 'CHAR16 *' (aka 'unsigned short *')
    klasdjflashd
    @klasdjflashd:matrix.org
    [m]
    Are thre any problems with ccls and libc++?
    i6o6i
    @i6o6i
    根据https://github.com/MaskRay/ccls/wiki/Build#build-clangllvm-by-yourself编译ccls出现错误
    llvm-mt: error: no libxml2 llvm-mt: ignoring unsupported 'notify_update' option