I'd like to create an AST matcher for the following code snippet Specifically to recognize the key type (int *) in the std::unordered_map and in ma ...
I'd like to create an AST matcher for the following code snippet Specifically to recognize the key type (int *) in the std::unordered_map and in ma ...
I 'm having a question to match uninit double field in constructor. Given the code below I want to match the un_init_param_ field, which didn't cal ...
I'm running clang-query on a specific file using a compilation database as follows: This works, but when I run a simple query (e.g. match ifStmt()) ...
I'm looking to get the line number for the last line of the constructor with clang-query, does anyone know how to get there? i have a lot of source f ...
I am new to clang-tidy and the following is practice so I can move to more complex matchers and tools. Lets say we have My goal is to identify va ...
I want to find all the case statement having no break statement. I using clang-query to build my matcher. My matcher is failing in some of the test ca ...
I am trying to use clang-query to run matches against obj-c files that import Foundation but its not working, After building clang-query by moving it ...
If you compile with -fvisibility=hidden or with msvc you have to export your shared library symbols manually. As an experiment, how could you find the ...
Is there a way to list all possible matchers in clang-query? The AST matcher reference list is not necessarily the most up-to-date version. Even the l ...
What is the query to match a function pointer, e.g., in the following code: y is the function pointer to match. ...
Let us take a toy example, say I have the following code in test.cpp file: I want to find the variable name of the denominator in the division oper ...
I need to catch cases in C++ code when there are two or more similar access specifiers in the class. Let's say there are two classes How to match c ...