mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-11-27 15:41:46 +00:00
[analyzer] Move PlacementNewChecker to alpha
This commit is contained in:
parent
a5230ac10b
commit
13ec473b9d
@ -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"
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user