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

References

tools/clang/lib/ASTMatchers/Dynamic/Registry.cpp
  499   REGISTER_MATCHER(to);
tools/clang/lib/Analysis/ExprMutationAnalyzer.cpp
  142       match(findAll(declRefExpr(to(equalsNode(Dec))).bind(NodeID<Expr>::value)),
tools/clang/lib/StaticAnalyzer/Checkers/GCDAntipatternChecker.cpp
   63                                  to(varDecl(equalsBoundNode(DeclName))))));
   68                          declRefExpr(to(varDecl().bind(DeclName)))));
tools/clang/lib/StaticAnalyzer/Checkers/ObjCAutoreleaseWriteChecker.cpp
  159       declRefExpr(to(parmVarDecl(DoublePointerParamM))).bind(CapturedBind);
tools/clang/lib/StaticAnalyzer/Checkers/PointerIterationChecker.cpp
   68   auto UnorderedContainerM = declRefExpr(to(varDecl(hasType(
tools/clang/lib/StaticAnalyzer/Core/LoopUnrolling.cpp
   87                             to(varDecl(hasType(isInteger())).bind(BindName))))),
   98                         declRefExpr(to(varDecl(VarNodeMatcher)))))),
  101                          declRefExpr(to(varDecl(VarNodeMatcher)))))));
  107       declRefExpr(to(varDecl(VarNodeMatcher))),
  116                 initListExpr(has(declRefExpr(to(varDecl(VarNodeMatcher))))),
  117                 declRefExpr(to(varDecl(VarNodeMatcher)))))))));
  148                        binaryOperator(hasLHS(declRefExpr(to(varDecl(
  157                      to(varDecl(allOf(equalsBoundNode("initVarName"),
tools/clang/lib/StaticAnalyzer/Core/RegionStore.cpp
 1093               to(varDecl(hasStaticStorageDuration()).bind(DeclBind)))));
tools/clang/tools/extra/clang-change-namespace/ChangeNamespace.cpp
  510                                 declRefExpr(to(FuncMatcher.bind("func_decl")))
  518                                  to(GlobalVarMatcher.bind("var_decl")))
  529                   to(UnscopedEnumMatcher.bind("enum_const_decl")))
tools/clang/tools/extra/clang-include-fixer/find-all-symbols/FindAllSymbols.cpp
  207       declRefExpr(isExpansionInMainFile(), to(Decls.bind("use"))), this);
  211                   to(functionDecl(hasParent(
tools/clang/tools/extra/clang-move/Move.cpp
  600       declRefExpr(to(HelperFuncOrVar), hasAncestor(decl().bind("dc")))
tools/clang/tools/extra/clang-tidy/abseil/StrCatAppendCheck.cpp
   52       hasArgument(0, ignoringImpCasts(declRefExpr(to(equalsBoundNode("LHS")),
   57           to(equalsBoundNode("LHS")), unless(equalsBoundNode("Arg0")))))));
   65           hasArgument(0, declRefExpr(to(decl().bind("LHS")))),
tools/clang/tools/extra/clang-tidy/bugprone/BoolPointerImplicitConversionCheck.cpp
   47   auto DeclRef = ignoringParenImpCasts(declRefExpr(to(equalsNode(D))));
tools/clang/tools/extra/clang-tidy/bugprone/DanglingHandleCheck.cpp
  151                          declRefExpr(to(varDecl(
tools/clang/tools/extra/clang-tidy/bugprone/MoveForwardingReferenceCheck.cpp
   90                                   to(ForwardingReferenceParmMatcher)))))
tools/clang/tools/extra/clang-tidy/bugprone/NotNullTerminatedResultCheck.cpp
  524       declRefExpr(to(varDecl(hasInitializer(ignoringImpCasts(InnerMatcher))))));
  531       allOf(to(varDecl().bind(VarDeclName)),
  533                 hasLHS(declRefExpr(to(varDecl(equalsBoundNode(VarDeclName))))),
  598       ignoringImpCasts(declRefExpr(to(varDecl(hasInitializer(WrongLength)))));
  608       declRefExpr(to(varDecl(hasInitializer(CallExprReturnWithoutInc)))));
  639       to(anyOf(varDecl(CharTyArray).bind(DestVarDeclName),
  644       declRefExpr(allOf(to(varDecl(AnyOfCharTy).bind(DestVarDeclName)),
  656                        to(varDecl(equalsBoundNode(DestVarDeclName))))),
  662       allOf(to(decl().bind(SrcVarDeclName)),
tools/clang/tools/extra/clang-tidy/bugprone/TooSmallLoopVariableCheck.cpp
   57           ignoringParenImpCasts(declRefExpr(to(varDecl(hasType(isInteger()))))))
tools/clang/tools/extra/clang-tidy/bugprone/UseAfterMoveCheck.cpp
   80                    to(functionDecl(ast_matchers::isTemplateInstantiation())))));
