[clang-tools-extra] Format sources with clang-format. NFC.
Summary: Ran clang-format on all .c/.cpp/.h files in clang-tools-extra. Excluded the test, unittests, clang-reorder-fields, include-fixer, modularize and pptrace directories. Reviewers: klimek, alexfh Subscribers: nemanjai Tags: #clang-tools-extra Differential Revision: https://reviews.llvm.org/D26329 llvm-svn: 286221
This commit is contained in:
@@ -47,8 +47,8 @@ void ProBoundsPointerArithmeticCheck::registerMatchers(MatchFinder *Finder) {
|
||||
this);
|
||||
}
|
||||
|
||||
void
|
||||
ProBoundsPointerArithmeticCheck::check(const MatchFinder::MatchResult &Result) {
|
||||
void ProBoundsPointerArithmeticCheck::check(
|
||||
const MatchFinder::MatchResult &Result) {
|
||||
const auto *MatchedExpr = Result.Nodes.getNodeAs<Expr>("expr");
|
||||
|
||||
diag(MatchedExpr->getExprLoc(), "do not use pointer arithmetic");
|
||||
|
||||
Reference in New Issue
Block a user