5 Commits

Author SHA1 Message Date
Timm Bäder
c54ff51be9 [clang][Interp] Emit correct diagnostic for uninitialized reads
Differential Revision: https://reviews.llvm.org/D154758
2023-07-09 16:27:49 +02:00
Takuya Shimizu
f6be96aa4e [clang][ExprConstant] Fix display of syntactically-invalid note for member function calls
This patch makes the display of member function calls more true to the user-written code by making use of the syntactical structure of the function calls.
This patch also changes the display of conventional value-based printing from arrow operator to dot operator.
This avoids the syntactical invalidness in notes previously caused by the display of & operator
(lack of parentheses and reference of rvalue)

Fixes https://github.com/llvm/llvm-project/issues/57081

Reviewed By: cjdb
Differential Revision: https://reviews.llvm.org/D151720
2023-06-28 00:19:46 +09:00
Timm Bäder
92417f2d4b [clang][Interp] Record initialization via conditional operator
Differential Revision: https://reviews.llvm.org/D141497
2023-04-06 09:44:02 +02:00
Timm Bäder
d472c55fa2 [clang][Interp] Fix double-printing InterpFrame::describe()
Differential Revision: https://reviews.llvm.org/D141831
2023-03-31 15:25:30 +02:00
Timm Bäder
068e0e001d [clang][Interp][NFC] Add failing test case for InterpFrame::describe() 2023-03-31 08:32:42 +02:00