Last active
February 24, 2021 03:08
-
-
Save vastus/56e18d838d7a4aec4c0ed87ee509f15d to your computer and use it in GitHub Desktop.
cclsexample
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18:46:21 ccls initialize.cc:274 I initialize in directory /tmp/cclsexample with uri file:///tmp/cclsexample/. | |
18:46:21 ccls initialize.cc:297 I initializationOptions: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"","cache":{"directory":".ccls-cache","format":"binary","hierarchicalPath":false,"retainInMemory":2},"capabilities":{"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"}","moreTriggerCharacter":[]},"foldingRangeProvider":true,"workspace":{"workspaceFolders":{"supported":true,"changeNotifications":true}}},"clang":{"excludeArgs":[],"extraArgs":[],"pathMappings":[],"resourceDir":""},"client":{"diagnosticsRelatedInformation":true,"hierarchicalDocumentSymbolSupport":true,"linkSupport":true,"snippetSupport":true},"codeLens":{"localVariables":true},"completion":{"caseSensitivity":2,"detailedLabel":true,"dropOldRequests":true,"duplicateOptional":true,"filterAndSort":true,"include":{"blacklist":[],"maxPathSize":30,"suffixWhitelist":[".h",".hpp",".hh",".inc"],"whitelist":[]},"maxNum":100,"placeholder":true},"diagnostics":{"blacklist":[],"onChange":1000,"onOpen":0,"onSave":0,"spellChecking":true,"whitelist":[]},"highlight":{"largeFileSize":2097152,"lsRanges":false,"blacklist":[],"whitelist":[]},"index":{"blacklist":[],"comments":2,"initialNoLinkage":false,"initialBlacklist":[],"initialWhitelist":[],"maxInitializerLines":5,"multiVersion":0,"multiVersionBlacklist":[],"multiVersionWhitelist":[],"name":{"suppressUnwrittenScope":false},"onChange":false,"parametersInDeclarations":true,"threads":0,"trackDependency":2,"whitelist":[]},"request":{"timeout":5000},"session":{"maxNum":10},"workspaceSymbol":{"caseSensitivity":1,"maxNum":1000,"sort":true},"xref":{"maxNum":2000}} | |
18:46:21 ccls initialize.cc:329 I use -resource-dir=/usr/lib/clang/11.1.0 | |
18:46:21 ccls initialize.cc:361 I workspace folder: /tmp/cclsexample/ | |
18:46:21 ccls project.cc:284 I use /tmp/cclsexample/.ccls: clang -Iinclude | |
18:46:21 ccls initialize.cc:386 I start 12 indexers | |
18:46:21 ccls initialize.cc:394 I dispatch initial index requests | |
18:46:21 indexer0 pipeline.cc:386 I parse /tmp/cclsexample/src/main.c | |
clang -Iinclude /tmp/cclsexample/src/main.c -working-directory=/tmp/cclsexample/ | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/stdc-predef.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/gnu/stubs-64.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/wordsize.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/sys/cdefs.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/long-double.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/lib/clang/11.1.0/include/stdarg.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/gnu/stubs.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/floatn-common.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/libc-header-start.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/timesize.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/time64.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /tmp/cclsexample/src/main.c (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/typesizes.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/lib/clang/11.1.0/include/stddef.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/stdio_lim.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /tmp/cclsexample/include/cclsexample/defs.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types/__fpos_t.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/stdio.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types/__mbstate_t.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/features.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types/__fpos64_t.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types/__FILE.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types/FILE.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/types/struct_FILE.h (delta: 0) | |
18:46:21 indexer0 pipeline.cc:397 I store index for /usr/include/bits/floatn.h (delta: 0) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ccls version <unknown> | |
clang version 11.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clangd version 11.1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"languageserver": { | |
"ccls": { | |
"command": "ccls", | |
"filetypes": [ | |
"c", | |
"cpp" | |
], | |
"rootPatterns": [ | |
".ccls", | |
"compile_commands.json", | |
".vim/", | |
".git/", | |
".hg/" | |
], | |
"initializationOptions": { | |
"cache": { | |
"directory": "/tmp/ccls" | |
} | |
} | |
} | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#define MY_GREETING "Hello, ccls" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "cclsexample/defs.h" | |
#include <stdio.h> | |
int main(int argc, char *argv[]) | |
{ | |
puts(MY_GREETING); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CC = clang | |
CFLAGS += -Iinclude | |
main: src/main.o | |
$(CC) $(CFLAGS) -o main src/main.o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/tmp/cclsexample | |
├── ccls.log | |
├── ccls.version | |
├── clangd.version | |
├── include | |
│ └── cclsexample | |
│ └── defs.h | |
├── Makefile | |
└── src | |
└── main.c | |
3 directories, 6 files |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment