[all-commits] [llvm/llvm-project] 92d03c: [analyzer] Add forwarding `addVisitor` method
Valeriy Savchenko via All-commits
all-commits at lists.llvm.org
Thu Jun 3 07:12:17 PDT 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 92d03c20ea71479c78a29da09e377e040d37c3a5
https://github.com/llvm/llvm-project/commit/92d03c20ea71479c78a29da09e377e040d37c3a5
Author: Valeriy Savchenko <vsavchenko at apple.com>
Date: 2021-06-03 (Thu, 03 Jun 2021)
Changed paths:
M clang/include/clang/StaticAnalyzer/Core/BugReporter/BugReporter.h
M clang/lib/StaticAnalyzer/Checkers/MallocChecker.cpp
M clang/lib/StaticAnalyzer/Checkers/NullabilityChecker.cpp
M clang/lib/StaticAnalyzer/Checkers/RetainCountChecker/RetainCountDiagnostics.cpp
M clang/lib/StaticAnalyzer/Core/BugReporter.cpp
M clang/lib/StaticAnalyzer/Core/BugReporterVisitors.cpp
Log Message:
-----------
[analyzer] Add forwarding `addVisitor` method
The majority of all `addVisitor` callers follow the same pattern:
addVisitor(std::make_unique<SomeVisitor>(arg1, arg2, ...));
This patches introduces additional overload for `addVisitor` to simplify
that pattern:
addVisitor<SomeVisitor>(arg1, arg2, ...);
Differential Revision: https://reviews.llvm.org/D103457
More information about the All-commits
mailing list