Skip to content

On the Question of Cross-compiler Project #213

@3038922

Description

@3038922

My English is not very good, so I need to use translation software. Thank you very much for your guidance, I have successfully built llvm and ccls.
q1:
The VS CODE console displays the following error message. It's the same as cquery I used before.
I'm a student's competition. I can't see 'main. cpp' in it.Only 'main.hpp.'
Does this cause no index?
[Error - 11:42:19 AM] Request textDocument/codeAction failed. Message: not indexed Code: -32600 [Error - 11:42:19 AM] Request textDocument/documentLink failed. Message: not indexed Code: -32600 [Error - 11:42:19 AM] Request textDocument/documentLink failed. Message: not indexed Code: -32600 [Error - 11:42:19 AM] Request textDocument/foldingRange failed. Message: not indexed Code: -32600 [Error - 11:42:20 AM] Request textDocument/documentSymbol failed. Message: not indexed Code: -32600
image

Q2:
Lines of Preprocessing code do not darken.
image
My CCLS configuration:

`
"ccls.launch.command": "c:/users/35807/ccls/Release/ccls.exe",

"ccls.cacheDirectory": "c:/ccls-cache/",

"ccls.completion.enableSnippetInsertion": true, 

"ccls.highlighting.enabled.types": true,

"ccls.highlighting.enabled.freeStandingFunctions": true,

"ccls.highlighting.enabled.memberFunctions": true,

"ccls.highlighting.enabled.freeStandingVariables": true,

"ccls.highlighting.enabled.memberVariables": true,

"ccls.highlighting.enabled.namespaces": true,

"ccls.highlighting.enabled.macros": true,

"ccls.highlighting.enabled.enums": true,

"ccls.highlighting.enabled.typeAliases": true,

"ccls.highlighting.enabled.enumConstants": true,

"ccls.highlighting.enabled.staticMemberFunctions": true,

"ccls.highlighting.enabled.parameters": true,

"ccls.highlighting.enabled.templateParameters": true,

"ccls.highlighting.enabled.staticMemberVariables": true,

"ccls.highlighting.enabled.globalVariables": true,

"ccls.index.onChange": true

`

A part of my compile_commands.json (use bear make)
{ "arguments": [ "clang++", "-c", "-target", "armv7ar-none-none-eabi", "-fno-ms-extensions", "-fno-ms-compatibility", "-fno-delayed-template-parsing", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/include", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/include-fixed", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/include", "-iquote./include", "-iquote./include/system/", "-mcpu=cortex-a9", "-mfpu=neon-fp16", "-mfloat-abi=softfp", "-D_POSIX_THREADS", "-D_UNIX98_THREAD_MUTEX_ATTRIBUTES", "-Os", "-Wno-psabi", "-ffunction-sections", "-fdata-sections", "-fdiagnostics-color", "--std=gnu11", "-o", "bin/system/ncr_font10.c.o", "src\\system\\ncr_font10.c" ], "directory": "D:\\turningPointV5", "file": "src\\system\\ncr_font10.c" }, { "arguments": [ "clang++", "-c", "-target", "armv7ar-none-none-eabi", "-fno-ms-extensions", "-fno-ms-compatibility", "-fno-delayed-template-parsing", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/include/c++/8.2.1", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/include/c++/8.2.1/arm-none-eabi/thumb/v7+fp/softfp", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/include/c++/8.2.1/backward", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/include", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/include-fixed", "-isystemc:\\program files\\pros\\toolchain\\usr\\bin\\../lib/gcc/arm-none-eabi/8.2.1/../../../../arm-none-eabi/include", "-iquote./include", "-iquote./include/userDisplay/", "-mcpu=cortex-a9", "-mfpu=neon-fp16", "-mfloat-abi=softfp", "-D_POSIX_THREADS", "-D_UNIX98_THREAD_MUTEX_ATTRIBUTES", "-Os", "-Wno-psabi", "-funwind-tables", "-ffunction-sections", "-fdata-sections", "-fdiagnostics-color", "--std=gnu++17", "-o", "bin/userDisplay/odomPage.cpp.o", "src\\userDisplay\\odomPage.cpp" ], "directory": "D:\\turningPointV5", "file": "src\\userDisplay\\odomPage.cpp" },
my makefile
Github's code support for makefile is not working. So I use pictures. Sorry.
image
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions