Jacob Dufault
9b44bf7901
Run ./format.sh
2017-12-01 09:55:41 -08:00
Fangrui Song
eac644d81a
On *nix, use a realpath(3) variant (which does not expand symlinks) in NormalizePath
...
Before this commit, when a source file is a symlink, cquery is not able to serve LSP requests for it.
2017-11-30 11:27:26 -08:00
Jacob Dufault
97417ecc93
Reformat code
2017-11-19 14:11:54 -08:00
Peter Goodman
3f45c05476
This commit fixes severak compiler errors when trying to build cquery. I gave up after a bit and didn't fix them all though, there are a ton of signed to unsigned comparisons.
2017-11-18 16:09:14 -05:00
Jacob Dufault
f48f818f4c
Fix MacOS build
2017-10-31 15:43:07 -07:00
Jacob Dufault
7734943620
Format all code in src/
2017-10-31 12:49:19 -07:00
Jacob Dufault
37ab94e7b4
Add GetWorkingDirectory for linux
2017-10-24 19:11:11 -07:00
Jacob Dufault
f5314b62b1
Reformat to Chromium style.
2017-09-21 18:14:57 -07:00
Jacob Dufault
3f44307268
Call malloc_trim(0) on Linux
2017-08-17 11:02:47 -07:00
Jacob Dufault
7901653698
Make sure file exists before importing it.
2017-08-15 22:39:50 -07:00
Jacob Dufault
a9bac06b83
Add MoveFileTo
2017-07-28 17:08:18 -07:00
Jacob Dufault
c37396a36d
First pass at logging using loguru
2017-07-27 19:14:46 -07:00
Jacob Dufault
37787290cb
Make sure every include candidate is unique w.r.t. absolute path.
...
Also do not follow symlinks when iterating a directory.
2017-05-23 00:24:14 -07:00
Jacob Dufault
54fed027ce
Fix CopyFileTo when there is already a destination file.
...
This fixes reindexing files, as before we would update the json but not
the indexed file contents which caused code lens and references to get
out of sync.
2017-05-19 17:41:27 -07:00
Jacob Dufault
bf21cde14a
Remove default platform arguments for linux.
2017-04-25 21:13:04 -07:00
Jacob Dufault
7741991b72
Simplify threading model a bit.
2017-04-23 13:19:09 -07:00
Jacob Dufault
734511f562
Compile fix
2017-04-21 10:00:36 -07:00
Jacob Dufault
11d6623938
Update WorkingFile indexed content correctly.
...
We copy the file contents we indexed over to the index cache folder. Then we load those file contents into the WorkingFile instance as needed.
This means code lens should never get out of sync, as the index buffer cache will always be correct.
2017-04-20 23:32:18 -07:00
Jacob Dufault
f25a603708
Implement GetLastModificationTime for linux
2017-04-20 09:47:24 -07:00
Jacob Dufault
5b70982c04
Fix permissions when creating files on linux
2017-04-18 21:56:02 -07:00
Jacob Dufault
121336c976
Fix build on OSX, update README.md
2017-04-18 10:21:53 -07:00
Jacob Dufault
2d4b910836
Allow configuration of cache directory. Use a good default value as well.
2017-04-17 20:02:41 -07:00
Jacob Dufault
9d8c027cfb
Set thread names. Fix initialization race condition when not using shared memory.
2017-04-16 15:48:54 -07:00
Jacob Dufault
ce736c84e0
misc-linux-fixes
2017-04-05 10:41:22 -07:00
Jacob Dufault
2a3ee89349
wip
2017-03-29 10:12:00 -07:00
Jacob Dufault
a19d4f732f
wip
2017-03-28 23:33:38 -07:00
Jacob Dufault
9ac960109f
wip
2017-03-27 19:35:27 -07:00
Jacob Dufault
4c601c4d37
wip
2017-03-27 18:47:12 -07:00
Jacob Dufault
a8a343420b
misc-linux-fixes
2017-03-27 18:04:37 -07:00
Jacob Dufault
b6978b1a38
move platform init code to platform
2017-03-25 13:27:28 -07:00
Jacob Dufault
695048baa7
move code into src
2017-03-25 13:15:00 -07:00
Jacob Dufault
528d778d9a
osx compile files
2017-03-21 10:06:22 -07:00
Jacob Dufault
4bd284ee7e
Format
2017-03-19 15:08:36 -07:00
Jacob Dufault
4cec26ae12
WIP
2017-03-19 15:06:22 -07:00