Skip to content

Commit

Permalink
Revert "[clang][analyzer] Add modeling of 'errno'."
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronBallman committed Feb 25, 2022
1 parent 291450d commit f9e8e92
Show file tree
Hide file tree
Showing 14 changed files with 9 additions and 512 deletions.
9 changes: 0 additions & 9 deletions clang/include/clang/StaticAnalyzer/Checkers/Checkers.td
Expand Up @@ -348,10 +348,6 @@ def NullableReturnedFromNonnullChecker : Checker<"NullableReturnedFromNonnull">,

let ParentPackage = APIModeling in {

def ErrnoModeling : Checker<"Errno">,
HelpText<"Make the special value 'errno' available to other checkers.">,
Documentation<NotDocumented>;

def StdCLibraryFunctionsChecker : Checker<"StdCLibraryFunctions">,
HelpText<"Improve modeling of the C standard library functions">,
// Uninitialized value check is a mandatory dependency. This Checker asserts
Expand Down Expand Up @@ -1560,11 +1556,6 @@ def StreamTesterChecker : Checker<"StreamTester">,
"purposes.">,
Documentation<NotDocumented>;

def ErrnoTesterChecker : Checker<"ErrnoTest">,
HelpText<"Check modeling aspects of 'errno'.">,
Dependencies<[ErrnoModeling]>,
Documentation<NotDocumented>;

def ExprInspectionChecker : Checker<"ExprInspection">,
HelpText<"Check the analyzer's understanding of expressions">,
Documentation<NotDocumented>;
Expand Down
Expand Up @@ -764,8 +764,7 @@ class SymbolicRegion : public SubRegion {
assert(s->getType()->isAnyPointerType() ||
s->getType()->isReferenceType() ||
s->getType()->isBlockPointerType());
assert(isa<UnknownSpaceRegion>(sreg) || isa<HeapSpaceRegion>(sreg) ||
isa<GlobalSystemSpaceRegion>(sreg));
assert(isa<UnknownSpaceRegion>(sreg) || isa<HeapSpaceRegion>(sreg));
}

public:
Expand Down Expand Up @@ -1376,9 +1375,7 @@ class MemRegionManager {
const LocationContext *LC);

/// Retrieve or create a "symbolic" memory region.
/// If no memory space is specified, `UnknownSpaceRegion` will be used.
const SymbolicRegion *
getSymbolicRegion(SymbolRef Sym, const MemSpaceRegion *MemSpace = nullptr);
const SymbolicRegion* getSymbolicRegion(SymbolRef Sym);

/// Return a unique symbolic region belonging to heap memory space.
const SymbolicRegion *getSymbolicHeapRegion(SymbolRef sym);
Expand Down
2 changes: 0 additions & 2 deletions clang/lib/StaticAnalyzer/Checkers/CMakeLists.txt
Expand Up @@ -40,8 +40,6 @@ add_clang_library(clangStaticAnalyzerCheckers
DynamicTypePropagation.cpp
DynamicTypeChecker.cpp
EnumCastOutOfRangeChecker.cpp
ErrnoModeling.cpp
ErrnoTesterChecker.cpp
ExprInspectionChecker.cpp
FixedAddressChecker.cpp
FuchsiaHandleChecker.cpp
Expand Down
39 changes: 0 additions & 39 deletions clang/lib/StaticAnalyzer/Checkers/Errno.h

This file was deleted.

253 changes: 0 additions & 253 deletions clang/lib/StaticAnalyzer/Checkers/ErrnoModeling.cpp

This file was deleted.

0 comments on commit f9e8e92

Please sign in to comment.