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

References

tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp
  670       match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  671   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("g(x)"));
  673   AST = buildASTFromCode(
  677   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  678   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("g(x)"));
  680   AST = buildASTFromCode(
  684   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  685   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("g(x, y)"));
  686   Results = match(withEnclosingCompound(declRefTo("y")), AST->getASTContext());
  687   EXPECT_FALSE(isMutated(Results, AST.get()));
  689   AST = buildASTFromCode(
  693   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  694   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("g(y, x)"));
  695   Results = match(withEnclosingCompound(declRefTo("y")), AST->getASTContext());
  696   EXPECT_FALSE(isMutated(Results, AST.get()));
  698   AST = buildASTFromCode("struct S { template <class T> S(T&& t) { t = 10; } };"
  700   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  701   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x"));
  703   AST = buildASTFromCode(
  706   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  707   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x"));
  709   AST = buildASTFromCode("template <class U> struct S {"
  712   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  713   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("x"));
  715   AST = buildASTFromCode(StdRemoveReference + StdForward +
  722   Results = match(withEnclosingCompound(declRefTo("x")), AST->getASTContext());
  723   EXPECT_THAT(mutatedBy(Results, AST.get()), ElementsAre("g(x)"));