VitaNuo
VitaNuo
We're facing a correctness regression following the introduction of include-cleaner-library based logic to SymbolCollector.cpp. It would be beneficial to revert the change in the release branch.
unrelated_name.h `struct Foo {};` internal_header.h ``` // IWYU pragma: private, include "public.h" struct Foo; ``` all.h ``` #include "internal_header.h" #include "unrelated_name.h" ``` user.cc ``` #include "all.h" Foo *f; // triggers...
At the moment, we only follow one level of IWYU export pragmas (probably due to the way old IWYU tool behaves). We're receiving user complaints because of this, and should...
foo.h ``` namespace internal { void Factory(); } ``` main.cc ``` #include foo.h class Example { friend void internal::Factory(); }; ``` The `foo.h` header is marked unused. This is probably...
## Steps to reproduce ### Code snippet ``` typedef a; using b = char *; template void d(c...) = d("", "") ``` ### Command `clang -fsyntax-only snippet.cc` ### Compiler ```...
## Reproducer ``` // foo.cc #include namespace foo { struct Bar { unsigned getFoo(); }; unsigned Func(Bar* b) { return std::max(std::max(b->getFoo(), b->getFoo()), b->getFoo()); } } ``` ## Command ``` clang-tidy...
While fiddling with the LLVM demangler, I noticed that in the following example ``` template struct Bar{}; template struct Foo { template void method(S t, S k); }; void s()...
The code sample ```cpp template concept True = true; namespace test2 { template struct A { template friend void g(...) requires True && True {} }; void call() { A...
a.cc: ```cpp template concept True = true; namespace test2 { template struct A { template friend void h(...) requires True {} template friend void g(...) requires True; }; template void...