jvoung

Results issues of jvoung

It seems like (some?) auto vars of type std::string can have "auto-init" even though the constructor should have initialized the variable. Examples in libstdc++: https://godbolt.org/z/9c5Gxra9a libc++: https://godbolt.org/z/c1jM8bG3j It seems like...

c++
clang:codegen
missed-optimization

Example https://godbolt.org/z/1exh1cjaj `C1::C1` has a memset from `Options()` ctor, and a memcpy from `options_ = options` but in the end the code is left with both (if you accidentally don't...

llvm:optimizations
missed-optimization
TBAA

After #127338 we are seeing some crashes in bugprone-unchecked-optional-access checker in the dataflow framework. New test to trigger the crash: https://github.com/llvm/llvm-project/pull/128065 inline: ``` struct NonTrivDtor { NonTrivDtor(int x); ~NonTrivDtor() {}...

crash
clang:dataflow

For example: * `std::vector x;` * `MyArray arr;` For builtin types like `int` it might be clear that the `*` is meant to be a pointer. For user-defined types, it...

clang-format

In the clang dataflow framework, we currently call `widenTypeErased` when `isBackedgeNode`, but [`isBackedgeNode`](https://github.com/llvm/llvm-project/blob/bba5371e3290fe3c47bd4fb6707ae3ce222b892f/clang/lib/Analysis/FlowSensitive/TypeErasedDataflowAnalysis.cpp#L67) only considers CFG nodes with a loop target. It misses backedges formed by `goto` (we see this...

clang:dataflow

- `base::Optional` from Chromium was replaced with `absl::optional` in 2021 https://source.chromium.org/chromium/chromium/src/+/7dd58adeb690920a7474b4f7c5d71d23b15d4698 and https://docs.google.com/document/d/1xK8E9HyNJW8_zHNLOwFZC5cU9QJj6sK7gXkYCMjbrBQ/edit?tab=t.0 - and then `absl::optional` is also now removed https://github.com/abseil/abseil-cpp/commit/22b1f421fa678434722202f2a883a565b7de5343 (early 2025) I'm not sure how many users...

clang-tidy
code-cleanup
clang:dataflow

There are some regressions in the clang tidy `bugprone-unchecked-optional-access` with newer libc++. I believe after: - https://github.com/llvm/llvm-project/pull/183230 , the checker will start having false positives (doesn't properly match the `has_value()`...

clang-tidy
clang:dataflow

Currently, the CDF checkers default to WatchedLiteralsSolver, which is okay for simple problems but doesn't scale well to more complex problems (see reports like issue #69369). Internally, we've been using...

clang:dataflow

Currently the CDF boolean model involves SAT queries, which are handled by the WatchedLiteralsSolver (or could also be handled with Z3 or in custom builds any other solver -- see...

clang:dataflow

Had a fairly long freeze with IntelliJ thread dumps that looked like: - main thread waiting on write lock [0] - thread holding read lock and index updater task semaphore,...