Sam McCall

Results 207 comments of Sam McCall

Can you provide more details please? The following works for me, saved as `test.mm`: ``` @class Foo; Foo *x; // go to def on Foo ```

It seems to kinda-sorta work... First step is to convince your editor to send the file to clangd. A hacky way is to set the filetype in the editor to...

I hacked up a prototype (hardcoded in SemaCodeComplete, doesn't solve any layering/configuration/ranking issues). Code: https://reviews.llvm.org/D125224 Demo: https://asciinema.org/a/rxyoicX44ya2jLDpdbNj3rVcC

No worries, I know that feeling!

Basically, what Kadir said. Thanks for reaching out! A few notes of my own... The llvm.org binary distributions are AFAIK manually built by people interested in the respective platforms. Contributing...

> The llvm.org binary distributions are AFAIK manually built by people interested in the respective platforms. Contributing binaries for them is an option probably a fair amount of work and...

No, we're not considering this. If someone wants to contribute scripts for building on additional platforms and it: - can run on the existing github actions setup - doesn't add...

Interesting. It looks like clang warns if if they appear in a "normal source file" but not a header. With `test.h`=`static inline void foo(void) {}`: - `clang -Weverything ~/test.h` is...

Sema::ShouldWarnIfUnusedFileScopedDecl says: ``` // 'static inline' functions are defined in headers; don't warn. if (FD->isInlined() && !isMainFileLoc(*this, FD->getLocation())) return false; ``` where "isMainFileLoc" is ``` if (S.TUKind != TU_Complete) return...

Oh, my brain isn't working. We're checking for main-file-ness but not header-ness. So if the header is the main file, we'll incorrectly warn. And I suspect clang doesn't warn when...