[all-commits] [llvm/llvm-project] 747c01: [clang][Sema][Tests] Add test coverage for functio...
Prashanth via All-commits
all-commits at lists.llvm.org
Fri Sep 18 05:05:21 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 747c011130b66c197ff5b18892646933f3a1c838
https://github.com/llvm/llvm-project/commit/747c011130b66c197ff5b18892646933f3a1c838
Author: Prashanth <ping at starone01.me>
Date: 2026-09-18 (Fri, 18 Sep 2026)
Changed paths:
M clang/test/Sema/typo-correction-no-hang.cpp
M clang/test/Sema/typo-correction.c
Log Message:
-----------
[clang][Sema][Tests] Add test coverage for function-like macro diagnostic edge cases and C++ (#223895)
Add C++ and edge-case test coverage for function-like macro diagnostic
Follow-up to #123495.
Adds regression tests covering cases not exercised by the original PR:
- Macro call with intervening comment/whitespace before '(', confirms
findNextToken correctly skips these rather than misfiring
- Macro call with '(' across a line break
- Re-#define after #undef, confirms no stale state
- Array-size context (non-assignment expression)
- Variadic function-like macro
- New SemaCXX test confirming the diagnostic fires correctly in C++,
since the implementation lives in shared SemaExpr.cpp
No behavior change, test coverage only.
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