[all-commits] [llvm/llvm-project] 0776af: [Clang] [Sema] Fix FixIt for implicit-int diagnost...
Karl Friebel via All-commits
all-commits at lists.llvm.org
Wed Feb 11 07:48:00 PST 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 0776af16c57cecca98472888f1bfc6f83151c427
https://github.com/llvm/llvm-project/commit/0776af16c57cecca98472888f1bfc6f83151c427
Author: Karl Friebel <karl.friebel at friebelnet.de>
Date: 2026-02-11 (Wed, 11 Feb 2026)
Changed paths:
M clang/docs/ReleaseNotes.rst
M clang/lib/Parse/Parser.cpp
M clang/lib/Sema/SemaType.cpp
A clang/test/FixIt/fixit-missing-type-spec.c
M clang/test/SemaOpenCL/invalid-pipes-cl2.0.cl
Log Message:
-----------
[Clang] [Sema] Fix FixIt for implicit-int diagnostics. (#179356)
When encountering a declaration without a type specifier, in contexts
where they could reasonably be assumed to default to int, clang emits a
diagnostic with FixIt. This FixIt does not produce working code.
This patch updates `SemaType` to correctly insert a single int type
specifier per group of declarations, and adds coverage in the FixIt lit test suite.
Fixes #179354
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list