clang-ast-matchers Questions

1

Solved

I hope to match all for-loop with vector declaring in it's body (might extend to while-loop and do-while-loop later): #include <vector> int main() { for (int i = 0; i < 10; i++) { std::...
Cloy asked 9/1 at 7:34

1

I am using clang matcher to obtain the result nodes. From the result nodes, I am able to get the line number, let us say 17. Now, I would like to get the entire source code in that line. Please hel...
Pangermanism asked 17/6, 2018 at 3:24

1

Solved

I have a big project, and a slew of C++ class member functions of the form: Return CClass::MemberFunction( Arg1 arg1, //... std::weak_ptr<IMemberFunctionListenerInterface> listener) { //.....
Sharondasharos asked 1/3, 2021 at 20:28

0

The X: Trying to write an internal clang tidy tool that finds an expression that contains two types (A, B) and then throws if const A& is implicitly convertible to B? Given I can find two CXXR...
Clairclairaudience asked 19/10, 2018 at 20:26

1

Solved

I am new to using ASTMatcher and following a code from a tutorial - https://github.com/peter-can-talk/cppnow-2017. Here, the tool clang-variables can be run using the following command: cd code/cl...
Lowland asked 16/2, 2018 at 14:55

1

Solved

Is it possible to use or in function declarations? like: functionDecl(hasName("a") or hasName("b")) or we have to use addMatcher to add more matchers to get the same result?
Lakeishalakeland asked 31/7, 2017 at 18:23
1

© 2022 - 2024 — McMap. All rights reserved.