tools/clang/tools/extra/clang-tidy/cppcoreguidelines/ProBoundsPointerArithmeticCheck.cpp
   33           unless(hasLHS(ignoringImpCasts(declRefExpr(to(isImplicit()))))))
tools/clang/tools/extra/clang-tidy/google/ExplicitMakePairCheck.cpp
   40                                to(functionDecl(hasName("::std::make_pair"))))
tools/clang/tools/extra/clang-tidy/google/UpgradeGoogletestCaseCheck.cpp
  178                                 declRefExpr(to(Methods)).bind("ref")),
tools/clang/tools/extra/clang-tidy/modernize/AvoidBindCheck.cpp
  126           hasArgument(0, declRefExpr(to(functionDecl().bind("f"))).bind("ref")))
tools/clang/tools/extra/clang-tidy/modernize/LoopConvertCheck.cpp
   51       declRefExpr(to(varDecl(hasType(isInteger())).bind(ConditionVarName)))));
   61   return declRefExpr(to(varDecl(hasType(isInteger())).bind(IncrementVarName)));
  150                      declRefExpr(to(varDecl().bind(ConditionEndVarName)))),
  156       ignoringParenImpCasts(declRefExpr(to(varDecl().bind(ConditionVarName)))));
  197                                    to(varDecl(hasType(pointsTo(AnyType())))
  202                          0, declRefExpr(to(varDecl(TestDerefReturnsByValue)
  277       expr(anyOf(ignoringParenImpCasts(declRefExpr(to(
tools/clang/tools/extra/clang-tidy/modernize/PassByValueCheck.cpp
  148                       has(ignoringParenImpCasts(declRefExpr(to(
tools/clang/tools/extra/clang-tidy/modernize/UseDefaultMemberInitCheck.cpp
  204             declRefExpr(to(enumConstantDecl())));
tools/clang/tools/extra/clang-tidy/modernize/UseEmplaceCheck.cpp
  100               to(functionDecl(hasAnyName(SmallVector<StringRef, 2>(
tools/clang/tools/extra/clang-tidy/modernize/UseEqualsDefaultCheck.cpp
   53       memberExpr(hasObjectExpression(declRefExpr(to(varDecl(equalsNode(Var))))),
   84                         0, declRefExpr(to(varDecl(equalsNode(Param)))))))))),
  160                 hasArgument(0, declRefExpr(to(varDecl(equalsNode(Param))))))))),
tools/clang/tools/extra/clang-tidy/modernize/UseUncaughtExceptionsCheck.cpp
   33       declRefExpr(to(functionDecl(hasName(MatchText))), unless(callExpr()))
tools/clang/tools/extra/clang-tidy/performance/InefficientVectorOperationCheck.cpp
  103           onImplicitObjectArgument(declRefExpr(to(TargetVarDecl))))
  110       declRefExpr(to(varDecl(equalsBoundNode(LoopInitVarName)))));
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryCopyInitialization.cpp
   50                         on(declRefExpr(to(varDecl().bind("objectArg")))));
   83                          to(varDecl(hasLocalStorage()).bind("oldVarDecl")))),
tools/clang/tools/extra/clang-tidy/performance/UnnecessaryValueParamCheck.cpp
   36   auto Matches = match(declRefExpr(to(functionDecl(equalsNode(&Function))),
tools/clang/tools/extra/clang-tidy/readability/DeleteNullPointerCheck.cpp
   24                         to(decl(equalsBoundNode("deletedPointer"))))))))
   33       declRefExpr(to(decl().bind("deletedPointer"))),
tools/clang/tools/extra/clang-tidy/utils/DeclRefExprUtils.cpp
   48       declRefExpr(to(varDecl(equalsNode(&VarDecl)))).bind("declRef");
   79       declRefExpr(to(varDecl(equalsNode(&VarDecl)))).bind("declRef");
  122       findAll(declRefExpr(to(varDecl(equalsNode(&VarDecl)))).bind("declRef")),
  133           declRefExpr(to(varDecl(equalsNode(&VarDecl)))).bind("declRef"))),
tools/clang/tools/extra/clang-tidy/utils/UsingInserter.cpp
   65       !match(findAll(declRefExpr(to(ConflictingDecl))), *Function, Context)
tools/clang/unittests/AST/ASTImporterTest.cpp
  830           hasDescendant(declRefExpr(to(varTemplateSpecializationDecl()))),
