reference, declarationdefinition
definition → references, declarations, derived classes, virtual overrides
reference to multiple definitions → definitions
unreferenced

References

tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp
 1200       match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1201   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("* x = 10"));
 1203   AST = buildASTFromCode(UniquePtrDef + "void f() { UniquePtr<int> x; *x; }");
 1204   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1205   EXPECT_FALSE(isMutated(Results, AST.get()));
 1207   AST = buildASTFromCode(UniquePtrDef +
 1209   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1210   EXPECT_FALSE(isMutated(Results, AST.get()));
 1212   AST = buildASTFromCode(UniquePtrDef + "struct S { int v; };"
 1214   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1215   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x"));
 1217   AST = buildASTFromCode(UniquePtrDef +
 1220   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1221   EXPECT_FALSE(isMutated(Results, AST.get()));
 1223   AST =
 1226   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1227   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x"));
 1229   AST = buildASTFromCode(UniquePtrDef +
 1232   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1233   EXPECT_FALSE(isMutated(Results, AST.get()));
 1235   AST = buildASTFromCodeWithArgs(
 1238   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
 1239   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x->mf()"));