コード例 #1
0
void RedundantSmartptrGetCheck::registerMatchers(MatchFinder *Finder) {
  // Only register the matchers for C++; the functionality currently does not
  // provide any benefit to other languages, despite being benign.
  if (!getLangOpts().CPlusPlus)
    return;

  registerMatchersForGetArrowStart(Finder, this);
  registerMatchersForGetEquals(Finder, this);
}
コード例 #2
0
void RedundantSmartptrGetCheck::registerMatchers(MatchFinder *Finder) {
    registerMatchersForGetArrowStart(Finder, this);
    registerMatchersForGetEquals(Finder, this);
}