[all-commits] [llvm/llvm-project] fccd0d: [clang-tidy] New check: bugprone-misplaced-pointer...
Balogh, Ádám via All-commits
all-commits at lists.llvm.org
Tue Jan 21 05:36:05 PST 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: fccd0da5ee6f4e337395f287edcf824a009e1b7e
https://github.com/llvm/llvm-project/commit/fccd0da5ee6f4e337395f287edcf824a009e1b7e
Author: Adam Balogh <adam.balogh at ericsson.com>
Date: 2020-01-21 (Tue, 21 Jan 2020)
Changed paths:
M clang-tools-extra/clang-tidy/bugprone/BugproneTidyModule.cpp
M clang-tools-extra/clang-tidy/bugprone/CMakeLists.txt
A clang-tools-extra/clang-tidy/bugprone/MisplacedPointerArithmeticInAllocCheck.cpp
A clang-tools-extra/clang-tidy/bugprone/MisplacedPointerArithmeticInAllocCheck.h
M clang-tools-extra/docs/ReleaseNotes.rst
A clang-tools-extra/docs/clang-tidy/checks/bugprone-misplaced-pointer-arithmetic-in-alloc.rst
M clang-tools-extra/docs/clang-tidy/checks/list.rst
A clang-tools-extra/test/clang-tidy/checkers/bugprone-misplaced-pointer-arithmetic-in-alloc.c
A clang-tools-extra/test/clang-tidy/checkers/bugprone-misplaced-pointer-arithmetic-in-alloc.cpp
Log Message:
-----------
[clang-tidy] New check: bugprone-misplaced-pointer-arithmetic-in-alloc
Finds cases where an integer expression is added to the result
of a memory allocation function instead of its argument.
Differential Revision: https://reviews.llvm.org/D71001
More information about the All-commits
mailing list