You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Daiva Naudziuniene
2c48e61031
[pulse] A new issue type OPTIONAL_EMPTY_ACCESS for trying to access folly::Optional when it is folly::none
...
Summary:
We need to check if `folly::Optional` is not `folly::none` if we want to retrieve the value, otherwise a runtime exception is thrown:
```
folly::Optional<int> foo{folly::none};
return foo.value(); // bad
```
```
folly::Optional<int> foo{folly::none};
if (foo) {
return foo.value(); // ok
}
```
This diff adds a new issue type that reports if we try to access `folly::Optional` value when it is known to be `folly::none`.
Reviewed By: ezgicicek
Differential Revision: D22053352
fbshipit-source-id: 32cb00a99
4 years ago
..
annotation-reachability
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
biabduction
[biabduction] Delete use after free
5 years ago
bufferoverrun
[inferbo] Remove unused issue types
5 years ago
conflicts
[tech debt] Remove experimental nullability checkers
5 years ago
frontend
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
impurity
[pulse] Modeling std::vector::end()
5 years ago
linters
[copyright] Remove years
6 years ago
linters-for-test-only
[AL] Add a is_static predicate
5 years ago
liveness
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
pulse
[pulse] A new issue type OPTIONAL_EMPTY_ACCESS for trying to access folly::Optional when it is folly::none
4 years ago
quandary
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
racerd
[racerd] fix bug in c++ mode
5 years ago
shared
[frontned][clang] Fix the translation of CXXStdInitializerListExpr
5 years ago
siof
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
starvation
[biabd] rename test directories from {biabduction,errors,infer} to {biabduction}
5 years ago
uninit
[uninit] Use type information from locals if argument is a pointer in function signature
5 years ago