Skip to content

Commit de1efa7

Browse files
ashfordiumsteakhal
andauthored
Use decltype and using alias instead of typedef,__typeof
Co-authored-by: Balazs Benics <[email protected]>
1 parent 56a90a8 commit de1efa7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/Analysis/new-user-defined.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
void clang_analyzer_eval(bool);
1414

15-
typedef __typeof(sizeof(int)) size_t;
15+
using size_t = decltype(sizeof(int));
1616

1717
namespace CustomClassType {
1818
struct S {

0 commit comments

Comments
 (0)