[clang] [Clang] strengthen checks for 'main' function to meet [basic.start.main] p2 requirements (PR #101853)
via cfe-commits
cfe-commits at lists.llvm.org
Mon Aug 5 02:56:21 PDT 2024
================
@@ -2156,6 +2156,8 @@ class DeclContext {
return getDeclKind() == Decl::TranslationUnit;
}
+ bool isLinkageSpec() const { return getDeclKind() == Decl::LinkageSpec; }
----------------
Sirraide wrote:
I don’t think we need this. The place where this is used can just do `isa<LinkageSpecDecl>(D)` or sth like that
https://github.com/llvm/llvm-project/pull/101853
More information about the cfe-commits
mailing list