I've been trying out vim with exuberant tags and cscope but when listing the usages of a variable it also lists variables with the same name that aren't really the symbol I'm looking at. For example if I want to jump to the declaration or other usages of a variable called "temp", it will give me all variables called "temp" in the whole repo. Am I using tags and cscope wrong or is there another plugin I should be using instead?
Vim c++ indexing that differentiates between symbols with same names
87 Views Asked by Jorge At
1
There are 1 best solutions below
Related Questions in VIM
- vim python omnifunc not working some modules
- Alias does not take effect when I use Vim to execute external commands
- Executing just multiple python lines in VIM
- Is there a Vim-eqsue way to sequentially copy numbers?
- How do I run a Python program in the Vim editor without closing it?
- Vim 8 - How do I re-number my list after reordering the list - manually or automatically?
- vim: indent next line more than the current
- Unicode character ſ is matched as itself and as 's.'
- Nvim with prose: how to set up proper `autoformat` line-wrapping
- Syntax highlighting of nested braces in vim
- Is there a way to flip the bit under your cursor in (n)vim?
- Vimscript function for replacing the visually selected buffer in nvim
- no console after using :wq in vim
- Convert entire (Python) file from 2-space indent to 4-space indent
- Prepend text to a different file from within Vim
Related Questions in TAGS
- kid3 - Import Album Art along with other tags from Discogs
- total commander adds a note to a file using tcimg and the parameters don't work correctly?
- Laravel: check if cache has key with thag
- How do I add tags to HTML web pages and sort them with a filter?
- Replace nth-occurence of a string with an html tag
- how to mention tags in robotframework while writing scripts
- I'm in Playwright, how do I run specific test cases by tag in (CI) execution
- What software can I use (if any) to embed URL links into a .mp4 file without paying for a subscription?
- OSMNX: Dealing with empty dataframe of attributes when using the features module
- How can I hide the "BRAND NEW" project in my portfolio?
- How do you sort a list view in Visual C++?
- Can't overwrite !important tag (tried several tips already)
- Trouble Separating Tags from Notes in JavaScript Notes App
- not able to add previous commit into github tag using workflow
- Allows tag edition in buefy taginput
Related Questions in CTAGS
- Multiline regex tagging matches 3 lines before Universal Ctags
- Difficulty with Universal Ctags: Obtaining Fully Qualified C++ Scopes
- Ctags langmap files with multiple extensions
- Vim ctags jump to class in React
- How to debug why doesn't ctags find particular function declaration?
- vim omnicomplete doesn't suggest the class properties
- List references to a C symbol given the file where it's defined
- Can't add tags from .vh file as systemverilog file
- ctags E426 and E433: how to resolve? (have checked out previous posts)
- git init doesn't execute hooks
- Universal Ctags: How to combine the shell and awk parsers for a shell script file?
- How to enable kinds for C++ in universal ctags from the command line
- Dealing with universal-ctags, python builtins and poetry
- Resolve tagname1 to the address for tagname2
- How to view the underlying regex patterns used by ctags for a built-in supported language?
Related Questions in CSCOPE
- How to syntax highlight the searching result of cscope in vim?
- List references to a C symbol given the file where it's defined
- cscope cannot use in vim
- cscope not finding functions defined in header file in C
- Vim c++ indexing that differentiates between symbols with same names
- Why is autoload cscope.out enabled only after opening vim for the second time
- Does cscope have a query language/api?
- Find symbol only in given files using cscope in vim
- dyld[38909]: symbol not found in flat namespace '_yylex'
- cscope: How to disable/remove/escape-from "Change this text string" option
- cscope Vim plugin: uses tags from multiple repositories?
- How to open file from vim cscope command output list?
- Are there any cscope or ctags APIs that can be used programmatically?
- Trying (and failing) to get cscope/ctags to locate C++ functions in a mixed C / C++ project
- How to build cscope database for AOSP source?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
Ctags and cscope use parsers and even regular expressions to find symbols in files. They "understand" syntax, in a way, but they don't understand code so they have no idea about what specific function is called where.
Consequently…
If you want a tool that knows exactly which
tempis referenced, then you don't want csope or ctags. You want something based on a compiler, like clang.