[all-commits] [llvm/llvm-project] b4d832: [clang] Improved isSimpleTypeSpecifier (#79037)

Carl Peto via All-commits all-commits at lists.llvm.org
Tue Jan 30 18:19:01 PST 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: b4d832c77dcba4136132559a5183883cf064389d
      https://github.com/llvm/llvm-project/commit/b4d832c77dcba4136132559a5183883cf064389d
  Author: Carl Peto <carl.peto at me.com>
  Date:   2024-01-30 (Tue, 30 Jan 2024)

  Changed paths:
    M clang/include/clang/Sema/Sema.h
    M clang/lib/Parse/ParseExpr.cpp
    M clang/lib/Parse/ParseObjc.cpp
    M clang/lib/Sema/SemaDecl.cpp

  Log Message:
  -----------
  [clang] Improved isSimpleTypeSpecifier (#79037)

- Sema::isSimpleTypeSpecifier return true for _Bool in c99 (currently
returns false for _Bool, regardless of C dialect). (Fixes #72203)
- replace the logic with a check for simple types and a proper check for
a valid keyword in the appropriate dialect

Co-authored-by: Carl Peto <CPeto at becrypt.com>




More information about the All-commits mailing list