Eric Li
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 {...
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...
```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()...
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`...
```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();...
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 `)`,...
### 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...