Eric Li

Results issues of Eric Li

The following fails to compile in clang unless there are parentheses around `s.bazinga`. `gcc` appears to accept this. Who is correct? ```c++ template struct bazinga {}; template struct Foo {...

duplicate
clang:frontend
rejects-valid

I'm noticing some odd behavior around the `IgnoreUnlessSpelledInSource` traversal mode, in particular when that mode changes. --- Suppose we have the following source: ```c++ struct A { ~A(); }; struct...

clang:tooling

```c++ #include #include struct [[nodiscard]] S {}; S (*get_fp())(); template void f(Func fn) { static_cast(fn)(); // Ignored static_cast(fn)(); // Ignored static_cast(fn)(); // Ignored std::move(fn)(); // Ignored fn(); } void i()...

clang:diagnostics

See https://godbolt.org/z/6cdcj1qqY ```c++ struct S { S(int, int); }; void f() { S(S(0, 1)); } ``` When the `CXXTemporaryObjectExpr` is wrapped with a `CXXFunctionalCastExpr`, the source range of the `CXXTemporaryObjectExpr`...

clang:frontend
confirmed

```c++ #include void find(auto value) { std::integral auto var = value; } ``` Calling `getTypeSourceInfo()->getType()` and `getType()` result in two unique `AutoType`s. If I have something like ```c++ v.getTypeSourceInfo()->getType()->dump(); v.getType()->dump();...

question
clang:frontend
concepts

See https://godbolt.org/z/jPcdfeW6G. ```c++ // Minimal repro. struct S {}; S MakeS(); void f() { S s(MakeS()); } ``` The source range for the `VarDecl` `s` ends on the first `)`,...

clang:frontend

### Description of the bug: It appears that `ignore_directories` does not prevent the directory from being traversed, unlike `.bazelignore`. ### Which category does this issue belong to? Performance ### What's...

type: bug
team-ExternalDeps
untriaged
team-Core
area-Bzlmod