Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vim doesn't jump to the right place. #20

Open
xavierd opened this issue May 18, 2014 · 1 comment
Open

Vim doesn't jump to the right place. #20

xavierd opened this issue May 18, 2014 · 1 comment

Comments

@xavierd
Copy link
Collaborator

xavierd commented May 18, 2014

Launch clang-cache with:

./src/clang-cache -c g++ -- `pkg-config --cflags thrift` -std=c++11 -pedantic -Wall -Wextra -Werror -I../src/daemon -Isrc/daemon -I../src -Isrc -MMD -o src/daemon/server/server.o -c ../src/daemon/server/server.cpp

Then edit the server.cpp file, goto line 43, and press ctrl+K on utils::sock_path(), the cursor will jump on line 18.

@xavierd
Copy link
Collaborator Author

xavierd commented May 20, 2014

Another way to see that the cache is incorrectly filled:

% ./src/clang-cache -d 'c:paths.h@247@N@clc@N@utils@F@sock_path#'
[2014-05-18 22:29:00] INFO: symbol c:paths.h@247@N@clc@N@utils@F@sock_path# is defined in /home/xavier/src/clang-cache/src/daemon/server/server.cpp:18

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant