[Here](6a98c4a160/clang/include/clang/ASTMatchers/ASTMatchers.h (L4188-L4203)) and [here](6a98c4a160/clang/include/clang/ASTMatchers/ASTMatchers.h (L3679-L3695)) we can see similar code samples and same examples: ``` cxxMemberCallExpr(on(callExpr())) ``` In the first case, it is [written](6a98c4a160/clang/include/clang/ASTMatchers/ASTMatchers.h (L4201)) that the object must not be matched: ``` /// cxxMemberCallExpr(on(callExpr())) /// does not match `(g()).m()`, because the parens are not ignored. ``` In the second case, it is [written](6a98c4a160/clang/include/clang/ASTMatchers/ASTMatchers.h (L3693)) that the object must be matched: ``` /// cxxMemberCallExpr(on(callExpr())) /// matches `(g()).m()`. ``` I think that parens are ignored
539 KiB
539 KiB