Currently, template parameters are not displayed in the plist output. While developing D45532, I found this very frustrating, because it was difficult to decide whether a constructor works correctly without seeing the exact template parameters.
Details
Diff Detail
- Repository
- rC Clang
Event Timeline
Thanks for the review!
lib/StaticAnalyzer/Core/PathDiagnostic.cpp | ||
---|---|---|
1011 | I looked up CXXLangDecl, but apparently its not a thing. I tried looking in PathDiagnostic.h, and some related files, but I couldn't get that "real" LangOptions anywhere :( What I could do however, is add a LangOptions field to PathDiagnostic, but I'd rather be sure that I didn't misunderstand you. What drove me to this solution is that TemplateArgument::dump's implementation does the same, though it is accompanied with a FIXME. |
D->getASTContext().getLangOpts() will get you language option.
Oh, yea, right. Woops. Thanks for pointing me in right direction :) Clangd looks great, I'll definitely give it a try.
If you like the patch as it is now, can you commit it for me please? I have no write access.
@Szelethus I can, but since you've had quite a few patches accepted, do you want to just apply for a commit access ? https://llvm.org/docs/DeveloperPolicy.html#obtaining-commit-access
Calling ->getASTContext()->getLangOpts() on CXXLangDecl will get you the real thing.