[clang] 13ec473 - [analyzer] Move PlacementNewChecker to alpha
Gabor Marton via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 10 10:35:45 PST 2020
Author: Gabor Marton
Date: 2020-01-10T19:35:25+01:00
New Revision: 13ec473b9d4bd4f7a558272932b7c0806171c666
URL: https://github.com/llvm/llvm-project/commit/13ec473b9d4bd4f7a558272932b7c0806171c666
DIFF: https://github.com/llvm/llvm-project/commit/13ec473b9d4bd4f7a558272932b7c0806171c666.diff
LOG: [analyzer] Move PlacementNewChecker to alpha
Added:
Modified:
clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
clang/test/Analysis/placement-new-user-defined.cpp
clang/test/Analysis/placement-new.cpp
Removed:
################################################################################
diff --git a/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td b/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
index fc1529f2ea1c..d235273cda41 100644
--- a/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
+++ b/clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
@@ -470,12 +470,6 @@ def NewDeleteLeaksChecker : Checker<"NewDeleteLeaks">,
Dependencies<[NewDeleteChecker]>,
Documentation<HasDocumentation>;
-def PlacementNewChecker : Checker<"PlacementNew">,
- HelpText<"Check if default placement new is provided with pointers to "
- "sufficient storage capacity">,
- Dependencies<[NewDeleteChecker]>,
- Documentation<HasDocumentation>;
-
def CXXSelfAssignmentChecker : Checker<"SelfAssignment">,
HelpText<"Checks C++ copy and move assignment operators for self assignment">,
Documentation<NotDocumented>,
@@ -621,6 +615,12 @@ def MismatchedIteratorChecker : Checker<"MismatchedIterator">,
Dependencies<[IteratorModeling]>,
Documentation<HasAlphaDocumentation>;
+def PlacementNewChecker : Checker<"PlacementNew">,
+ HelpText<"Check if default placement new is provided with pointers to "
+ "sufficient storage capacity">,
+ Dependencies<[NewDeleteChecker]>,
+ Documentation<HasDocumentation>;
+
} // end: "alpha.cplusplus"
diff --git a/clang/test/Analysis/placement-new-user-defined.cpp b/clang/test/Analysis/placement-new-user-defined.cpp
index b3fe47057f8a..47f0b459ea00 100644
--- a/clang/test/Analysis/placement-new-user-defined.cpp
+++ b/clang/test/Analysis/placement-new-user-defined.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_analyze_cc1 -std=c++11 %s \
// RUN: -analyzer-checker=core \
// RUN: -analyzer-checker=cplusplus.NewDelete \
-// RUN: -analyzer-checker=cplusplus.PlacementNew \
+// RUN: -analyzer-checker=alpha.cplusplus.PlacementNew \
// RUN: -analyzer-output=text -verify \
// RUN: -triple x86_64-unknown-linux-gnu
diff --git a/clang/test/Analysis/placement-new.cpp b/clang/test/Analysis/placement-new.cpp
index dfd057b2fa20..0f5248410a41 100644
--- a/clang/test/Analysis/placement-new.cpp
+++ b/clang/test/Analysis/placement-new.cpp
@@ -1,7 +1,7 @@
// RUN: %clang_analyze_cc1 -std=c++11 %s \
// RUN: -analyzer-checker=core \
// RUN: -analyzer-checker=cplusplus.NewDelete \
-// RUN: -analyzer-checker=cplusplus.PlacementNew \
+// RUN: -analyzer-checker=alpha.cplusplus.PlacementNew \
// RUN: -analyzer-output=text -verify \
// RUN: -triple x86_64-unknown-linux-gnu
More information about the cfe-commits
mailing list