{"action":"created","issue":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/423","labels_url":"https://api.github.com/repos/Andersbakken/rtags/issues/423/labels{/name}","comments_url":"https://api.github.com/repos/Andersbakken/rtags/issues/423/comments","events_url":"https://api.github.com/repos/Andersbakken/rtags/issues/423/events","html_url":"https://github.com/Andersbakken/rtags/issues/423","id":105141544,"number":423,"title":"some questions","user":{"login":"duud","id":848340,"avatar_url":"https://avatars.githubusercontent.com/u/848340?v=3","gravatar_id":"","url":"https://api.github.com/users/duud","html_url":"https://github.com/duud","followers_url":"https://api.github.com/users/duud/followers","following_url":"https://api.github.com/users/duud/following{/other_user}","gists_url":"https://api.github.com/users/duud/gists{/gist_id}","starred_url":"https://api.github.com/users/duud/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duud/subscriptions","organizations_url":"https://api.github.com/users/duud/orgs","repos_url":"https://api.github.com/users/duud/repos","events_url":"https://api.github.com/users/duud/events{/privacy}","received_events_url":"https://api.github.com/users/duud/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-07T03:59:27Z","updated_at":"2015-09-08T10:28:55Z","closed_at":null,"body":"Thx for this Andersbakken, rtags is very usefull.\r\nI tried this for the firs time, so I have some questions.\r\n\r\nAfter saving a file, preprocessor branches which aren't used are highlighted. This is very usefull for exploring new projects. I'm not sure how it workd, but is it possible to highlight preprocessor branches on every new opened file belongig to the project? Now I have to modify the file + save it to get the highlighting.\r\n\r\nCompany-rtags doesn't autocomplete after typing '...->' I have to type one charakter more e.g. '...->a' to get the completion-popup, this is somewhat inconvenient.\r\n\r\nIs it possible to configure rtags to save it's database inside the project-root? - such that I can move the project to another directory or delete it without caring about the ~/.rtags directory \r\n"},"comment":{"url":"https://api.github.com/repos/Andersbakken/rtags/issues/comments/138508261","html_url":"https://github.com/Andersbakken/rtags/issues/423#issuecomment-138508261","issue_url":"https://api.github.com/repos/Andersbakken/rtags/issues/423","id":138508261,"user":{"login":"cslux","id":1712313,"avatar_url":"https://avatars.githubusercontent.com/u/1712313?v=3","gravatar_id":"","url":"https://api.github.com/users/cslux","html_url":"https://github.com/cslux","followers_url":"https://api.github.com/users/cslux/followers","following_url":"https://api.github.com/users/cslux/following{/other_user}","gists_url":"https://api.github.com/users/cslux/gists{/gist_id}","starred_url":"https://api.github.com/users/cslux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cslux/subscriptions","organizations_url":"https://api.github.com/users/cslux/orgs","repos_url":"https://api.github.com/users/cslux/repos","events_url":"https://api.github.com/users/cslux/events{/privacy}","received_events_url":"https://api.github.com/users/cslux/received_events","type":"User","site_admin":false},"created_at":"2015-09-08T10:28:55Z","updated_at":"2015-09-08T10:28:55Z","body":"Hey @Anders,\n\nthat is something which bothers me too. The highlighting always works on the\nfirst opened file but fails on all others. The only thing which helps is to\nreparse the file, but takes usually a long time because as @duud stated several\n100 files need to be reparsed too.\n\nThanks,\nChristian\nduud <notifications@github.com> writes:\n\n> Motivation for highlighting of preprocessor branches....\n> The linux kerne-tree contains tons of ifdefs for different architectures and\n> kernel-configurations. Searching for tags e.g. with gnu-global is very\n> inconvenient because there maybe tons of definitions for a symbol. So you\n> really need compilation flags to find the right definition and thats why rtags\n> is so handy here.\n> Since there are so many ifdefs in the code it's really helpful to see which\n> branches are taken. Rtags highlights skipped preprocessor brances but I'm not\n> sure how this is supposed to work. To get this working I execute\n> rtags-reparse-file but if I do this in a header file 1200+ files, which are\n> unmodified, get dirtied and reparsed. So is there a way to highlight warnings/\n> errors + skipped preprocessor lines without the need for reparsing of 1200+\n> files so that it can be enabled for every file by default, maybe I'm missing\n> something.\n>\n> —\n> Reply to this email directly or view it on GitHub.*\n"}}