Skip to content

Sema::isSimpleTypeSpecifier should return true for _Bool from C99 onwards #72203

Closed
@carlos4242

Description

@carlos4242

Relates to an existing FIXME in code: https://github.com/llvm/llvm-project/blob/main/clang/lib/Sema/SemaDecl.cpp#L131

--

As discussed in https://discourse.llvm.org/t/should-issimpletypespecifier-return-true-for-bool/74873, this would be a handy little addition for some use cases (for example in Swift, which uses it in the clang importer).

I have prepared a patch already and will raise a PR after I've raised this issue, to aid in tracking, and to avoid someone duplicating the work in future.

Metadata

Metadata

Assignees

Labels

cclang:frontendLanguage frontend issues, e.g. anything involving "Sema"

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions