reference, declaration → definition definition → references, declarations, derived classes, virtual overrides reference to multiple definitions → definitions unreferenced |
195 match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 196 EXPECT_FALSE(isMutated(Results, AST.get())); 198 AST = buildASTFromCode("void g(int*); void f() { int* x; g(x); }"); 199 Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 200 EXPECT_FALSE(isMutated(Results, AST.get())); 202 AST = buildASTFromCode("typedef int* IntPtr;" 204 Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 205 EXPECT_FALSE(isMutated(Results, AST.get())); 207 AST = buildASTFromCode( 209 Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 210 EXPECT_FALSE(isMutated(Results, AST.get())); 212 AST = buildASTFromCode("void f() { struct A { A(int); }; int x; A y(x); }"); 213 Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 214 EXPECT_FALSE(isMutated(Results, AST.get())); 216 AST = buildASTFromCode("struct A { A(); A& operator=(A); };" 218 Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 219 EXPECT_FALSE(isMutated(Results, AST.get())); 221 AST = buildASTFromCode( 224 Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext()); 225 EXPECT_FALSE(isMutated(Results, AST.get()));