Issue 120228
Summary unrelated `TypedefDecl` included in AST dump for empty function
Labels question, clang:frontend
Assignees
Reporter firewave
    ```cpp
void f()
{
}
```

`clang -Xclang -ast-dump -E - < a.cpp`

```
TranslationUnitDecl 0x60efd80ef9f8 <<invalid sloc>> <invalid sloc>
|-TypedefDecl 0x60efd80f0228 <<invalid sloc>> <invalid sloc> implicit __int128_t '__int128'
| `-BuiltinType 0x60efd80effc0 '__int128'
|-TypedefDecl 0x60efd80f0298 <<invalid sloc>> <invalid sloc> implicit __uint128_t 'unsigned __int128'
| `-BuiltinType 0x60efd80effe0 'unsigned __int128'
|-TypedefDecl 0x60efd80f05a0 <<invalid sloc>> <invalid sloc> implicit __NSConstantString 'struct __NSConstantString_tag'
| `-RecordType 0x60efd80f0370 'struct __NSConstantString_tag'
|   `-Record 0x60efd80f02f0 '__NSConstantString_tag'
|-TypedefDecl 0x60efd80f0648 <<invalid sloc>> <invalid sloc> implicit __builtin_ms_va_list 'char *'
| `-PointerType 0x60efd80f0600 'char *'
|   `-BuiltinType 0x60efd80efaa0 'char'
|-TypedefDecl 0x60efd80f0940 <<invalid sloc>> <invalid sloc> implicit __builtin_va_list 'struct __va_list_tag[1]'
| `-ConstantArrayType 0x60efd80f08e0 'struct __va_list_tag[1]' 1 
|   `-RecordType 0x60efd80f0720 'struct __va_list_tag'
|     `-Record 0x60efd80f06a0 '__va_list_tag'
`-FunctionDecl 0x60efd8151470 <<stdin>:1:1, line:3:1> line:1:6 f 'void ()'
  `-CompoundStmt 0x60efd8151560 <line:2:1, line:3:1>
```

Where are these `TypedefDecl` coming from? They seem totally unrelated and unnecessary to the code that is being pocessed.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to