tools/clang/unittests/ASTMatchers/ASTMatchersNarrowingTest.cpp
   29                      hasArgument(0, declRefExpr(to(varDecl())))))));
   32                      hasArgument(0, declRefExpr(to(varDecl()))),
   37                      hasArgument(0, declRefExpr(to(varDecl()))),
   43                      hasArgument(0, declRefExpr(to(varDecl()))),
  867       to(varDecl(hasType(isInteger()))))))));
  874                            to(varDecl(hasType(isInteger()))))))));
 1212     hasArgument(0, declRefExpr(to(varDecl(hasName("y"))))));
 1228     hasArgument(42, declRefExpr(to(varDecl(hasName("y"))))));
 1729                           declRefExpr(to(namedDecl(hasName("t"))))))));
 1733                   declRefExpr(to(namedDecl(hasName("t"))))))));
 1746                           declRefExpr(to(namedDecl(hasName("t"))))))));
 2352       forEachDescendant(declRefExpr(to(decl(equalsBoundNode("d")))))),
 2364       on(declRefExpr(to(
 2368         on(declRefExpr(to(varDecl(equalsBoundNode("var")))))))))))
 2380       on(declRefExpr(to(
 2384         on(declRefExpr(to(varDecl(equalsBoundNode("var")))))))))))
tools/clang/unittests/ASTMatchers/ASTMatchersNodeTest.cpp
  400     declRefExpr(to(
  426     cxxMemberCallExpr(on(declRefExpr(to(varDecl(hasName("y"))))));
  550                                     hasDescendant(declRefExpr(to(
 1086                       declRefExpr(to(functionDecl(hasName("f"))))));
 1234     variableArrayType(hasSizeExpr(ignoringImpCasts(declRefExpr(to(
tools/clang/unittests/ASTMatchers/ASTMatchersTraversalTest.cpp
  125            has(ignoringParenImpCasts(declRefExpr(to(varDecl(hasName("i")))))));
  136          hasDescendant(declRefExpr(to(varDecl(hasName("i"))))));
  392     hasArgument(0, declRefExpr(to(varDecl(hasName("y"))))));
  400     hasArgument(42, declRefExpr(to(varDecl(hasName("y"))))));
  406       ignoringParenImpCasts(declRefExpr(to(varDecl(hasName("y"))))));
  449       objcMessageExpr(hasReceiver(declRefExpr(to(varDecl(hasName("x"))))))));
  454       objcMessageExpr(hasReceiver(declRefExpr(to(varDecl(hasName("x"))))))));
  620     declRefExpr(to(varDecl(hasName("y")))).bind("arg");
  633     declRefExpr(to(varDecl(hasName("y")))).bind("arg");
  662     declRefExpr(to(varDecl(hasName("y")))).bind("arg");
  686     declRefExpr(to(varDecl(hasName("y")))).bind("arg");
  714         declRefExpr(to(decl(equalsBoundNode("v")))), parmVarDecl())))),
  838       hasDescendant(declRefExpr(to(fieldDecl(hasName("next"))))))))));
 1368     cxxForRangeStmt(hasRangeInit(declRefExpr(to(varDecl(hasName("a"))))))));
 1604                         declRefExpr(to(varDecl(hasName("x")))))))));
 1643                         declRefExpr(to(varDecl(hasName("x")))))))));
 1702                         declRefExpr(to(varDecl(hasName("x")))))))));
 1714                         declRefExpr(to(varDecl(hasName("x")))))))));
 2213                       declRefExpr(to(decl(hasAncestor(decl()))))));
 2235                       declRefExpr(to(decl(hasAncestor(decl()))))));
 2245                       declRefExpr(to(decl(hasAncestor(decl()))))));
 2252                       declRefExpr(to(decl(hasAncestor(decl()))))));
tools/clang/unittests/Analysis/ExprMutationAnalyzerTest.cpp
   47   return declRefExpr(to(namedDecl(hasName(Name))));
tools/clang/unittests/Tooling/RangeSelectorTest.cpp
  297   TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref));
  332   TestMatch Match = matchCode(Code, declRefExpr(to(functionDecl())).bind(Ref));
tools/clang/unittests/Tooling/RefactoringCallbacksTest.cpp
   83                              declRefExpr(to(varDecl(hasName("a"))))))))
tools/clang/unittests/Tooling/TransformerTest.cpp
  260   testRule(makeRule(declRefExpr(to(functionDecl(hasName("bad")))).bind(Ref),
  278   Transformer T(makeRule(declRefExpr(to(functionDecl())).bind(Ref),