完整的 cq.log
arguments: /usr/local/bin/cquery --language-server --log-file=/tmp/cq.log --log-stdin-stdout-to-stderr
Current dir: /Users/gqj/Dropbox/scratch/c/os-detecting-makefile
File verbosity level: 9
date time ( uptime ) [ thread name/id] file:line v|
2018-02-28 19:22:51.811 ( 0.001s) [main thread ] loguru.hpp:2014 0| Logging to '/tmp/cq.log', mode: 'w', verbosity: 9
2018-02-28 19:22:51.812 ( 0.001s) [querydb ] initialize.cc:481 0| Init parameters: {"compilationDatabaseCommand":"","compilationDatabaseDirectory":"","cacheDirectory":"/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/","cacheFormat":"json","resourceDirectory":"","extraClangArguments":[],"progressReportFrequencyMs":500,"showDocumentLinksOnIncludes":true,"diagnosticsOnParse":true,"client":{"snippetSupport":false},"codeLens":{"localVariables":true},"completion":{"detailedLabel":false,"filterAndSort":true,"includeBlacklist":[],"includeMaxPathSize":30,"includeSuffixWhitelist":[".h",".hpp",".hh"],"includeWhitelist":[]},"index":{"attributeMakeCallsToCtor":true,"blacklist":[],"comments":2,"enabled":true,"logSkippedPaths":false,"threads":0,"whitelist":[]},"workspaceSymbol":{"maxNum":1000,"sort":true},"xref":{"container":false,"maxNum":2000},"dumpAST":[]}
2018-02-28 19:22:51.812 ( 0.001s) [querydb ] initialize.cc:485 0| [querydb] Initialize in directory /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/ with uri file:///Users/gqj/Dropbox/scratch/c/os-detecting-makefile/
2018-02-28 19:22:51.812 ( 0.002s) [querydb ] initialize.cc:545 0| Using -resource-dir=/usr/local/Cellar/cquery/HEAD-5f3a240/lib/clang+llvm-5.0.1-x86_64-apple-darwin/lib/clang/5.0.1
2018-02-28 19:22:51.812 ( 0.002s) [stdout ] timer.cc:35 0| [e2e] Running initialize took 0.462ms
2018-02-28 19:22:51.812 ( 0.002s) [querydb ] project.cc:324 0| Using .cquery arguments from /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery
2018-02-28 19:22:51.813 ( 0.002s) [querydb ] timer.cc:35 0| [perf] Loaded compilation entries (1 files) took 0.354ms
2018-02-28 19:22:51.813 ( 0.002s) [querydb ] initialize.cc:602 0| Starting 3 indexers
2018-02-28 19:22:51.813 ( 0.003s) [querydb ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:22:51.813 ( 0.003s) [querydb ] timer.cc:35 0| [perf] Dispatched initial index requests took 0.97ms
2018-02-28 19:22:51.813 ( 0.003s) [indexer0 ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c
2018-02-28 19:22:51.813 ( 0.003s) [indexer0 ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c.json
2018-02-28 19:22:51.813 ( 0.003s) [scan_includes] timer.cc:35 0| [perf] Scanning for includes took 0.476ms
2018-02-28 19:22:51.813 ( 0.003s) [indexer0 ]import_pipeline.cc:369 0| Parsing /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:22:51.815 ( 0.005s) [querydb ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c
2018-02-28 19:22:51.815 ( 0.005s) [querydb ]message_handler.cc:81 0| "/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c" is being indexed.
2018-02-28 19:22:51.815 ( 0.005s) [querydb ] timer.cc:35 0| [querydb] Loading cached index file for DidOpen (blocks CodeLens) took 0.188ms
2018-02-28 19:22:51.816 ( 0.005s) [completeparse] clang_complete.cc:400 0| Creating completion session with arguments gcc -D DARWIN main.c -working-directory=/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/ /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c -resource-dir=/usr/local/Cellar/cquery/HEAD-5f3a240/lib/clang+llvm-5.0.1-x86_64-apple-darwin/lib/clang/5.0.1 -Wno-unknown-warning-option -fparse-all-comments -fspell-checking
2018-02-28 19:22:51.816 ( 0.005s) [indexer1 ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c
2018-02-28 19:22:51.816 ( 0.005s) [indexer1 ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c.json
2018-02-28 19:22:51.816 ( 0.005s) [indexer1 ]import_pipeline.cc:369 0| Parsing /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:22:51.839 ( 0.028s) [ 13CAC2C] utils.cc:319 0| Reading /usr/include/stdio.h
2018-02-28 19:22:51.840 ( 0.029s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/cdefs.h
2018-02-28 19:22:51.841 ( 0.030s) [ 13CAC2C] utils.cc:319 0| Reading /usr/include/Availability.h
2018-02-28 19:22:51.842 ( 0.032s) [ 13CAC2C] utils.cc:319 0| Reading /usr/include/_types.h
2018-02-28 19:22:51.842 ( 0.032s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/_types.h
2018-02-28 19:22:51.842 ( 0.032s) [ 13CAC2C] utils.cc:319 0| Reading /usr/include/machine/_types.h
2018-02-28 19:22:51.842 ( 0.032s) [ 13CAC2C] utils.cc:319 0| Reading /usr/include/sys/_pthread/_pthread_types.h
2018-02-28 19:22:51.843 ( 0.032s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/stdio.h
2018-02-28 19:22:51.843 ( 0.033s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/secure/_stdio.h
2018-02-28 19:22:51.843 ( 0.033s) [ 13CAC2C] utils.cc:319 0| Reading /usr/include/i386/_types.h
2018-02-28 19:22:51.844 ( 0.034s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/_types/_va_list.h
2018-02-28 19:22:51.844 ( 0.034s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/_types/_size_t.h
2018-02-28 19:22:51.845 ( 0.034s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/_types/_off_t.h
2018-02-28 19:22:51.845 ( 0.035s) [ 13CAC2D] utils.cc:319 0| Reading /usr/include/sys/_types/_ssize_t.h
2018-02-28 19:22:51.849 ( 0.039s) [indexer1 ] utils.cc:319 0| Reading /usr/include/sys/_symbol_aliasing.h
2018-02-28 19:22:51.851 ( 0.041s) [indexer0 ] utils.cc:319 0| Reading /usr/include/sys/_posix_availability.h
2018-02-28 19:22:51.853 ( 0.043s) [indexer0 ] utils.cc:319 0| Reading /usr/include/AvailabilityInternal.h
2018-02-28 19:22:51.872 ( 0.062s) [indexer1 ] utils.cc:319 0| Reading /usr/include/sys/_types/_null.h
2018-02-28 19:22:51.886 ( 0.075s) [indexer1 ] utils.cc:319 0| Reading /usr/include/secure/_common.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/secure/_common.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_types/_null.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_symbol_aliasing.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/Availability.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/i386/_types.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/machine/_types.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_pthread/_pthread_types.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/_types.h
2018-02-28 19:22:51.888 ( 0.078s) [indexer1 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/stdio.h
2018-02-28 19:22:51.890 ( 0.080s) [indexer2 ]import_pipeline.cc:453 0| Built index update for /usr/include/secure/_common.h (is_delta=0)
2018-02-28 19:22:51.890 ( 0.080s) [indexer2 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/secure/_common.h
2018-02-28 19:22:51.891 ( 0.080s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_types/_null.h (is_delta=0)
2018-02-28 19:22:51.891 ( 0.080s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_types/_null.h
2018-02-28 19:22:51.892 ( 0.081s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_symbol_aliasing.h (is_delta=0)
2018-02-28 19:22:51.892 ( 0.081s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_symbol_aliasing.h
2018-02-28 19:22:51.894 ( 0.083s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/secure/_common.h took 0.87ms
2018-02-28 19:22:51.894 ( 0.083s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_types/_null.h took 0.14ms
2018-02-28 19:22:51.894 ( 0.084s) [indexer2 ]import_pipeline.cc:453 0| Built index update for /usr/include/Availability.h (is_delta=0)
2018-02-28 19:22:51.894 ( 0.084s) [indexer2 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/Availability.h
2018-02-28 19:22:51.894 ( 0.084s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/i386/_types.h (is_delta=0)
2018-02-28 19:22:51.894 ( 0.084s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/i386/_types.h
2018-02-28 19:22:51.896 ( 0.086s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/machine/_types.h (is_delta=0)
2018-02-28 19:22:51.896 ( 0.086s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/machine/_types.h
2018-02-28 19:22:51.897 ( 0.086s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_symbol_aliasing.h took 0.84ms
2018-02-28 19:22:51.897 ( 0.087s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/Availability.h took 0.133ms
2018-02-28 19:22:51.897 ( 0.087s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/i386/_types.h took 0.127ms
2018-02-28 19:22:51.897 ( 0.087s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/machine/_types.h took 0.15ms
2018-02-28 19:22:51.898 ( 0.088s) [indexer2 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_pthread/_pthread_types.h (is_delta=0)
2018-02-28 19:22:51.898 ( 0.088s) [indexer2 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_pthread/_pthread_types.h
2018-02-28 19:22:51.901 ( 0.091s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c (is_delta=0)
2018-02-28 19:22:51.901 ( 0.091s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:22:51.902 ( 0.092s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/_types.h (is_delta=0)
2018-02-28 19:22:51.902 ( 0.092s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/_types.h
2018-02-28 19:22:51.904 ( 0.094s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/stdio.h (is_delta=0)
2018-02-28 19:22:51.905 ( 0.094s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/stdio.h
2018-02-28 19:22:51.913 ( 0.103s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_pthread/_pthread_types.h, /usr/include/_types.h, /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c, /usr/include/stdio.h took 0.583ms
2018-02-28 19:22:51.913 ( 0.103s) [stdout ] timer.cc:35 0| [e2e] Running $cquery/publishSemanticHighlighting took 0.5ms
2018-02-28 19:22:52.014 ( 0.204s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/AvailabilityInternal.h
2018-02-28 19:22:52.014 ( 0.204s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_posix_availability.h
2018-02-28 19:22:52.015 ( 0.204s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_types/_ssize_t.h
2018-02-28 19:22:52.015 ( 0.205s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_types/_size_t.h
2018-02-28 19:22:52.015 ( 0.205s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_types/_va_list.h
2018-02-28 19:22:52.015 ( 0.205s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/secure/_stdio.h
2018-02-28 19:22:52.016 ( 0.205s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/stdio.h
2018-02-28 19:22:52.016 ( 0.206s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_types/_off_t.h
2018-02-28 19:22:52.016 ( 0.206s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/_types.h
2018-02-28 19:22:52.016 ( 0.206s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /usr/include/sys/cdefs.h
2018-02-28 19:22:52.018 ( 0.208s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_posix_availability.h (is_delta=0)
2018-02-28 19:22:52.018 ( 0.208s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_posix_availability.h
2018-02-28 19:22:52.020 ( 0.210s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_posix_availability.h took 0.36ms
2018-02-28 19:22:52.020 ( 0.210s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_types/_ssize_t.h (is_delta=0)
2018-02-28 19:22:52.020 ( 0.210s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_types/_ssize_t.h
2018-02-28 19:22:52.020 ( 0.210s) [indexer2 ]import_pipeline.cc:453 0| Built index update for /usr/include/AvailabilityInternal.h (is_delta=0)
2018-02-28 19:22:52.020 ( 0.210s) [indexer2 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/AvailabilityInternal.h
2018-02-28 19:22:52.021 ( 0.211s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_types/_ssize_t.h took 0.26ms
2018-02-28 19:22:52.021 ( 0.211s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_types/_size_t.h (is_delta=0)
2018-02-28 19:22:52.021 ( 0.211s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_types/_size_t.h
2018-02-28 19:22:52.021 ( 0.211s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_types/_size_t.h took 0.26ms
2018-02-28 19:22:52.021 ( 0.211s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_types/_va_list.h (is_delta=0)
2018-02-28 19:22:52.022 ( 0.211s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_types/_va_list.h
2018-02-28 19:22:52.022 ( 0.212s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/secure/_stdio.h (is_delta=0)
2018-02-28 19:22:52.022 ( 0.212s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/secure/_stdio.h
2018-02-28 19:22:52.022 ( 0.212s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/stdio.h (is_delta=0)
2018-02-28 19:22:52.022 ( 0.212s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/stdio.h
2018-02-28 19:22:52.022 ( 0.212s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_types/_va_list.h took 0.29ms
2018-02-28 19:22:52.023 ( 0.213s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_types/_off_t.h (is_delta=0)
2018-02-28 19:22:52.023 ( 0.213s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_types/_off_t.h
2018-02-28 19:22:52.023 ( 0.213s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/stdio.h took 0.36ms
2018-02-28 19:22:52.024 ( 0.214s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_types/_off_t.h took 0.30ms
2018-02-28 19:22:52.025 ( 0.215s) [indexer0 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/_types.h (is_delta=0)
2018-02-28 19:22:52.025 ( 0.215s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/secure/_stdio.h took 0.66ms
2018-02-28 19:22:52.025 ( 0.215s) [indexer1 ]import_pipeline.cc:453 0| Built index update for /usr/include/sys/cdefs.h (is_delta=0)
2018-02-28 19:22:52.026 ( 0.215s) [indexer1 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/cdefs.h
2018-02-28 19:22:52.026 ( 0.216s) [indexer0 ]import_pipeline.cc:458 0| Writing cached index to disk for /usr/include/sys/_types.h
2018-02-28 19:22:52.029 ( 0.219s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/sys/_types.h, /usr/include/sys/cdefs.h took 0.219ms
2018-02-28 19:22:52.105 ( 0.295s) [querydb ] timer.cc:35 0| Applying index update for /usr/include/AvailabilityInternal.h took 0.404ms
2018-02-28 19:22:55.964 ( 4.154s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/documentHighlight took 0.149ms
2018-02-28 19:22:55.967 ( 4.157s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/codeAction took 0.409ms
2018-02-28 19:22:55.969 ( 4.159s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/hover took 0.83ms
2018-02-28 19:22:56.795 ( 4.984s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/definition took 0.377ms
2018-02-28 19:22:57.306 ( 5.495s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/documentHighlight took 0.130ms
2018-02-28 19:22:57.308 ( 5.498s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/codeAction took 0.327ms
2018-02-28 19:22:57.311 ( 5.500s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/hover took 0.99ms
2018-02-28 19:25:05.908 ( 134.093s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/documentHighlight took 0.131ms
2018-02-28 19:25:05.911 ( 134.096s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/codeAction took 0.62ms
2018-02-28 19:25:05.913 ( 134.098s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/hover took 0.56ms
2018-02-28 19:25:06.915 ( 135.100s) [completequery] timer.cc:35 0| [complete] TryEnsureDocumentParsed took 0.0ms
2018-02-28 19:25:06.915 ( 135.100s) [completequery] timer.cc:35 0| [complete] Creating WorkingFile snapshot took 0.6ms
2018-02-28 19:25:06.916 ( 135.101s) [completequery] timer.cc:35 0| [complete] clang_reparseTranslationUnit took 1.1522ms
2018-02-28 19:25:07.713 ( 135.898s) [completequery] timer.cc:35 0| [complete] TryEnsureDocumentParsed took 0.0ms
2018-02-28 19:25:07.713 ( 135.898s) [completequery] timer.cc:35 0| [complete] Creating WorkingFile snapshot took 0.10ms
2018-02-28 19:25:07.720 ( 135.905s) [completequery] timer.cc:35 0| [complete] clang_reparseTranslationUnit took 6.6377ms
2018-02-28 19:25:08.385 ( 136.570s) [querydb ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:25:08.385 ( 136.570s) [indexer0 ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c
2018-02-28 19:25:08.385 ( 136.570s) [completeparse] clang_complete.cc:400 0| Creating completion session with arguments gcc -D DARWIN main.c -working-directory=/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/ /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c -resource-dir=/usr/local/Cellar/cquery/HEAD-5f3a240/lib/clang+llvm-5.0.1-x86_64-apple-darwin/lib/clang/5.0.1 -Wno-unknown-warning-option -fparse-all-comments -fspell-checking
2018-02-28 19:25:08.385 ( 136.570s) [indexer0 ] utils.cc:319 0| Reading /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c.json
2018-02-28 19:25:08.386 ( 136.571s) [indexer0 ]import_pipeline.cc:173 0| Timestamp has changed for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:25:08.386 ( 136.571s) [indexer0 ]import_pipeline.cc:369 0| Parsing /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:25:08.410 ( 136.595s) [indexer0 ]import_pipeline.cc:401 0| Emitting index result for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:25:08.410 ( 136.595s) [indexer2 ]import_pipeline.cc:453 0| Built index update for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c (is_delta=1)
2018-02-28 19:25:08.410 ( 136.595s) [indexer2 ]import_pipeline.cc:458 0| Writing cached index to disk for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c
2018-02-28 19:25:08.410 ( 136.595s) [querydb ] timer.cc:35 0| Applying index update for /Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c took 0.34ms
2018-02-28 19:25:08.411 ( 136.596s) [stdout ] timer.cc:35 0| [e2e] Running $cquery/publishSemanticHighlighting took 136492.136356118ms
2018-02-28 19:25:12.841 ( 141.026s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/documentHighlight took 1.1557ms
2018-02-28 19:25:12.842 ( 141.027s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/codeAction took 0.281ms
2018-02-28 19:25:12.845 ( 141.030s) [stdout ] timer.cc:35 0| [e2e] Running textDocument/hover took 0.275ms
⋊> ag platf0rm .cquery_cached_index/
.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c
5: char *platf0rm = "Linux";
7: printf("Hello, %s\n", platf0rm);
.cquery_cached_index/@Users@gqj@Dropbox@scratch@c@os-detecting-makefile/main.c.json
2:{"last_modification_time":1519817108,"language":1,"import_file":"/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c","args":["gcc -D DARWIN main.c","-working-directory=/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/","/Users/gqj/Dropbox/scratch/c/os-detecting-makefile/main.c","-resource-dir=/usr/local/Cellar/cquery/HEAD-5f3a240/lib/clang+llvm-5.0.1-x86_64-apple-darwin/lib/clang/5.0.1","-Wno-unknown-warning-option","-fparse-all-comments"],"includes":[{"line":0,"resolved_path":"/usr/include/stdio.h"}],"dependencies":["/usr/include/stdio.h","/usr/include/sys/cdefs.h","/usr/include/Availability.h","/usr/include/_types.h","/usr/include/sys/_types.h","/usr/include/machine/_types.h","/usr/include/sys/_pthread/_pthread_types.h","/usr/include/sys/stdio.h","/usr/include/secure/_stdio.h","/usr/include/i386/_types.h","/usr/include/sys/_types/_va_list.h","/usr/include/sys/_types/_size_t.h","/usr/include/sys/_types/_off_t.h","/usr/include/sys/_types/_ssize_t.h","/usr/include/sys/_symbol_aliasing.h","/usr/include/sys/_posix_availability.h","/usr/include/AvailabilityInternal.h","/usr/include/sys/_types/_null.h","/usr/include/secure/_common.h"],"skipped_by_preprocessor":[],"types":[{"id":0,"usr":17,"detailed_name":"","short_name_offset":0,"short_name_size":0,"kind":0,"hover":"","comments":"","declarations":[],"bases":[],"derived":[],"types":[],"funcs":[],"vars":[],"instances":[0],"uses":[]},{"id":1,"usr":13,"detailed_name":"","short_name_offset":0,"short_name_size":0,"kind":0,"hover":"","comments":"","declarations":[],"bases":[],"derived":[],"types":[],"funcs":[],"vars":[],"instances":[1,2],"uses":[]}],"funcs":[{"id":0,"usr":7924728095432766067,"detailed_name":"int main(int argc, char **argv)","short_name_offset":4,"short_name_size":4,"kind":12,"storage":1,"hover":"","comments":"","declarations":[],"spell":"3:5-3:9|-1|1|2","extent":"3:1-9:2|-1|1|0","bases":[],"derived":[],"vars":[0,1,2],"uses":[],"callees":[]}],"vars":[{"id":0,"usr":12398735953131332281,"detailed_name":"int argc","short_name_offset":4,"short_name_size":4,"hover":"","comments":"","declarations":[],"spell":"3:14-3:18|0|3|2","extent":"3:10-3:18|0|3|0","type":0,"uses":[],"kind":253,"storage":1},{"id":1,"usr":671456311703663748,"detailed_name":"char *[] argv","short_name_offset":9,"short_name_size":4,"hover":"","comments":"","declarations":[],"spell":"3:26-3:30|0|3|2","extent":"3:20-3:32|0|3|0","type":1,"uses":[],"kind":253,"storage":1},
{"id":2,"usr":11059741219555227032,"detailed_name":"char *platf0rm","short_name_offset":6,
"short_name_size":8, "hover":"char *platf0rm = \"Linux\"","comments":"","declarations":[],"spell":"5:9-5:17|0|3|2","extent":"5:3-5:27|0|3|0","type":1,"uses":["7:25-7:33|0|3|4"],"kind":13,"storage":1}]}