Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
include-what-you-use suggestions for apple/swift
This file has been truncated, but you can view the full file.
/Users/varun/foss-swift/swift/stdlib/include/llvm/Support/ErrorHandling.h should add these lines:
#include "iosfwd" // for string
/Users/varun/foss-swift/swift/stdlib/include/llvm/Support/ErrorHandling.h should remove these lines:
- #include <string> // lines 18-18
The full include-list for /Users/varun/foss-swift/swift/stdlib/include/llvm/Support/ErrorHandling.h:
#include "iosfwd" // for string
#include "llvm/Support/Compiler.h" // for LLVM_ATTRIBUTE_NORETURN
namespace __swift { namespace __runtime { namespace llvm { class StringRef; } } } // lines 22-22
---
/Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/ErrorHandling.cpp should add these lines:
#include "string" // for basic_string
/Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/ErrorHandling.cpp should remove these lines:
- #include <unistd.h> // lines 24-24
- #include <cassert> // lines 16-16
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/ErrorHandling.cpp:
#include "llvm/Support/ErrorHandling.h"
#include <asl.h> // for asl_log, ASL_LEVEL_ERR
#include <stdarg.h> // for va_end, va_list, va_start
#include <stdio.h> // for vsnprintf
#include <cstdlib> // for abort
#include "llvm/ADT/StringRef.h" // for StringRef
#include "string" // for basic_string
---
/Users/varun/foss-swift/swift/stdlib/include/llvm/ADT/Hashing.h should add these lines:
#include <stdint.h> // for uint64_t, uint32_t, uint8_t
#include "cstdint" // for uint64_t
#include "iterator" // for distance, end
#include "type_traits" // for enable_if_t, swap, integral_...
/Users/varun/foss-swift/swift/stdlib/include/llvm/ADT/Hashing.h should remove these lines:
- #include "llvm/Support/DataTypes.h" // lines 47-47
The full include-list for /Users/varun/foss-swift/swift/stdlib/include/llvm/ADT/Hashing.h:
#include <stdint.h> // for uint64_t, uint32_t, uint8_t
#include <algorithm> // for rotate
#include <cassert> // for assert
#include <cstring> // for size_t, memcpy
#include <string> // for basic_string
#include <utility> // for pair
#include "cstdint" // for uint64_t
#include "iterator" // for distance, end
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/SwapByteOrder.h" // for swapByteOrder, IsBigEndianHost
#include "llvm/Support/type_traits.h" // for is_integral_or_enum
#include "type_traits" // for enable_if_t, swap, integral_...
---
(/Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/Hashing.cpp has correct #includes/fwd-decls)
/Users/varun/foss-swift/swift/stdlib/include/llvm/ADT/StringRef.h should add these lines:
#include "__nullptr" // for nullptr_t
#include "iosfwd" // for string
#include "llvm/ADT/Hashing.h" // for hash_code
#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
#include "string.h" // for memchr
/Users/varun/foss-swift/swift/stdlib/include/llvm/ADT/StringRef.h should remove these lines:
- namespace __swift { namespace __runtime { namespace llvm { class hash_code; } } } // lines 36-36
- namespace __swift { namespace __runtime { namespace llvm { template <typename T> class SmallVectorImpl; } } } // lines 37-37
The full include-list for /Users/varun/foss-swift/swift/stdlib/include/llvm/ADT/StringRef.h:
#include <algorithm> // for min, copy, max
#include <cassert> // for assert
#include <cstddef> // for size_t
#include <cstring> // for memcmp
#include <limits> // for numeric_limits
#include <string> // for basic_string
#include <type_traits> // for move, enable_if_t, is_same
#include <utility> // for make_pair, pair
#include "__nullptr" // for nullptr_t
#include "iosfwd" // for string
#include "llvm/ADT/Hashing.h" // for hash_code
#include "llvm/ADT/STLExtras.h" // for function_ref
#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
#include "llvm/ADT/iterator_range.h" // for make_range, iterator_range
#include "llvm/Support/Compiler.h" // for LLVM_NODISCARD, LLVM_GSL_POINTER
#include "string.h" // for memchr
namespace __swift { namespace __runtime { namespace llvm { class StringRef; } } } // lines 38-38
---
/Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/StringRef.cpp should add these lines:
#include <limits.h> // for CHAR_BIT
#include <stdint.h> // for uint8_t
#include "algorithm" // for min
#include "llvm/ADT/None.h" // for llvm
#include "llvm/ADT/StringExtras.h" // for toLower, isDigit, toUpper
#include "string" // for basic_string
/Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/StringRef.cpp should remove these lines:
- #include "llvm/Support/Error.h" // lines 11-11
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/LLVMSupport/StringRef.cpp:
#include "llvm/ADT/StringRef.h"
#include <limits.h> // for CHAR_BIT
#include <stdint.h> // for uint8_t
#include <bitset> // for bitset
#include "algorithm" // for min
#include "llvm/ADT/Hashing.h" // for hash_combine_range, hash_code
#include "llvm/ADT/None.h" // for llvm
#include "llvm/ADT/StringExtras.h" // for toLower, isDigit, toUpper
#include "string" // for basic_string
---
/Users/varun/foss-swift/swift/stdlib/public/stubs/Assert.cpp should add these lines:
/Users/varun/foss-swift/swift/stdlib/public/stubs/Assert.cpp should remove these lines:
- #include <stdio.h> // lines 18-18
- #include <cstdarg> // lines 16-16
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/stubs/Assert.cpp:
#include <inttypes.h> // for PRIu32
#include <stdlib.h> // for free
#include <cstdint> // for uint32_t
#include "../SwiftShims/AssertionReporting.h" // for _swift_stdlib_reportFa...
#include "swift/Runtime/Config.h" // for swift
#include "swift/Runtime/Debug.h" // for swift_asprintf, swift_...
---
(/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/GlobalObjects.h has correct #includes/fwd-decls)
/Users/varun/foss-swift/swift/stdlib/public/stubs/GlobalObjects.cpp should add these lines:
#include <string.h>
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/HeapObject.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/RefCount.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/SwiftStdint.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "new"
#include "swift/ABI/Metadata.h"
#include "swift/Demangling/ManglingMacros.h"
#include "swift/Runtime/Config.h"
/Users/varun/foss-swift/swift/stdlib/public/stubs/GlobalObjects.cpp should remove these lines:
- #include "swift/Runtime/Debug.h" // lines 22-22
- #include "swift/Runtime/Metadata.h" // lines 21-21
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/stubs/GlobalObjects.cpp:
#include "../SwiftShims/GlobalObjects.h"
#include <stdlib.h>
#include <string.h>
#include "../SwiftShims/Random.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/HeapObject.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/RefCount.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/SwiftStdint.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "new"
#include "swift/ABI/Metadata.h"
#include "swift/Demangling/ManglingMacros.h"
#include "swift/Runtime/Config.h"
---
/Users/varun/foss-swift/swift/stdlib/public/stubs/Stubs.cpp should add these lines:
#include <_xlocale.h>
#include <math.h>
#include <strings.h>
#include <xlocale/_stdlib.h>
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/SwiftStddef.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "algorithm"
#include "swift/Runtime/Config.h"
/Users/varun/foss-swift/swift/stdlib/public/stubs/Stubs.cpp should remove these lines:
- #include <sys/resource.h> // lines 34-34
- #include <unistd.h> // lines 35-35
- #include <xlocale.h> // lines 73-73
- #include <climits> // lines 37-37
- #include <clocale> // lines 38-38
- #include <cstdarg> // lines 39-39
- #include <cstdlib> // lines 42-42
- #include "../SwiftShims/LibcShims.h" // lines 81-81
- #include "swift/Basic/Lazy.h" // lines 79-79
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/stubs/Stubs.cpp:
#include <_xlocale.h>
#include <math.h>
#include <strings.h>
#include <sys/errno.h>
#include <xlocale/_stdlib.h>
#include <cstdint>
#include <cstdio>
#include <cstring>
#include <limits>
#include <thread>
#include "../SwiftShims/RuntimeShims.h"
#include "../SwiftShims/RuntimeStubs.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/SwiftStddef.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "algorithm"
#include "llvm/ADT/StringExtras.h"
#include "swift/Runtime/Config.h"
#include "swift/Runtime/Debug.h"
#include "swift/Runtime/SwiftDtoa.h"
---
/Users/varun/foss-swift/swift/stdlib/public/stubs/ThreadLocalStorage.cpp should add these lines:
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "swift/Runtime/Config.h"
/Users/varun/foss-swift/swift/stdlib/public/stubs/ThreadLocalStorage.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/stubs/ThreadLocalStorage.cpp:
#include <cstring>
#include "../SwiftShims/ThreadLocalStorage.h"
#include "../runtime/ThreadLocalStorage.h"
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "swift/Basic/Lazy.h"
#include "swift/Runtime/Config.h"
#include "swift/Runtime/Debug.h"
---
/Users/varun/foss-swift/swift/stdlib/public/stubs/MathStubs.cpp should add these lines:
/Users/varun/foss-swift/swift/stdlib/public/stubs/MathStubs.cpp should remove these lines:
- #include <climits> // lines 21-21
- #include <cstdlib> // lines 22-22
- #include "../SwiftShims/Visibility.h" // lines 19-19
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/stubs/MathStubs.cpp:
---
/Users/varun/foss-swift/swift/include/swift/Reflection/MetadataSource.h should add these lines:
#include <stdio.h> // for FILE
#include <stdlib.h> // for strtol
#include <sys/errno.h> // for ERANGE, errno
#include "iosfwd" // for string
#include "iterator" // for distance
#include "string" // for basic_string, basic_...
#include "type_traits" // for forward
/Users/varun/foss-swift/swift/include/swift/Reflection/MetadataSource.h should remove these lines:
- #include <iostream> // lines 31-31
- #include "llvm/ADT/Optional.h" // lines 25-25
The full include-list for /Users/varun/foss-swift/swift/include/swift/Reflection/MetadataSource.h:
#include <stdio.h> // for FILE
#include <stdlib.h> // for strtol
#include <sys/errno.h> // for ERANGE, errno
#include <climits> // for LONG_MAX, LONG_MIN
#include "iosfwd" // for string
#include "iterator" // for distance
#include "llvm/Support/Casting.h" // for cast
#include "string" // for basic_string, basic_...
#include "swift/Reflection/MetadataSources.def" // for MetadataSourceKind::...
#include "swift/Reflection/MetadataSources.def" // for MetadataSourceKind::...
#include "type_traits" // for forward
---
/Users/varun/foss-swift/swift/stdlib/public/Reflection/MetadataSource.cpp should add these lines:
/Users/varun/foss-swift/swift/stdlib/public/Reflection/MetadataSource.cpp should remove these lines:
- #include <sstream> // lines 15-15
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/Reflection/MetadataSource.cpp:
#include "swift/Reflection/MetadataSource.h"
---
/Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeLowering.cpp should add these lines:
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "algorithm"
#include "iosfwd"
#include "limits"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "memory"
#include "new"
#include "string"
#include "swift/ABI/Metadata.h"
#include "swift/Basic/LLVM.h"
#include "swift/Demangling/TypeDecoder.h"
#include "swift/Reflection/Records.h"
#include "swift/Remote/MemoryReader.h"
#include "swift/Remote/MetadataReader.h"
#include "swift/Remote/RemoteAddress.h"
#include "type_traits"
#include "unordered_map"
#include "utility"
#include "vector"
/Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeLowering.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeLowering.cpp:
#include <assert.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "algorithm"
#include "iosfwd"
#include "limits"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/DenseSet.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "memory"
#include "new"
#include "string"
#include "swift/ABI/Enum.h"
#include "swift/ABI/Metadata.h"
#include "swift/ABI/MetadataValues.h"
#include "swift/AST/ReferenceStorage.def" // lines 198-198
#include "swift/AST/ReferenceStorage.def" // lines 1572-1572
#include "swift/AST/ReferenceStorage.def" // lines 1707-1707
#include "swift/AST/ReferenceStorage.def" // lines 2153-2153
#include "swift/Basic/LLVM.h"
#include "swift/Demangling/TypeDecoder.h"
#include "swift/Reflection/Records.h"
#include "swift/Reflection/TypeLowering.h"
#include "swift/Reflection/TypeRef.h"
#include "swift/Reflection/TypeRefBuilder.h"
#include "swift/Remote/MemoryReader.h"
#include "swift/Remote/MetadataReader.h"
#include "swift/Remote/RemoteAddress.h"
#include "swift/Runtime/Unreachable.h"
#include "type_traits"
#include "unordered_map"
#include "utility"
#include "vector"
---
/Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeRef.cpp should add these lines:
#include <assert.h>
#include <stdio.h>
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "iosfwd"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "new"
#include "string"
#include "swift/ABI/Metadata.h"
#include "swift/ABI/MetadataValues.h"
#include "swift/AST/Ownership.h"
#include "swift/Basic/LLVM.h"
#include "swift/Demangling/Demangler.h"
#include "swift/Demangling/TypeDecoder.h"
#include "swift/Reflection/TypeLowering.h"
#include "swift/Strings.h"
#include "tuple"
#include "type_traits"
#include "unordered_map"
#include "utility"
#include "vector"
/Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeRef.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeRef.cpp:
#include <assert.h>
#include <stdio.h>
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "iosfwd"
#include "llvm/ADT/ArrayRef.h"
#include "llvm/ADT/DenseMap.h"
#include "llvm/ADT/None.h"
#include "llvm/ADT/Optional.h"
#include "llvm/ADT/SmallVector.h"
#include "llvm/ADT/StringRef.h"
#include "llvm/Support/Casting.h"
#include "new"
#include "string"
#include "swift/ABI/Metadata.h"
#include "swift/ABI/MetadataValues.h"
#include "swift/AST/Ownership.h"
#include "swift/AST/ReferenceStorage.def" // lines 251-251
#include "swift/AST/ReferenceStorage.def" // lines 376-376
#include "swift/AST/ReferenceStorage.def" // lines 672-672
#include "swift/AST/ReferenceStorage.def" // lines 875-875
#include "swift/AST/ReferenceStorage.def" // lines 1058-1058
#include "swift/Basic/LLVM.h"
#include "swift/Basic/Range.h"
#include "swift/Demangling/Demangle.h"
#include "swift/Demangling/Demangler.h"
#include "swift/Demangling/TypeDecoder.h"
#include "swift/Reflection/TypeLowering.h"
#include "swift/Reflection/TypeRef.h"
#include "swift/Reflection/TypeRefBuilder.h"
#include "swift/Strings.h"
#include "tuple"
#include "type_traits"
#include "unordered_map"
#include "utility"
#include "vector"
---
/Users/varun/foss-swift/swift/include/swift/Reflection/TypeRefBuilder.h should add these lines:
#include <assert.h> // for assert
#include <stdint.h> // for uint64_t, uintptr_t
#include <stdio.h> // for FILE, fputs, stderr
#include <stdlib.h> // for abort
#include "functional" // for function
#include "iosfwd" // for string
#include "iterator" // for forward_iterator...
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/StringRef.h" // for StringRef
#include "memory" // for unique_ptr
#include "new" // for operator new
#include "string" // for basic_string, hash
#include "swift/ABI/MetadataValues.h" // for FunctionTypeFlags
#include "swift/Basic/LLVM.h" // for None
#include "swift/Demangling/Demangle.h" // for mangleNode, Node
#include "swift/Demangling/Demangler.h" // for StringRef, Deman...
#include "swift/Demangling/TypeDecoder.h" // for ImplMetatypeRepr...
#include "type_traits" // for move, forward
#include "utility" // for pair, make_pair
namespace swift { namespace reflection { class MetadataSource; } }
/Users/varun/foss-swift/swift/include/swift/Reflection/TypeRefBuilder.h should remove these lines:
- namespace swift { namespace reflection { template <typename Runtime> class ReflectionContext; } } // lines 36-36
The full include-list for /Users/varun/foss-swift/swift/include/swift/Reflection/TypeRefBuilder.h:
#include <assert.h> // for assert
#include <stdint.h> // for uint64_t, uintptr_t
#include <stdio.h> // for FILE, fputs, stderr
#include <stdlib.h> // for abort
#include <unordered_map> // for operator!=, unor...
#include <vector> // for vector
#include "functional" // for function
#include "iosfwd" // for string
#include "iterator" // for forward_iterator...
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for StringRef
#include "memory" // for unique_ptr
#include "new" // for operator new
#include "string" // for basic_string, hash
#include "swift/ABI/MetadataValues.h" // for FunctionTypeFlags
#include "swift/AST/ReferenceStorage.def" // lines 510-510
#include "swift/Basic/LLVM.h" // for None
#include "swift/Demangling/Demangle.h" // for mangleNode, Node
#include "swift/Demangling/Demangler.h" // for StringRef, Deman...
#include "swift/Demangling/TypeDecoder.h" // for ImplMetatypeRepr...
#include "swift/Reflection/MetadataSourceBuilder.h" // for MetadataSourceBu...
#include "swift/Reflection/Records.h" // for AssociatedTypeDe...
#include "swift/Reflection/TypeLowering.h" // for RemoteRef, TypeC...
#include "swift/Reflection/TypeRef.h" // for TypeRefID::Equal
#include "swift/Reflection/TypeRefs.def" // lines 247-247
#include "swift/Reflection/TypeRefs.def" // lines 278-278
#include "swift/Remote/MetadataReader.h" // for RemoteRef, Mangl...
#include "type_traits" // for move, forward
#include "utility" // for pair, make_pair
namespace swift { namespace reflection { class MetadataSource; } }
---
/Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeRefBuilder.cpp should add these lines:
#include "llvm/Support/Casting.h" // for dyn_cast
#include "swift/ABI/Metadata.h" // for reflection
#include "swift/Reflection/MetadataSource.h" // for MetadataSource
#include "unordered_map" // for operator!=, unordered_map
#include "vector" // for vector
/Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeRefBuilder.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/Reflection/TypeRefBuilder.cpp:
#include "swift/Reflection/TypeRefBuilder.h"
#include "llvm/Support/Casting.h" // for dyn_cast
#include "swift/ABI/Metadata.h" // for reflection
#include "swift/Demangling/Demangle.h" // for Node, nodeToString, man...
#include "swift/Reflection/MetadataSource.h" // for MetadataSource
#include "swift/Reflection/Records.h" // for BuiltinTypeDescriptor
#include "swift/Reflection/TypeLowering.h" // for TypeRefBuilder::createU...
#include "swift/Reflection/TypeRef.h" // for TypeRef, BoundGenericTy...
#include "swift/Remote/MetadataReader.h" // for RemoteRef
#include "unordered_map" // for operator!=, unordered_map
#include "vector" // for vector
---
/Users/varun/foss-swift/swift/stdlib/public/Darwin/os/os_trace_blob.h should add these lines:
#include <_ctype.h> // for isspace
#include <os/base.h> // for OS_ALWAYS_INLINE, OS_ENUM, OS_MALLOC
/Users/varun/foss-swift/swift/stdlib/public/Darwin/os/os_trace_blob.h should remove these lines:
- #include <ctype.h> // lines 16-16
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/Darwin/os/os_trace_blob.h:
#include <_ctype.h> // for isspace
#include <os/base.h> // for OS_ALWAYS_INLINE, OS_ENUM, OS_MALLOC
#include <stdbool.h> // for bool
#include <stdint.h> // for uint32_t, uint8_t, uint16_t
#include <stdlib.h> // for free, size_t
#include <string.h> // for strlen, size_t, memcpy
#include "thunks.h" // for os_unlikely, OS_TRACE_INTERNAL_CRASH
---
/Users/varun/foss-swift/swift/stdlib/public/Darwin/os/os_trace_blob.c should add these lines:
#include <sys/param.h> // for MAX, MIN
#include <unistd.h> // for sleep
/Users/varun/foss-swift/swift/stdlib/public/Darwin/os/os_trace_blob.c should remove these lines:
- #include <ctype.h> // lines 13-13
- #include <dispatch/dispatch.h> // lines 14-14
- #include <locale.h> // lines 17-17
- #include <os/log.h> // lines 16-16
- #include <xlocale.h> // lines 19-19
The full include-list for /Users/varun/foss-swift/swift/stdlib/public/Darwin/os/os_trace_blob.c:
#include "os_trace_blob.h"
#include <os/base.h> // for OS_NOINLINE
#include <sys/param.h> // for MAX, MIN
#include <unistd.h> // for sleep
---
/Users/varun/foss-swift/swift/stdlib/private/SwiftPrivateLibcExtras/Subprocess.c should add these lines:
#include <sys/cdefs.h> // for __restrict
/Users/varun/foss-swift/swift/stdlib/private/SwiftPrivateLibcExtras/Subprocess.c should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/stdlib/private/SwiftPrivateLibcExtras/Subprocess.c:
#include <spawn.h> // for posix_spawn_file_actions_t, posix_...
#include <sys/cdefs.h> // for __restrict
#include <sys/types.h> // for pid_t
#include "swift/Runtime/Config.h" // for SWIFT_CC, SWIFT_CC_swift
---
/Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/InspectValue.cpp should add these lines:
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "swift/ABI/Metadata.h"
#include "swift/ABI/MetadataValues.h"
namespace swift { struct OpaqueValue; }
/Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/InspectValue.cpp should remove these lines:
- #include "swift/Runtime/Metadata.h" // lines 14-14
The full include-list for /Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/InspectValue.cpp:
#include "/Users/varun/foss-swift/swift/stdlib/public/SwiftShims/Visibility.h"
#include "swift/ABI/Metadata.h"
#include "swift/ABI/MetadataKind.def" // lines 24-24
#include "swift/ABI/MetadataValues.h"
#include "swift/Runtime/Config.h"
namespace swift { struct OpaqueValue; }
---
/Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/InterceptTraps.cpp should add these lines:
#include <sys/signal.h> // for signal, SIGABRT, SIGBUS, SIGFPE
/Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/InterceptTraps.cpp should remove these lines:
- #include <signal.h> // lines 16-16
The full include-list for /Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/InterceptTraps.cpp:
#include <stdio.h> // for setbuf, stdout
#include <string.h> // for strlen
#include <sys/signal.h> // for signal, SIGABRT, SIGBUS, SIGFPE
#include <unistd.h> // for _exit, write, STDERR_FILENO
#include "swift/Runtime/Config.h" // for SWIFT_CC, SWIFT_CC_swift, SWIFT_RU...
---
(/Users/varun/foss-swift/swift/stdlib/private/StdlibUnittest/OpaqueIdentityFunctions.cpp has correct #includes/fwd-decls)
/Users/varun/foss-swift/swift/stdlib/tools/swift-reflection-test/swift-reflection-test.c should add these lines:
#include <sys/errno.h> // for errno
#include "swift/SwiftRemoteMirror/MemoryReaderInterface.h" // for swift_ad...
#include "swift/SwiftRemoteMirror/SwiftRemoteMirrorTypes.h" // for swift_ty...
/Users/varun/foss-swift/swift/stdlib/tools/swift-reflection-test/swift-reflection-test.c should remove these lines:
- #include <assert.h> // lines 24-24
- #include <errno.h> // lines 25-25
The full include-list for /Users/varun/foss-swift/swift/stdlib/tools/swift-reflection-test/swift-reflection-test.c:
#include <TargetConditionals.h> // for TARGET_O...
#include <dlfcn.h> // for dlsym
#include <stdint.h> // for uintptr_t
#include <stdio.h> // for printf
#include <stdlib.h> // for EXIT_SUC...
#include <string.h> // for strerror
#include <sys/errno.h> // for errno
#include <unistd.h> // for write
#include "messages.h" // for Instance...
#include "overrides.h" // for _execv
#include "swift/Demangling/ManglingMacros.h" // for MANGLING...
#include "swift/SwiftRemoteMirror/MemoryReaderInterface.h" // for swift_ad...
#include "swift/SwiftRemoteMirror/SwiftRemoteMirror.h" // for swift_re...
#include "swift/SwiftRemoteMirror/SwiftRemoteMirrorTypes.h" // for swift_ty...
---
(/Users/varun/foss-swift/swift/stdlib/tools/swift-reflection-test/overrides.h has correct #includes/fwd-decls)
(/Users/varun/foss-swift/swift/stdlib/tools/swift-reflection-test/overrides.c has correct #includes/fwd-decls)
/Users/varun/foss-swift/swift/include/swift/AST/AbstractSourceFileDepGraphFactory.h should add these lines:
#include "iosfwd" // for string
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for StringRef
#include "string" // for basic_string
/Users/varun/foss-swift/swift/include/swift/AST/AbstractSourceFileDepGraphFactory.h should remove these lines:
- #include "swift/AST/DeclContext.h" // lines 16-16
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/AbstractSourceFileDepGraphFactory.h:
#include "iosfwd" // for string
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for StringRef
#include "string" // for basic_string
#include "swift/AST/FineGrainedDependencies.h" // for DependencyKey (ptr only)
namespace swift { class DiagnosticEngine; } // lines 20-20
---
/Users/varun/foss-swift/swift/lib/AST/AbstractSourceFileDepGraphFactory.cpp should add these lines:
#include <assert.h> // for assert
#include "llvm/ADT/None.h" // for None
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/OptionSet.h" // for None
#include "type_traits" // for move
/Users/varun/foss-swift/swift/lib/AST/AbstractSourceFileDepGraphFactory.cpp should remove these lines:
- #include "llvm/ADT/MapVector.h" // lines 23-23
- #include "llvm/ADT/SetVector.h" // lines 24-24
- #include "llvm/ADT/SmallVector.h" // lines 25-25
- #include "llvm/Support/YAMLParser.h" // lines 26-26
- #include "swift/AST/DiagnosticEngine.h" // lines 16-16
- #include "swift/AST/DiagnosticsFrontend.h" // lines 17-17
- #include "swift/AST/FileSystem.h" // lines 18-18
- #include "swift/Basic/FileSystem.h" // lines 20-20
The full include-list for /Users/varun/foss-swift/swift/lib/AST/AbstractSourceFileDepGraphFactory.cpp:
#include "swift/AST/AbstractSourceFileDepGraphFactory.h"
#include <assert.h> // for assert
#include "llvm/ADT/None.h" // for None
#include "swift/AST/FineGrainedDependencies.h" // for SourceFileDepGraph
#include "swift/Basic/LLVM.h" // for swift
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/OptionSet.h" // for None
#include "swift/Basic/ReferenceDependencyKeys.h" // for NodeKind, NodeKind:...
#include "type_traits" // for move
---
/Users/varun/foss-swift/swift/lib/AST/AccessRequests.cpp should add these lines:
#include <assert.h> // for assert
#include <stdint.h> // for uint8_t
#include "algorithm" // for max, min
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair
#include "llvm/Support/Casting.h" // for isa, dyn_cast, cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "swift/AST/AccessScope.h" // for AccessScope
#include "swift/AST/Attr.h" // for DeclAttributes, AccessCont...
#include "swift/AST/AttrKind.h" // for AccessLevel, AccessLevel::...
#include "swift/AST/DeclContext.h" // for DeclContextKind, DeclContext
#include "swift/AST/Evaluator.h" // for AbstractRequestFunction, None
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/Basic/LLVM.h" // for isa, cast, dyn_cast, swift
#include "swift/Basic/OptionalEnum.h" // for OptionalEnum
#include "swift/Basic/TypeID.h" // for Zone, Zone::AccessControl
#include "tuple" // for get
#include "type_traits" // for move
#include "utility" // for pair, make_pair
#include "vector" // for vector
/Users/varun/foss-swift/swift/lib/AST/AccessRequests.cpp should remove these lines:
- #include "swift/AST/DiagnosticsCommon.h" // lines 17-17
- #include "swift/AST/Types.h" // lines 21-21
The full include-list for /Users/varun/foss-swift/swift/lib/AST/AccessRequests.cpp:
#include <assert.h> // for assert
#include <stdint.h> // for uint8_t
#include "algorithm" // for max, min
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair
#include "llvm/Support/Casting.h" // for isa, dyn_cast, cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/MathExtras.h" // for findFirstSet, findLastSet
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/AccessRequests.h" // for DefaultAndMaxAccessLevelRe...
#include "swift/AST/AccessScope.h" // for AccessScope
#include "swift/AST/AccessTypeIDZone.def" // lines 327-327
#include "swift/AST/Attr.h" // for DeclAttributes, AccessCont...
#include "swift/AST/AttrKind.h" // for AccessLevel, AccessLevel::...
#include "swift/AST/Decl.h" // for ValueDecl, ExtensionDecl
#include "swift/AST/DeclContext.h" // for DeclContextKind, DeclContext
#include "swift/AST/Evaluator.h" // for AbstractRequestFunction, None
#include "swift/AST/Module.h" // for ModuleDecl, SourceFileKind
#include "swift/AST/NameLookupRequests.h" // for TypeDeclsFromWhereClauseRe...
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/Basic/ImplementTypeIDZone.h" // lines 31-31
#include "swift/Basic/LLVM.h" // for isa, cast, dyn_cast, swift
#include "swift/Basic/OptionalEnum.h" // for OptionalEnum
#include "swift/Basic/TypeID.h" // for Zone, Zone::AccessControl
#include "swift/Subsystems.h" // for registerAccessRequestFunct...
#include "tuple" // for get
#include "type_traits" // for move
#include "utility" // for pair, make_pair
#include "vector" // for vector
---
/Users/varun/foss-swift/swift/include/swift/AST/ASTContext.h should add these lines:
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t
#include <new> // for operator new
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref
#include "llvm/ADT/StringRef.h" // for StringRef
#include "new" // for operator new
#include "swift/Basic/LLVM.h" // for MutableArrayRef, SmallVecto...
#include "swift/Basic/Statistic.h" // for UnifiedStatsReporter, Unifi...
#include "tuple" // for tuple
#include "type_traits" // for remove_reference, forward
namespace clang { class Type; }
namespace llvm { template <typename Fn> class function_ref; }
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace llvm { template <typename T> class TinyPtrVector; }
namespace swift { class ClassDecl; }
namespace swift { class ProtocolConformance; }
namespace swift { class SearchPathOptions; }
namespace swift { class SubstitutionMap; }
namespace swift { class TangentSpace; }
namespace swift { struct AutoDiffConfig; }
namespace swift { struct AutoDiffDerivativeFunctionKind; }
namespace swift { template <typename T> struct Located; }
/Users/varun/foss-swift/swift/include/swift/AST/ASTContext.h should remove these lines:
- #include "llvm/ADT/PointerIntPair.h" // lines 34-34
- #include "llvm/ADT/TinyPtrVector.h" // lines 38-38
- #include "llvm/Support/DataTypes.h" // lines 40-40
- #include "swift/AST/SearchPathOptions.h" // lines 23-23
- #include "swift/AST/TypeAlignments.h" // lines 26-26
- #include "swift/Basic/Located.h" // lines 28-28
- namespace clang { class MacroInfo; } // lines 48-48
- namespace clang { class Module; } // lines 49-49
- namespace clang { class ObjCInterfaceDecl; } // lines 50-50
- namespace swift { class ArchetypeType; } // lines 91-91
- namespace swift { class BoundGenericType; } // lines 62-62
- namespace swift { class ClangNode; } // lines 64-64
- namespace swift { class ConstructorDecl; } // lines 66-66
- namespace swift { class DefaultArgumentInitializer; } // lines 69-69
- namespace swift { class DocComment; } // lines 115-115
- namespace swift { class ExtensionDecl; } // lines 72-72
- namespace swift { class FunctionType; } // lines 89-89
- namespace swift { class GenericContext; } // lines 75-75
- namespace swift { class Identifier; } // lines 92-92
- namespace swift { class InFlightDiagnostic; } // lines 76-76
- namespace swift { class InheritedNameSet; } // lines 93-93
- namespace swift { class PatternBindingDecl; } // lines 82-82
- namespace swift { class PatternBindingInitializer; } // lines 83-83
- namespace swift { class SILBoxType; } // lines 116-116
- namespace swift { class SpecializedProtocolConformance; } // lines 102-102
- namespace swift { class SubstitutableType; } // lines 110-110
- namespace swift { class TupleType; } // lines 88-88
- namespace swift { class TupleTypeElt; } // lines 107-107
- namespace swift { class Type; } // lines 86-86
- namespace swift { class TypeAliasDecl; } // lines 118-118
- namespace swift { class TypeVariableType; } // lines 87-87
- namespace swift { class UnifiedStatsReporter; } // lines 120-120
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/ASTContext.h:
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t
#include <functional> // for function
#include <memory> // for unique_ptr
#include <new> // for operator new
#include <utility> // for pair
#include <vector> // for vector
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap
#include "llvm/ADT/IntrusiveRefCntPtr.h" // for IntrusiveRefCntPtr
#include "llvm/ADT/MapVector.h" // for MapVector
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref
#include "llvm/ADT/SetVector.h" // for SetVector
#include "llvm/ADT/SmallPtrSet.h" // for SmallPtrSet
#include "llvm/ADT/StringMap.h" // for StringMap
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/Allocator.h" // for BumpPtrAllocator
#include "new" // for operator new
#include "swift/AST/Evaluator.h" // for ArrayRef, Evaluator
#include "swift/AST/GenericSignature.h" // for CanGenericSignature, Generi...
#include "swift/AST/Identifier.h" // for Identifier, DeclName (ptr o...
#include "swift/AST/KnownDecls.def" // lines 491-491
#include "swift/AST/KnownFoundationEntities.def" // lines 160-160
#include "swift/AST/KnownIdentifiers.def" // lines 276-276
#include "swift/AST/KnownObjCTypes.def" // lines 486-486
#include "swift/AST/KnownStdlibTypes.def" // lines 463-463
#include "swift/AST/Type.h" // for CanType, Type, ForeignLanguage
#include "swift/AST/Types.h" // for AnyFunctionType, ArchetypeT...
#include "swift/Basic/LLVM.h" // for MutableArrayRef, SmallVecto...
#include "swift/Basic/LangOptions.h" // for LangOptions, TypeCheckerOpt...
#include "swift/Basic/Malloc.h" // for AlignedAlloc
#include "swift/Basic/Statistic.h" // for UnifiedStatsReporter, Unifi...
#include "tuple" // for tuple
#include "type_traits" // for remove_reference, forward
namespace clang { class Decl; } // lines 47-47
namespace clang { class Type; }
namespace llvm { class LLVMContext; } // lines 54-54
namespace llvm { template <typename Fn> class function_ref; }
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace llvm { template <typename T> class TinyPtrVector; }
namespace swift { class ASTContext; } // lines 59-59
namespace swift { class AbstractFunctionDecl; } // lines 58-58
namespace swift { class AvailabilityContext; } // lines 61-61
namespace swift { class ClangModuleLoader; } // lines 63-63
namespace swift { class ClassDecl; }
namespace swift { class ConcreteDeclRef; } // lines 65-65
namespace swift { class Decl; } // lines 67-67
namespace swift { class DeclContext; } // lines 68-68
namespace swift { class DerivativeAttr; } // lines 70-70
namespace swift { class DiagnosticEngine; } // lines 113-113
namespace swift { class DifferentiableAttr; } // lines 71-71
namespace swift { class EnumElementDecl; } // lines 108-108
namespace swift { class ForeignRepresentationInfo; } // lines 73-73
namespace swift { class FuncDecl; } // lines 74-74
namespace swift { class GenericSignatureBuilder; } // lines 90-90
namespace swift { class IndexSubset; } // lines 121-121
namespace swift { class InheritedProtocolConformance; } // lines 100-100
namespace swift { class IterableDeclContext; } // lines 77-77
namespace swift { class LazyContextData; } // lines 78-78
namespace swift { class LazyIterableDeclContextData; } // lines 79-79
namespace swift { class LazyMemberLoader; } // lines 80-80
namespace swift { class ModuleDecl; } // lines 94-94
namespace swift { class ModuleDependencies; } // lines 81-81
namespace swift { class ModuleDependenciesCache; } // lines 95-95
namespace swift { class ModuleLoader; } // lines 96-96
namespace swift { class NominalTypeDecl; } // lines 97-97
namespace swift { class NormalProtocolConformance; } // lines 98-98
namespace swift { class OpaqueTypeDecl; } // lines 99-99
namespace swift { class Pattern; } // lines 104-104
namespace swift { class PrecedenceGroupDecl; } // lines 106-106
namespace swift { class ProtocolConformance; }
namespace swift { class ProtocolDecl; } // lines 109-109
namespace swift { class SILLayout; } // lines 197-197
namespace swift { class SILTransform; } // lines 117-117
namespace swift { class SearchPathOptions; }
namespace swift { class SelfProtocolConformance; } // lines 101-101
namespace swift { class SourceFile; } // lines 84-84
namespace swift { class SourceLoc; } // lines 85-85
namespace swift { class SourceManager; } // lines 111-111
namespace swift { class SubstitutionMap; }
namespace swift { class TangentSpace; }
namespace swift { class ValueDecl; } // lines 112-112
namespace swift { class VarDecl; } // lines 119-119
namespace swift { namespace namelookup { class ImportCache; } } // lines 128-128
namespace swift { namespace syntax { class SyntaxArena; } } // lines 132-132
namespace swift { struct ASTContext::Implementation; } // lines 221-221
namespace swift { struct AutoDiffConfig; }
namespace swift { struct AutoDiffDerivativeFunctionKind; }
namespace swift { struct InterfaceSubContextDelegate; } // lines 123-123
namespace swift { struct RawComment; } // lines 114-114
namespace swift { struct SILAutoDiffDerivativeFunctionKey; } // lines 122-122
namespace swift { template <typename T> struct Located; }
---
/Users/varun/foss-swift/swift/lib/AST/ASTContext.cpp should add these lines:
#include <assert.h> // for assert
#include <string.h> // for size_t, memcpy
#include "array" // for array
#include "clang/AST/Type.h" // for FunctionType, Type
#include "cstdint" // for uintptr_t
#include "functional" // for function
#include "iosfwd" // for string
#include "iterator" // for end
#include "llvm/ADT/DenseMapInfo.h" // for DenseMapInfo
#include "llvm/ADT/FoldingSet.h" // for FoldingSet, Folding...
#include "llvm/ADT/Hashing.h" // for hash_combine, hash_...
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/PointerEmbeddedInt.h" // for PointerEmbeddedInt
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair, Den...
#include "llvm/ADT/PointerUnion.h" // for PointerUnion, Point...
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallV...
#include "llvm/ADT/TinyPtrVector.h" // for TinyPtrVector
#include "llvm/ADT/iterator.h" // for iterator_facade_base
#include "llvm/ADT/iterator_range.h" // for iterator_range
#include "llvm/Support/Alignment.h" // for alignAddr, Align
#include "llvm/Support/Casting.h" // for dyn_cast, isa, cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/MathExtras.h" // for alignTo
#include "string" // for basic_string
#include "swift/AST/Attr.h" // for SemanticsAttr, Decl...
#include "swift/AST/AttrKind.h" // for Associativity, Asso...
#include "swift/AST/AutoDiff.h" // for SILAutoDiffDerivati...
#include "swift/AST/Decl.h" // for NominalTypeDecl
#include "swift/AST/DeclContext.h" // for DeclContext, Iterab...
#include "swift/AST/GenericParamKey.h" // for GenericParamKey
#include "swift/AST/LayoutConstraint.h" // for LayoutConstraint
#include "swift/AST/LookupKinds.h" // for NL_OnlyTypes, NLKind
#include "swift/AST/Module.h" // for ModuleDecl
#include "swift/AST/Ownership.h" // for ReferenceOwnership
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/Requirement.h" // for Requirement, operat...
#include "swift/AST/SearchPathOptions.h" // for SearchPathOptions::...
#include "swift/AST/SimpleRequest.h" // for operator==, simple_...
#include "swift/AST/TypeAlignments.h" // for PointerLikeTypeTraits
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/AST/Witness.h" // for Witness
#include "swift/Basic/ArrayRefView.h" // for ArrayRefView
#include "swift/Basic/Located.h" // for Located
#include "swift/Basic/OptionSet.h" // for OptionSet, operator|=
#include "swift/Basic/Range.h" // for indices
#include "swift/Basic/STLExtras.h" // for OptionalTransformRange
#include "swift/Basic/SourceLoc.h" // for SourceLoc
#include "swift/Basic/UUID.h" // for UUID, DenseMapInfo
#include "utility" // for pair, make_pair
#include "vector" // for vector
namespace llvm { class raw_ostream; }
/Users/varun/foss-swift/swift/lib/AST/ASTContext.cpp should remove these lines:
- #include "swift/AST/DiagnosticsSema.h" // lines 24-24
- #include "swift/AST/NameLookup.h" // lines 37-37
- #include "swift/AST/SourceFile.h" // lines 43-43
- #include "swift/Basic/SourceManager.h" // lines 48-48
- #include "swift/Basic/StringExtras.h" // lines 50-50
- #include "swift/Syntax/References.h" // lines 51-51
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTContext.cpp:
#include "swift/AST/ASTContext.h"
#include <assert.h> // for assert
#include <string.h> // for size_t, memcpy
#include <algorithm> // for any_of, count_if, max
#include <memory> // for unique_ptr, uniniti...
#include "ClangTypeConverter.h" // for ClangTypeConverter
#include "ForeignRepresentationInfo.h" // for ForeignRepresentati...
#include "SubstitutionMapStorage.h" // for SubstitutionMap::St...
#include "array" // for array
#include "clang/AST/Type.h" // for FunctionType, Type
#include "cstdint" // for uintptr_t
#include "functional" // for function
#include "iosfwd" // for string
#include "iterator" // for end
#include "llvm/ADT/DenseMap.h" // for DenseMap, capacity_...
#include "llvm/ADT/DenseMapInfo.h" // for DenseMapInfo
#include "llvm/ADT/FoldingSet.h" // for FoldingSet, Folding...
#include "llvm/ADT/Hashing.h" // for hash_combine, hash_...
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/PointerEmbeddedInt.h" // for PointerEmbeddedInt
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair, Den...
#include "llvm/ADT/PointerUnion.h" // for PointerUnion, Point...
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallV...
#include "llvm/ADT/Statistic.h" // for STATISTIC, Statistic
#include "llvm/ADT/StringMap.h" // for StringMap, StringMa...
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/ADT/TinyPtrVector.h" // for TinyPtrVector
#include "llvm/ADT/iterator.h" // for iterator_facade_base
#include "llvm/ADT/iterator_range.h" // for iterator_range
#include "llvm/IR/LLVMContext.h" // for LLVMContext
#include "llvm/Support/Alignment.h" // for alignAddr, Align
#include "llvm/Support/Allocator.h" // for BumpPtrAllocator
#include "llvm/Support/Casting.h" // for dyn_cast, isa, cast
#include "llvm/Support/Compiler.h" // for LLVM_FALLTHROUGH
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/MathExtras.h" // for alignTo
#include "string" // for basic_string
#include "swift/AST/Attr.h" // for SemanticsAttr, Decl...
#include "swift/AST/AttrKind.h" // for Associativity, Asso...
#include "swift/AST/AutoDiff.h" // for SILAutoDiffDerivati...
#include "swift/AST/ClangModuleLoader.h" // for ClangModuleLoader
#include "swift/AST/ConcreteDeclRef.h" // for ConcreteDeclRef
#include "swift/AST/Decl.h" // for NominalTypeDecl
#include "swift/AST/DeclContext.h" // for DeclContext, Iterab...
#include "swift/AST/DiagnosticEngine.h" // for DiagnosticEngine
#include "swift/AST/ExistentialLayout.h" // for ExistentialLayout
#include "swift/AST/FileUnit.h" // for BuiltinUnit
#include "swift/AST/ForeignErrorConvention.h" // for ForeignErrorConvention
#include "swift/AST/GenericEnvironment.h" // for GenericEnvironment
#include "swift/AST/GenericParamKey.h" // for GenericParamKey
#include "swift/AST/GenericSignature.h" // for GenericSignature
#include "swift/AST/GenericSignatureBuilder.h" // for GenericSignatureBui...
#include "swift/AST/ImportCache.h" // for ImportCache
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/KnownDecls.def" // for ASTContext::getAllo...
#include "swift/AST/KnownDecls.def" // for ASTContext::getAllo...
#include "swift/AST/KnownFoundationEntities.def" // for KnownFoundationEnti...
#include "swift/AST/KnownFoundationEntities.def" // for KnownFoundationEnti...
#include "swift/AST/KnownIdentifiers.def" // lines 594-594
#include "swift/AST/KnownObjCTypes.def" // for ASTContext::getNSEr...
#include "swift/AST/KnownObjCTypes.def" // for ASTContext::getNSEr...
#include "swift/AST/KnownProtocols.def" // lines 87-87
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind
#include "swift/AST/KnownStdlibTypes.def" // for ASTContext::getArra...
#include "swift/AST/KnownStdlibTypes.def" // for ASTContext::getArra...
#include "swift/AST/LayoutConstraint.h" // for LayoutConstraint
#include "swift/AST/LazyResolver.h" // for LazyIterableDeclCon...
#include "swift/AST/LookupKinds.h" // for NL_OnlyTypes, NLKind
#include "swift/AST/Module.h" // for ModuleDecl
#include "swift/AST/ModuleDependencies.h" // for ModuleDependencies
#include "swift/AST/ModuleLoader.h" // for ModuleLoader, Inter...
#include "swift/AST/Ownership.h" // for ReferenceOwnership
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/PrettyStackTrace.h" // for PrettyStackTraceDecl
#include "swift/AST/PropertyWrappers.h" // for PropertyWrapperBack...
#include "swift/AST/ProtocolConformance.h" // for SpecializedProtocol...
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/RawComment.h" // for RawComment
#include "swift/AST/ReferenceStorage.def" // lines 2758-2758
#include "swift/AST/Requirement.h" // for Requirement, operat...
#include "swift/AST/SILLayout.h" // for SILLayout, SILField
#include "swift/AST/SearchPathOptions.h" // for SearchPathOptions::...
#include "swift/AST/SimpleRequest.h" // for operator==, simple_...
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/AST/TypeAlignments.h" // for PointerLikeTypeTraits
#include "swift/AST/TypeCheckRequests.h" // for AbstractGenericSign...
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/AST/Witness.h" // for Witness
#include "swift/Basic/ArrayRefView.h" // for ArrayRefView
#include "swift/Basic/Compiler.h" // for SWIFT_COMPILER_IS_MSVC
#include "swift/Basic/Located.h" // for Located
#include "swift/Basic/OptionSet.h" // for OptionSet, operator|=
#include "swift/Basic/Range.h" // for indices
#include "swift/Basic/STLExtras.h" // for OptionalTransformRange
#include "swift/Basic/SourceLoc.h" // for SourceLoc
#include "swift/Basic/Statistic.h" // for FrontendStatsTracer
#include "swift/Basic/UUID.h" // for UUID, DenseMapInfo
#include "swift/ClangImporter/BuiltinMappedTypes.def" // lines 4098-4098
#include "swift/ClangImporter/SIMDMappedTypes.def" // lines 4146-4146
#include "swift/ClangImporter/SIMDMappedTypes.def" // lines 4191-4191
#include "swift/Strings.h" // for BUILTIN_NAME, STDLI...
#include "swift/Subsystems.h" // for registerAccessReque...
#include "swift/Syntax/SyntaxArena.h" // for SyntaxArena
#include "utility" // for pair, make_pair
#include "vector" // for vector
namespace llvm { class raw_ostream; }
---
/Users/varun/foss-swift/swift/include/swift/AST/ASTMangler.h should add these lines:
#include <assert.h> // for assert
#include "functional" // for function
#include "iosfwd" // for string
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/StringRef.h" // for StringRef
#include "string" // for basic_string
#include "swift/AST/AutoDiff.h" // for AutoDiffConfig (ptr only)
#include "swift/AST/GenericSignature.h" // for GenericSignature, CanG...
#include "swift/AST/LayoutConstraint.h" // for LayoutConstraint
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/ResilienceExpansion.h" // for ResilienceExpansion
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/AST/Type.h" // for Type, CanType
#include "swift/Basic/ArrayRefView.h" // for ArrayRefView
#include "swift/Demangling/ManglingUtils.h" // for StringRef
#include "utility" // for pair
#include "vector" // for vector
namespace swift { class AbstractStorageDecl; }
namespace swift { class ClassDecl; }
namespace swift { class ConstructorDecl; }
namespace swift { class DeclContext; }
namespace swift { class DestructorDecl; }
namespace swift { class FuncDecl; }
namespace swift { class GenericTypeDecl; }
namespace swift { class Identifier; }
namespace swift { class ModuleDecl; }
namespace swift { class NominalTypeDecl; }
namespace swift { class OpaqueTypeDecl; }
namespace swift { class ProtocolConformance; }
namespace swift { class ProtocolDecl; }
namespace swift { class Requirement; }
namespace swift { class SerializedAbstractClosureExpr; }
namespace swift { class SubstitutionMap; }
namespace swift { class TypeDecl; }
namespace swift { class ValueDecl; }
namespace swift { class VarDecl; }
/Users/varun/foss-swift/swift/include/swift/AST/ASTMangler.h should remove these lines:
- #include "swift/AST/Decl.h" // lines 18-18
- namespace swift { class ConformanceAccessPath; } // lines 27-27
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/ASTMangler.h:
#include <assert.h> // for assert
#include "functional" // for function
#include "iosfwd" // for string
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/StringRef.h" // for StringRef
#include "string" // for basic_string
#include "swift/AST/AutoDiff.h" // for AutoDiffConfig (ptr only)
#include "swift/AST/GenericSignature.h" // for GenericSignature, CanG...
#include "swift/AST/LayoutConstraint.h" // for LayoutConstraint
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/ResilienceExpansion.h" // for ResilienceExpansion
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/AST/Type.h" // for Type, CanType
#include "swift/AST/Types.h" // for DependentMemberType (p...
#include "swift/Basic/ArrayRefView.h" // for ArrayRefView
#include "swift/Basic/Mangler.h" // for Mangler
#include "swift/Demangling/ManglingUtils.h" // for StringRef
#include "utility" // for pair
#include "vector" // for vector
namespace clang { class NamedDecl; } // lines 21-21
namespace swift { class AbstractClosureExpr; } // lines 26-26
namespace swift { class AbstractStorageDecl; }
namespace swift { class ClassDecl; }
namespace swift { class ConstructorDecl; }
namespace swift { class DeclContext; }
namespace swift { class DestructorDecl; }
namespace swift { class FuncDecl; }
namespace swift { class GenericTypeDecl; }
namespace swift { class Identifier; }
namespace swift { class ModuleDecl; }
namespace swift { class NominalTypeDecl; }
namespace swift { class OpaqueTypeDecl; }
namespace swift { class ProtocolConformance; }
namespace swift { class ProtocolDecl; }
namespace swift { class Requirement; }
namespace swift { class RootProtocolConformance; } // lines 28-28
namespace swift { class SerializedAbstractClosureExpr; }
namespace swift { class SubstitutionMap; }
namespace swift { class TypeDecl; }
namespace swift { class ValueDecl; }
namespace swift { class VarDecl; }
---
/Users/varun/foss-swift/swift/lib/AST/ASTMangler.cpp should add these lines:
#include "algorithm" // for find_if
#include "clang/AST/Attrs.inc" // for AsmLabelAttr
#include "clang/AST/DeclBase.h" // for DeclContext, Decl
#include "clang/AST/DeclarationName.h" // for DeclarationName
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/STLExtras.h" // for reverse
#include "llvm/ADT/SmallVector.h" // for SmallVector
#include "llvm/ADT/iterator_range.h" // for iterator_range
#include "llvm/Support/Casting.h" // for cast, dyn_cast, isa
#include "llvm/Support/Compiler.h" // for LLVM_FALLTHROUGH
#include "swift/AST/Attr.h" // for DeclAttributes, ClangI...
#include "swift/AST/AttrKind.h" // for UnaryOperatorKind, Una...
#include "swift/AST/Decl.h" // for ValueDecl, GenericType...
#include "swift/AST/DeclContext.h" // for DeclContext, DeclConte...
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/Expr.h" // for AbstractClosureExpr
#include "swift/AST/Identifier.h" // for Identifier, DeclBaseName
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/Pattern.h" // for AnyPattern (ptr only)
#include "swift/AST/Requirement.h" // for Requirement, Requireme...
#include "swift/AST/SILLayout.h" // for SILField, SILLayout
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/Basic/LLVM.h" // for cast, dyn_cast, isa
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Demangling/Demangle.h" // for Node, Node::Kind, mang...
#include "swift/Demangling/Punycode.h" // for swift
#include "type_traits" // for move, remove_reference...
/Users/varun/foss-swift/swift/lib/AST/ASTMangler.cpp should remove these lines:
- #include "clang/AST/Attr.h" // lines 38-38
- #include "llvm/ADT/DenseMap.h" // lines 42-42
- #include "llvm/Support/CommandLine.h" // lines 48-48
- #include "swift/AST/LazyResolver.h" // lines 24-24
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTMangler.cpp:
#include "swift/AST/ASTMangler.h"
#include "algorithm" // for find_if
#include "clang/AST/ASTContext.h" // for ASTContext
#include "clang/AST/Attrs.inc" // for AsmLabelAttr
#include "clang/AST/Decl.h" // for NamedDecl, TagDecl
#include "clang/AST/DeclBase.h" // for DeclContext, Decl
#include "clang/AST/DeclObjC.h" // for ObjCProtocolDecl, ObjC...
#include "clang/AST/DeclarationName.h" // for DeclarationName
#include "clang/AST/Mangle.h" // for MangleContext
#include "clang/Basic/CharInfo.h" // for isDigit
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/STLExtras.h" // for reverse
#include "llvm/ADT/SmallString.h" // for SmallString
#include "llvm/ADT/SmallVector.h" // for SmallVector
#include "llvm/ADT/StringRef.h" // for StringRef, operator==
#include "llvm/ADT/iterator_range.h" // for iterator_range
#include "llvm/Support/Casting.h" // for cast, dyn_cast, isa
#include "llvm/Support/Compiler.h" // for LLVM_FALLTHROUGH
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/SaveAndRestore.h" // for SaveAndRestore
#include "llvm/Support/raw_ostream.h" // for raw_ostream, raw_svect...
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTVisitor.h" // for ASTVisitor
#include "swift/AST/Attr.h" // for DeclAttributes, ClangI...
#include "swift/AST/AttrKind.h" // for UnaryOperatorKind, Una...
#include "swift/AST/Decl.h" // for ValueDecl, GenericType...
#include "swift/AST/DeclContext.h" // for DeclContext, DeclConte...
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/ExistentialLayout.h" // for ExistentialLayout, Exi...
#include "swift/AST/Expr.h" // for AbstractClosureExpr
#include "swift/AST/FileUnit.h" // for FileUnit, BuiltinUnit
#include "swift/AST/GenericSignature.h" // for GenericSignature, CanG...
#include "swift/AST/Identifier.h" // for Identifier, DeclBaseName
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/Initializer.h" // for DefaultArgumentInitial...
#include "swift/AST/Module.h" // for ModuleDecl, FileUnitKind
#include "swift/AST/Ownership.h" // for manglingOf, ValueOwner...
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for AnyPattern (ptr only)
#include "swift/AST/PatternNodes.def" // lines 1836-1836
#include "swift/AST/PrettyStackTrace.h" // for PrettyStackTraceType
#include "swift/AST/ProtocolConformance.h" // for RootProtocolConformance
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/ReferenceStorage.def" // lines 1064-1064
#include "swift/AST/Requirement.h" // for Requirement, Requireme...
#include "swift/AST/SILLayout.h" // for SILField, SILLayout
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/Basic/Defer.h" // for SWIFT_DEFER
#include "swift/Basic/LLVM.h" // for cast, dyn_cast, isa
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Demangling/Demangle.h" // for Node, Node::Kind, mang...
#include "swift/Demangling/Demangler.h" // for Demangler
#include "swift/Demangling/ManglingMacros.h" // for MANGLING_PREFIX_STR
#include "swift/Demangling/ManglingUtils.h" // for StringRef, isNonAscii
#include "swift/Demangling/Punycode.h" // for swift
#include "swift/Strings.h" // for MANGLING_MODULE_CLANG_...
#include "type_traits" // for move, remove_reference...
---
/Users/varun/foss-swift/swift/include/swift/AST/ASTNode.h should add these lines:
#include <stdint.h> // for uint8_t
#include "llvm/ADT/DenseMapInfo.h" // for DenseMapInfo
/Users/varun/foss-swift/swift/include/swift/AST/ASTNode.h should remove these lines:
- #include "swift/AST/TypeAlignments.h" // lines 22-22
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/ASTNode.h:
#include <stdint.h> // for uint8_t
#include "llvm/ADT/DenseMapInfo.h" // for DenseMapInfo
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMP
namespace llvm { class raw_ostream; } // lines 25-25
namespace swift { class ASTWalker; } // lines 37-37
namespace swift { class Decl; } // lines 31-31
namespace swift { class DeclContext; } // lines 34-34
namespace swift { class Expr; } // lines 29-29
namespace swift { class Pattern; } // lines 32-32
namespace swift { class SourceLoc; } // lines 35-35
namespace swift { class SourceRange; } // lines 36-36
namespace swift { class Stmt; } // lines 30-30
namespace swift { class TypeLoc; } // lines 33-33
---
/Users/varun/foss-swift/swift/lib/AST/ASTNode.cpp should add these lines:
#include "llvm/Support/Casting.h" // for isa, cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/DeclContext.h" // for DeclContext
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/LLVM.h" // for isa, cast
/Users/varun/foss-swift/swift/lib/AST/ASTNode.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTNode.cpp:
#include "swift/AST/ASTNode.h"
#include "llvm/Support/Casting.h" // for isa, cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/Decl.h" // for Decl, DeclContext::classof
#include "swift/AST/DeclContext.h" // for DeclContext
#include "swift/AST/Expr.h" // for Expr, AbstractClosureExpr
#include "swift/AST/Pattern.h" // for Pattern, PatternKind
#include "swift/AST/Stmt.h" // for Stmt, StmtKind
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/Basic/LLVM.h" // for isa, cast
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
---
/Users/varun/foss-swift/swift/include/swift/AST/ASTPrinter.h should add these lines:
#include <assert.h> // for assert
#include <stdint.h> // for uint8_t
#include "iosfwd" // for string
#include "llvm/ADT/Optional.h" // for Optional
#include "swift/AST/TypeOrExtensionDecl.h" // for TypeOrExtensionDecl
#include "type_traits" // for enable_if, is_same
namespace llvm { class raw_ostream; }
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace swift { class QuotedString; }
/Users/varun/foss-swift/swift/include/swift/AST/ASTPrinter.h should remove these lines:
- #include "llvm/Support/raw_ostream.h" // lines 23-23
- #include "swift/Basic/LLVM.h" // lines 16-16
- #include "swift/Basic/QuotedString.h" // lines 17-17
- namespace swift { class DynamicSelfType; } // lines 29-29
- namespace swift { class NominalTypeDecl; } // lines 37-37
- namespace swift { class Pattern; } // lines 35-35
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/ASTPrinter.h:
#include <assert.h> // for assert
#include <stdint.h> // for uint8_t
#include "iosfwd" // for string
#include "llvm/ADT/DenseSet.h" // for DenseSet
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/SmallString.h" // for SmallString
#include "llvm/ADT/StringRef.h" // for StringRef
#include "swift/AST/Identifier.h" // for Identifier (ptr only)
#include "swift/AST/PrintOptions.h" // for BracketOptions, PrintOptions
#include "swift/AST/TypeOrExtensionDecl.h" // for TypeOrExtensionDecl
#include "swift/Basic/UUID.h" // for UUID
#include "type_traits" // for enable_if, is_same
namespace llvm { class raw_ostream; }
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace swift { class Decl; } // lines 27-27
namespace swift { class DeclContext; } // lines 28-28
namespace swift { class EnumElementDecl; } // lines 32-32
namespace swift { class ExtensionDecl; } // lines 36-36
namespace swift { class ModuleEntity; } // lines 30-30
namespace swift { class QuotedString; }
namespace swift { class SourceLoc; } // lines 39-39
namespace swift { class Type; } // lines 33-33
namespace swift { class TypeDecl; } // lines 31-31
namespace swift { class TypeLoc; } // lines 34-34
namespace swift { class ValueDecl; } // lines 38-38
---
/Users/varun/foss-swift/swift/lib/AST/ASTPrinter.cpp should add these lines:
#include "clang/AST/Attrs.inc" // for SwiftPrivateAttr
#include "clang/AST/DeclBase.h" // for Decl
#include "clang/AST/RawCommentList.h" // for RawComment
#include "clang/Basic/SourceManager.h" // for SourceManager
#include "functional" // for function, __base
#include "iterator" // for next
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap, DenseMapIter...
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/STLExtras.h" // for is_contained, function...
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVect...
#include "llvm/ADT/Twine.h" // for operator+, Twine
#include "llvm/Support/Casting.h" // for dyn_cast, isa, cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable, repo...
#include "memory" // for make_shared, shared_ptr
#include "string" // for basic_string
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/AccessScope.h" // for AccessScope
#include "swift/AST/AttrKind.h" // for AccessLevel, Associati...
#include "swift/AST/AutoDiff.h" // for DifferentiabilityKind
#include "swift/AST/ClangNode.h" // for ClangNode
#include "swift/AST/DeclContext.h" // for DeclContext, DeclRange
#include "swift/AST/DefaultArgumentKind.h" // for DefaultArgumentKind
#include "swift/AST/GenericSignature.h" // for GenericSignature, Gene...
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, Kno...
#include "swift/AST/LayoutConstraint.h" // for LayoutConstraintInfo
#include "swift/AST/Ownership.h" // for ValueOwnership, ValueO...
#include "swift/AST/Pattern.h" // for Pattern, NamedPattern
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/RawComment.h" // for RawComment, SingleRawC...
#include "swift/AST/Requirement.h" // for Requirement, Requireme...
#include "swift/AST/ResilienceExpansion.h" // for ResilienceExpansion
#include "swift/AST/SILLayout.h" // for SILField, SILLayout
#include "swift/AST/StorageImpl.h" // for AccessorKind, StorageI...
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/AST/Type.h" // for Type, staticCastHelper
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/AST/TypeRepr.h" // for SimpleIdentTypeRepr
#include "swift/Basic/ArrayRefView.h" // for ArrayRefView
#include "swift/Basic/LLVM.h" // for dyn_cast, isa, cast
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Basic/SourceLoc.h" // for SourceLoc, SourceRange
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Syntax/TokenKinds.h" // for tok
#include "utility" // for pair, make_pair
#include "vector" // for vector
namespace llvm { template <typename Fn> class function_ref; }
/Users/varun/foss-swift/swift/lib/AST/ASTPrinter.cpp should remove these lines:
- #include <queue> // lines 56-56
- #include "clang/AST/Attr.h" // lines 46-46
- #include "clang/AST/Decl.h" // lines 47-47
- #include "swift/AST/ASTMangler.h" // lines 19-19
- #include "swift/AST/ClangModuleLoader.h" // lines 22-22
- #include "swift/AST/NameLookup.h" // lines 29-29
- #include "swift/AST/TypeWalker.h" // lines 35-35
- #include "swift/Config.h" // lines 42-42
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTPrinter.cpp:
#include "swift/AST/ASTPrinter.h"
#include <algorithm> // for max, find, for_each, sort
#include "clang/AST/ASTContext.h" // for ASTContext
#include "clang/AST/Attrs.inc" // for SwiftPrivateAttr
#include "clang/AST/DeclBase.h" // for Decl
#include "clang/AST/DeclObjC.h" // for ObjCMethodDecl, ObjCPr...
#include "clang/AST/RawCommentList.h" // for RawComment
#include "clang/Basic/Module.h" // for Module
#include "clang/Basic/SourceManager.h" // for SourceManager
#include "functional" // for function, __base
#include "iterator" // for next
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap, DenseMapIter...
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/STLExtras.h" // for is_contained, function...
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVect...
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/ADT/Twine.h" // for operator+, Twine
#include "llvm/Support/Casting.h" // for dyn_cast, isa, cast
#include "llvm/Support/Compiler.h" // for LLVM_FALLTHROUGH
#include "llvm/Support/ConvertUTF.h" // for UTF8, getNumBytesForUTF8
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable, repo...
#include "llvm/Support/SaveAndRestore.h" // for SaveAndRestore
#include "llvm/Support/raw_ostream.h" // for raw_ostream, errs, raw...
#include "memory" // for make_shared, shared_ptr
#include "string" // for basic_string
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTVisitor.h" // for ASTVisitor, ConsumingAttr
#include "swift/AST/AccessScope.h" // for AccessScope
#include "swift/AST/Attr.def" // lines 1011-1011
#include "swift/AST/Attr.h" // for DeclAttributes, Synthe...
#include "swift/AST/AttrKind.h" // for AccessLevel, Associati...
#include "swift/AST/AutoDiff.h" // for DifferentiabilityKind
#include "swift/AST/ClangNode.h" // for ClangNode
#include "swift/AST/Comment.h" // for getDocCommentProviding...
#include "swift/AST/Decl.h" // for VarDecl, ExtensionDecl
#include "swift/AST/DeclContext.h" // for DeclContext, DeclRange
#include "swift/AST/DeclNodes.def" // lines 852-852
#include "swift/AST/DefaultArgumentKind.h" // for DefaultArgumentKind
#include "swift/AST/Expr.h" // for CheckedCastKind, Liter...
#include "swift/AST/FileUnit.h" // for FileUnit
#include "swift/AST/GenericEnvironment.h" // for GenericEnvironment
#include "swift/AST/GenericSignature.h" // for GenericSignature, Gene...
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, Kno...
#include "swift/AST/LayoutConstraint.h" // for LayoutConstraintInfo
#include "swift/AST/Module.h" // for ModuleDecl, ModuleEntity
#include "swift/AST/Ownership.h" // for ValueOwnership, ValueO...
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for Pattern, NamedPattern
#include "swift/AST/PrintOptions.h" // for PrintOptions, AnyAttrKind
#include "swift/AST/ProtocolConformance.h" // for ProtocolConformance
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/RawComment.h" // for RawComment, SingleRawC...
#include "swift/AST/ReferenceStorage.def" // lines 4507-4507
#include "swift/AST/Requirement.h" // for Requirement, Requireme...
#include "swift/AST/ResilienceExpansion.h" // for ResilienceExpansion
#include "swift/AST/SILLayout.h" // for SILField, SILLayout
#include "swift/AST/Stmt.h" // for BraceStmt, CaseStmt
#include "swift/AST/StmtNodes.def" // lines 855-855
#include "swift/AST/StorageImpl.h" // for AccessorKind, StorageI...
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/AST/Type.h" // for Type, staticCastHelper
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/AST/TypeRepr.h" // for SimpleIdentTypeRepr
#include "swift/AST/TypeVisitor.h" // for TypeVisitor
#include "swift/AST/Types.h" // for TypeBase, SILFunctionType
#include "swift/Basic/ArrayRefView.h" // for ArrayRefView
#include "swift/Basic/Defer.h" // for SWIFT_DEFER
#include "swift/Basic/LLVM.h" // for dyn_cast, isa, cast
#include "swift/Basic/PrimitiveParsing.h" // for trimLeadingWhitespaceF...
#include "swift/Basic/QuotedString.h" // for operator<<, QuotedString
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Basic/STLExtras.h" // for interleave, OptionalTr...
#include "swift/Basic/SourceLoc.h" // for SourceLoc, SourceRange
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Basic/StringExtras.h" // for canBeArgumentLabel
#include "swift/Parse/Lexer.h" // for Lexer
#include "swift/Strings.h" // for BuiltinNameStringLiteral
#include "swift/Syntax/TokenKinds.def" // lines 391-391
#include "swift/Syntax/TokenKinds.def" // lines 403-403
#include "swift/Syntax/TokenKinds.def" // lines 425-425
#include "swift/Syntax/TokenKinds.h" // for tok
#include "utility" // for pair, make_pair
#include "vector" // for vector
namespace llvm { template <typename Fn> class function_ref; }
---
/Users/varun/foss-swift/swift/include/swift/AST/ASTScope.h should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include "iosfwd" // for string
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "string" // for basic_string
#include "swift/AST/Attr.h" // for DeclAttribute (ptr only)
#include "swift/AST/Decl.h" // for Decl (ptr only), GenericPara...
#include "swift/AST/Expr.h" // for Expr (ptr only), ClosureExpr
#include "swift/AST/Stmt.h" // for Stmt (ptr only), LabeledCond...
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "tuple" // for tuple
#include "utility" // for pair
#include "vector" // for vector
namespace llvm { class raw_ostream; }
namespace llvm { template <typename Fn> class function_ref; }
namespace llvm { template <typename Fn> class function_ref; }
namespace swift { class ASTContext; }
namespace swift { class DeclContext; }
namespace swift { class DeclNameRef; }
namespace swift { class IterableDeclContext; }
namespace swift { class Pattern; }
namespace swift { class SourceFile; }
/Users/varun/foss-swift/swift/include/swift/AST/ASTScope.h should remove these lines:
- #include "llvm/ADT/PointerIntPair.h" // lines 39-39
- #include "swift/AST/SimpleRequest.h" // lines 33-33
- #include "swift/Basic/Compiler.h" // lines 34-34
- #include "swift/Basic/LLVM.h" // lines 36-36
- namespace swift { class DeclName; } // lines 79-79
- namespace swift { class GenericContext; } // lines 78-78
- namespace swift { class GenericParamList; } // lines 73-73
- namespace swift { class PatternBindingEntry; } // lines 76-76
- namespace swift { class SpecializeAttr; } // lines 77-77
- namespace swift { class StmtConditionElement; } // lines 80-80
- namespace swift { class TrailingWhereClause; } // lines 74-74
- namespace swift { namespace ast_scope { class TypeAliasScope; } } // lines 86-86
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/ASTScope.h:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include "iosfwd" // for string
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorImpl...
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "string" // for basic_string
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/Attr.h" // for DeclAttribute (ptr only)
#include "swift/AST/Decl.h" // for Decl (ptr only), GenericPara...
#include "swift/AST/DeclNodes.def" // lines 59-59
#include "swift/AST/Expr.h" // for Expr (ptr only), ClosureExpr
#include "swift/AST/ExprNodes.def" // lines 64-64
#include "swift/AST/NameLookup.h" // for DeclVisibilityKind, Abstract...
#include "swift/AST/Stmt.h" // for Stmt (ptr only), LabeledCond...
#include "swift/AST/StmtNodes.def" // lines 69-69
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMP
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "tuple" // for tuple
#include "utility" // for pair
#include "vector" // for vector
namespace llvm { class raw_ostream; }
namespace llvm { template <typename Fn> class function_ref; }
namespace llvm { template <typename Fn> class function_ref; }
namespace swift { class ASTContext; }
namespace swift { class DeclContext; }
namespace swift { class DeclNameRef; }
namespace swift { class IterableDeclContext; }
namespace swift { class ParameterList; } // lines 75-75
namespace swift { class Pattern; }
namespace swift { class SourceFile; }
namespace swift { namespace ast_scope { class ASTScopeImpl; } } // lines 83-83
namespace swift { namespace ast_scope { class GenericTypeOrExtensionScope; } } // lines 84-84
namespace swift { namespace ast_scope { class IterableTypeScope; } } // lines 85-85
namespace swift { namespace ast_scope { class ScopeCreator; } } // lines 87-87
---
/Users/varun/foss-swift/swift/lib/AST/ASTScope.cpp should add these lines:
#include <memory> // for allocator
#include "llvm/Support/Casting.h" // for dyn_cast
#include "swift/AST/DeclContext.h" // for DeclContext
#include "swift/AST/Identifier.h" // for DeclNameRef
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/Basic/Compiler.h" // for SWIFT_COMPILER_IS_MSVC
#include "swift/Basic/LLVM.h" // for dyn_cast
#include "swift/Basic/Statistic.h" // for UnifiedStatsReporter, UnifiedS...
#include "type_traits" // for remove_reference<>::type
namespace llvm { class raw_ostream; }
namespace swift { class Pattern; }
/Users/varun/foss-swift/swift/lib/AST/ASTScope.cpp should remove these lines:
- #include <algorithm> // lines 34-34
- #include "llvm/Support/Compiler.h" // lines 33-33
- #include "swift/AST/ASTWalker.h" // lines 19-19
- #include "swift/AST/LazyResolver.h" // lines 23-23
- #include "swift/AST/Module.h" // lines 24-24
- #include "swift/AST/ParameterList.h" // lines 26-26
- #include "swift/AST/Pattern.h" // lines 27-27
- #include "swift/AST/TypeRepr.h" // lines 30-30
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTScope.cpp:
#include "swift/AST/ASTScope.h"
#include <memory> // for allocator
#include "llvm/Support/Casting.h" // for dyn_cast
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/Decl.h" // for VarDecl, AbstractFunctionDecl
#include "swift/AST/DeclContext.h" // for DeclContext
#include "swift/AST/Expr.h" // for CaptureListExpr, ClosureExpr
#include "swift/AST/Identifier.h" // for DeclNameRef
#include "swift/AST/Initializer.h" // for Initializer
#include "swift/AST/NameLookup.h" // for ASTScope, AbstractASTScopeDecl...
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/Stmt.h" // for LabeledConditionalStmt, StmtCo...
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/Basic/Compiler.h" // for SWIFT_COMPILER_IS_MSVC
#include "swift/Basic/LLVM.h" // for dyn_cast
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/STLExtras.h" // for OptionalTransformRange
#include "swift/Basic/Statistic.h" // for UnifiedStatsReporter, UnifiedS...
#include "type_traits" // for remove_reference<>::type
namespace llvm { class raw_ostream; }
namespace swift { class Pattern; }
---
/Users/varun/foss-swift/swift/lib/AST/ASTScopeCreation.cpp should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t
#include "functional" // for __base
#include "iterator" // for back_insert_iterator, back...
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap, DenseMapPair
#include "llvm/ADT/DenseSet.h" // for DenseSet
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref, any_of, copy_if
#include "llvm/ADT/SmallVector.h" // for SmallVectorTemplateCommon
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/Casting.h" // for dyn_cast, isa, cast
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTVisitor.h" // for ASTVisitor
#include "swift/AST/DeclContext.h" // for DeclContext, IterableDeclC...
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, Evaluat...
#include "swift/AST/Identifier.h" // for operator<<
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/NameLookup.h" // for ASTScope, DeclVisibilityKind
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/LLVM.h" // for dyn_cast, isa, cast
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/Range.h" // for range, indices, IntRange
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Basic/Statistic.h" // for UnifiedStatsReporter, Unif...
#include "tuple" // for get
#include "type_traits" // for remove_reference<>::type
#include "utility" // for pair
#include "vector" // for vector
namespace llvm { template <typename Fn> class function_ref; }
namespace swift { class TypeLoc; }
namespace swift { class TypeRepr; }
/Users/varun/foss-swift/swift/lib/AST/ASTScopeCreation.cpp should remove these lines:
- #include <unordered_set> // lines 36-36
- #include "swift/AST/LazyResolver.h" // lines 24-24
- #include "swift/AST/TypeRepr.h" // lines 31-31
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTScopeCreation.cpp:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint8_t
#include <algorithm> // for stable_sort
#include "functional" // for __base
#include "iterator" // for back_insert_iterator, back...
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap, DenseMapPair
#include "llvm/ADT/DenseSet.h" // for DenseSet
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref, any_of, copy_if
#include "llvm/ADT/SmallVector.h" // for SmallVectorTemplateCommon
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/Casting.h" // for dyn_cast, isa, cast
#include "llvm/Support/Compiler.h" // for LLVM_ATTRIBUTE_USED
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTScope.h" // for ASTScopeImpl, PatternEntry...
#include "swift/AST/ASTVisitor.h" // for ASTVisitor
#include "swift/AST/ASTWalker.h" // for ASTWalker
#include "swift/AST/Attr.h" // for DifferentiableAttr, Specia...
#include "swift/AST/Decl.h" // for PatternBindingDecl, VarDecl
#include "swift/AST/DeclContext.h" // for DeclContext, IterableDeclC...
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, Evaluat...
#include "swift/AST/Expr.h" // for ClosureExpr, CaptureListExpr
#include "swift/AST/Identifier.h" // for operator<<
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/Initializer.h" // for Initializer
#include "swift/AST/Module.h" // for ModuleDecl
#include "swift/AST/NameLookup.h" // for ASTScope, DeclVisibilityKind
#include "swift/AST/NameLookupRequests.h" // for ExpandASTScopeRequest
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for Pattern, AnyPattern, BoolP...
#include "swift/AST/PatternNodes.def" // lines 174-174
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/Stmt.h" // for BraceStmt, CaseStmt, StmtC...
#include "swift/AST/StmtNodes.def" // lines 169-169
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMP
#include "swift/Basic/LLVM.h" // for dyn_cast, isa, cast
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/Range.h" // for range, indices, IntRange
#include "swift/Basic/STLExtras.h" // for OptionalTransformRange
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Basic/Statistic.h" // for UnifiedStatsReporter, Unif...
#include "tuple" // for get
#include "type_traits" // for remove_reference<>::type
#include "utility" // for pair
#include "vector" // for vector
namespace llvm { template <typename Fn> class function_ref; }
namespace swift { class TypeLoc; }
namespace swift { class TypeRepr; }
---
/Users/varun/foss-swift/swift/lib/AST/ASTScopeLookup.cpp should add these lines:
#include <stddef.h> // for size_t
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorImpl
#include "llvm/Support/Casting.h" // for dyn_cast, cast_or_null, isa
#include "llvm/Support/ErrorHandling.h" // for report_fatal_error
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/DeclContext.h" // for DeclContext, DeclContextKind
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/Identifier.h" // for DeclNameRef
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/LLVM.h" // for dyn_cast, cast_or_null, isa
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/SourceLoc.h" // for SourceLoc, SourceRange
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "type_traits" // for move, remove_reference<>::type
#include "utility" // for make_pair, pair
namespace swift { namespace ast_scope { class ScopeCreator; } }
/Users/varun/foss-swift/swift/lib/AST/ASTScopeLookup.cpp should remove these lines:
- #include "llvm/Support/Compiler.h" // lines 32-32
- #include "swift/AST/LazyResolver.h" // lines 23-23
- #include "swift/AST/Module.h" // lines 24-24
- #include "swift/AST/TypeRepr.h" // lines 30-30
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTScopeLookup.cpp:
#include <stddef.h> // for size_t
#include <algorithm> // for lower_bound
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for function_ref
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorImpl
#include "llvm/Support/Casting.h" // for dyn_cast, cast_or_null, isa
#include "llvm/Support/ErrorHandling.h" // for report_fatal_error
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTScope.h" // for ASTScopeImpl, ASTScopeImpl::...
#include "swift/AST/ASTWalker.h" // for ASTWalker
#include "swift/AST/Decl.h" // for AbstractFunctionDecl, Abstra...
#include "swift/AST/DeclContext.h" // for DeclContext, DeclContextKind
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/Expr.h" // for ClosureExpr, CaptureListEntry
#include "swift/AST/Identifier.h" // for DeclNameRef
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/Initializer.h" // for PatternBindingInitializer
#include "swift/AST/NameLookup.h" // for AbstractASTScopeDeclConsumer
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for Pattern
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/Stmt.h" // for BraceStmt, CaseLabelItem
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/LLVM.h" // for dyn_cast, cast_or_null, isa
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/STLExtras.h" // for up_cast
#include "swift/Basic/SourceLoc.h" // for SourceLoc, SourceRange
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "type_traits" // for move, remove_reference<>::type
#include "utility" // for make_pair, pair
namespace swift { namespace ast_scope { class ScopeCreator; } }
---
/Users/varun/foss-swift/swift/lib/AST/ASTScopePrinting.cpp should add these lines:
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/SmallVector.h" // for SmallVectorTemplateCommon
#include "llvm/Support/raw_ostream.h" // for raw_ostream, errs
#include "swift/AST/DeclContext.h" // for DeclContext
#include "swift/AST/Identifier.h" // for operator<<
#include "swift/AST/NameLookup.h" // for ASTScopeDeclGatherer
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/Range.h" // for indices
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "type_traits" // for remove_reference<>::type, ena...
#include "utility" // for pair
/Users/varun/foss-swift/swift/lib/AST/ASTScopePrinting.cpp should remove these lines:
- #include <algorithm> // lines 32-32
- #include "llvm/Support/Compiler.h" // lines 31-31
- #include "swift/AST/ASTContext.h" // lines 18-18
- #include "swift/AST/ASTWalker.h" // lines 19-19
- #include "swift/AST/Expr.h" // lines 21-21
- #include "swift/AST/Initializer.h" // lines 22-22
- #include "swift/AST/LazyResolver.h" // lines 23-23
- #include "swift/AST/Module.h" // lines 24-24
- #include "swift/AST/ParameterList.h" // lines 25-25
- #include "swift/AST/Stmt.h" // lines 28-28
- #include "swift/AST/TypeRepr.h" // lines 29-29
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTScopePrinting.cpp:
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/SmallVector.h" // for SmallVectorTemplateCommon
#include "llvm/Support/raw_ostream.h" // for raw_ostream, errs
#include "swift/AST/ASTScope.h" // for ASTScopeImpl, ASTScopeImpl::C...
#include "swift/AST/Decl.h" // for VarDecl, AbstractFunctionDecl
#include "swift/AST/DeclContext.h" // for DeclContext
#include "swift/AST/Identifier.h" // for operator<<
#include "swift/AST/NameLookup.h" // for ASTScopeDeclGatherer
#include "swift/AST/Pattern.h" // for Pattern
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/Range.h" // for indices
#include "swift/Basic/STLExtras.h" // for interleave
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "type_traits" // for remove_reference<>::type, ena...
#include "utility" // for pair
---
/Users/varun/foss-swift/swift/lib/AST/ASTScopeSourceRange.cpp should add these lines:
#include <stdlib.h> // for abort
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorTempl...
#include "llvm/ADT/StringRef.h" // for StringRef, operator!=
#include "llvm/Support/Casting.h" // for dyn_cast, cast, isa
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/Attr.h" // for DifferentiableAttr, Specializ...
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/Identifier.h" // for Identifier
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/Basic/LLVM.h" // for dyn_cast, cast, isa
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc, CharS...
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Parse/Token.h" // for Token
#include "swift/Syntax/TokenKinds.h" // for tok
#include "tuple" // for get, tuple
#include "type_traits" // for move, remove_reference<>::type
#include "utility" // for pair
namespace swift { namespace ast_scope { class ScopeCreator; } }
/Users/varun/foss-swift/swift/lib/AST/ASTScopeSourceRange.cpp should remove these lines:
- #include <algorithm> // lines 33-33
- #include "llvm/Support/Compiler.h" // lines 32-32
- #include "swift/AST/ASTWalker.h" // lines 19-19
- #include "swift/AST/Initializer.h" // lines 22-22
- #include "swift/AST/LazyResolver.h" // lines 23-23
- #include "swift/AST/Module.h" // lines 24-24
- #include "swift/Basic/STLExtras.h" // lines 30-30
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTScopeSourceRange.cpp:
#include <stdlib.h> // for abort
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorTempl...
#include "llvm/ADT/StringRef.h" // for StringRef, operator!=
#include "llvm/Support/Casting.h" // for dyn_cast, cast, isa
#include "llvm/Support/raw_ostream.h" // for errs, raw_ostream
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTScope.h" // for ASTScopeImpl, ASTScopeImpl::C...
#include "swift/AST/Attr.h" // for DifferentiableAttr, Specializ...
#include "swift/AST/Decl.h" // for ExtensionDecl, FuncDecl, Prot...
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/Expr.h" // for ClosureExpr, Expr, CaptureLis...
#include "swift/AST/Identifier.h" // for Identifier
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for Pattern
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/Stmt.h" // for BraceStmt, ForEachStmt, Stmt
#include "swift/AST/TypeAlignments.h" // for swift
#include "swift/AST/TypeRepr.h" // for TypeRepr
#include "swift/Basic/LLVM.h" // for dyn_cast, cast, isa
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/NullablePtr.h" // for NullablePtr
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc, CharS...
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Parse/Lexer.h" // for Lexer, Lexer::StringSegment
#include "swift/Parse/Token.h" // for Token
#include "swift/Syntax/TokenKinds.h" // for tok
#include "tuple" // for get, tuple
#include "type_traits" // for move, remove_reference<>::type
#include "utility" // for pair
namespace swift { namespace ast_scope { class ScopeCreator; } }
---
/Users/varun/foss-swift/swift/lib/AST/ASTVerifier.cpp should add these lines:
#include <assert.h> // for assert
#include <stdlib.h> // for abort, size_t
#include "algorithm" // for find_if
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap, DenseMapBase
#include "llvm/ADT/DenseSet.h" // for DenseSet
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerIntPair.h" // for DenseMapInfo, PointerI...
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/STLExtras.h" // for is_contained, function...
#include "llvm/ADT/SmallPtrSet.h" // for SmallPtrSet, SmallPtrS...
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVect...
#include "llvm/Support/Casting.h" // for cast, isa, dyn_cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/Attr.h" // for DeclAttributes, Option...
#include "swift/AST/AttrKind.h" // for AccessLevel, AccessLev...
#include "swift/AST/AutoDiff.h" // for GenericSignature
#include "swift/AST/Availability.h" // for AvailabilityContext
#include "swift/AST/ConcreteDeclRef.h" // for ConcreteDeclRef
#include "swift/AST/DeclContext.h" // for DeclContext, DeclRange
#include "swift/AST/FileUnit.h" // for FileUnit
#include "swift/AST/Identifier.h" // for Identifier, operator<<
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, Kno...
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/RawComment.h" // for RawComment
#include "swift/AST/Requirement.h" // for Requirement, Requireme...
#include "swift/AST/StorageImpl.h" // for AccessorKind, WriteImp...
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/AST/Type.h" // for Type, operator<<, CanType
#include "swift/AST/TypeAlignments.h" // for PointerLikeTypeTraits
#include "swift/AST/Types.h" // for TypeBase, FunctionType
#include "swift/AST/Witness.h" // for Witness, TypeWitnessAn...
#include "swift/Basic/LLVM.h" // for isa, dyn_cast, cast
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Basic/STLExtras.h" // for for_each
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "utility" // for pair
/Users/varun/foss-swift/swift/lib/AST/ASTVerifier.cpp should remove these lines:
- #include <functional> // lines 41-41
- #include "llvm/ADT/SmallString.h" // lines 38-38
- #include "llvm/Support/Debug.h" // lines 39-39
- #include "swift/AST/ForeignErrorConvention.h" // lines 23-23
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTVerifier.cpp:
#include <assert.h> // for assert
#include <stdlib.h> // for abort, size_t
#include <type_traits> // for remove_reference<>::type
#include "algorithm" // for find_if
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap, DenseMapBase
#include "llvm/ADT/DenseSet.h" // for DenseSet
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerIntPair.h" // for DenseMapInfo, PointerI...
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/STLExtras.h" // for is_contained, function...
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/ADT/SmallPtrSet.h" // for SmallPtrSet, SmallPtrS...
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVect...
#include "llvm/Support/Casting.h" // for cast, isa, dyn_cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/raw_ostream.h" // for raw_ostream, errs
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTWalker.h" // for ASTWalker::ParentTy
#include "swift/AST/AccessScope.h" // for AccessScope
#include "swift/AST/Attr.h" // for DeclAttributes, Option...
#include "swift/AST/AttrKind.h" // for AccessLevel, AccessLev...
#include "swift/AST/AutoDiff.h" // for GenericSignature
#include "swift/AST/Availability.h" // for AvailabilityContext
#include "swift/AST/ConcreteDeclRef.h" // for ConcreteDeclRef
#include "swift/AST/Decl.h" // for ValueDecl, AbstractFun...
#include "swift/AST/DeclContext.h" // for DeclContext, DeclRange
#include "swift/AST/DeclNodes.def" // lines 71-71
#include "swift/AST/DeclNodes.def" // lines 346-346
#include "swift/AST/DeclNodes.def" // lines 358-358
#include "swift/AST/ExistentialLayout.h" // for ExistentialLayout, Exi...
#include "swift/AST/Expr.h" // for ExprKind, Expr, Abstra...
#include "swift/AST/ExprNodes.def" // lines 56-56
#include "swift/AST/ExprNodes.def" // lines 266-266
#include "swift/AST/ExprNodes.def" // lines 284-284
#include "swift/AST/FileUnit.h" // for FileUnit
#include "swift/AST/GenericEnvironment.h" // for GenericEnvironment
#include "swift/AST/GenericSignature.h" // for GenericSignature, Gene...
#include "swift/AST/Identifier.h" // for Identifier, operator<<
#include "swift/AST/IfConfigClause.h" // for IfConfigClause
#include "swift/AST/Initializer.h" // for Initializer
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, Kno...
#include "swift/AST/Module.h" // for ModuleDecl, FileUnitKind
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for PatternKind, Pattern
#include "swift/AST/PatternNodes.def" // lines 78-78
#include "swift/AST/PatternNodes.def" // lines 321-321
#include "swift/AST/PatternNodes.def" // lines 334-334
#include "swift/AST/PrettyStackTrace.h" // for PrettyStackTraceExpr
#include "swift/AST/ProtocolConformance.h" // for NormalProtocolConformance
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/RawComment.h" // for RawComment
#include "swift/AST/Requirement.h" // for Requirement, Requireme...
#include "swift/AST/SourceFile.h" // for SourceFile, SourceFile...
#include "swift/AST/Stmt.h" // for StmtKind, Stmt, ForEac...
#include "swift/AST/StmtNodes.def" // lines 63-63
#include "swift/AST/StmtNodes.def" // lines 296-296
#include "swift/AST/StmtNodes.def" // lines 308-308
#include "swift/AST/StorageImpl.h" // for AccessorKind, WriteImp...
#include "swift/AST/SubstitutionMap.h" // for SubstitutionMap
#include "swift/AST/Type.h" // for Type, operator<<, CanType
#include "swift/AST/TypeAlignments.h" // for PointerLikeTypeTraits
#include "swift/AST/TypeRepr.h" // for TypeRepr
#include "swift/AST/Types.h" // for TypeBase, FunctionType
#include "swift/AST/Witness.h" // for Witness, TypeWitnessAn...
#include "swift/Basic/LLVM.h" // for isa, dyn_cast, cast
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Basic/STLExtras.h" // for for_each
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/SourceManager.h" // for SourceManager
#include "swift/Subsystems.h" // for verify, shouldVerify
#include "utility" // for pair
---
/Users/varun/foss-swift/swift/include/swift/AST/ASTWalker.h should add these lines:
#include <assert.h> // for assert
#include <stdint.h> // for uint8_t
#include "llvm/ADT/Optional.h" // for Optional
/Users/varun/foss-swift/swift/include/swift/AST/ASTWalker.h should remove these lines:
- #include "llvm/ADT/PointerUnion.h" // lines 16-16
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/ASTWalker.h:
#include <assert.h> // for assert
#include <stdint.h> // for uint8_t
#include <utility> // for pair
#include "llvm/ADT/Optional.h" // for Optional
namespace swift { class ClosureExpr; } // lines 23-23
namespace swift { class Decl; } // lines 21-21
namespace swift { class Expr; } // lines 22-22
namespace swift { class ModuleDecl; } // lines 24-24
namespace swift { class ParameterList; } // lines 29-29
namespace swift { class Pattern; } // lines 26-26
namespace swift { class Stmt; } // lines 25-25
namespace swift { class TypeLoc; } // lines 28-28
namespace swift { class TypeRepr; } // lines 27-27
---
/Users/varun/foss-swift/swift/lib/AST/ASTWalker.cpp should add these lines:
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/SmallVector.h" // for SmallVector
#include "llvm/Support/Casting.h" // for isa, dyn_cast, cast_or_null
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/Decl.h" // for AbstractStorageDecl, Pattern...
#include "swift/AST/DeclContext.h" // for DeclRange, DeclContext
#include "swift/AST/Expr.h" // for KeyPathExpr, KeyPathExpr::Co...
#include "swift/AST/Pattern.h" // for EnumElementPattern, ExprPattern
#include "swift/AST/Stmt.h" // for BraceStmt, ForEachStmt, Case...
#include "swift/AST/Type.h" // for Type
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/AST/TypeRepr.h" // for DictionaryTypeRepr, Function...
#include "swift/AST/Types.h" // for TypeBase
#include "swift/Basic/LLVM.h" // for isa, dyn_cast, cast_or_null
#include "swift/Basic/Range.h" // for range, IntRange
#include "utility" // for pair
/Users/varun/foss-swift/swift/lib/AST/ASTWalker.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ASTWalker.cpp:
#include "swift/AST/ASTWalker.h"
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/SmallVector.h" // for SmallVector
#include "llvm/Support/Casting.h" // for isa, dyn_cast, cast_or_null
#include "swift/AST/ASTNode.h" // for ASTNode
#include "swift/AST/ASTVisitor.h" // for ASTVisitor, ASTVisitor::visi...
#include "swift/AST/Decl.h" // for AbstractStorageDecl, Pattern...
#include "swift/AST/DeclContext.h" // for DeclRange, DeclContext
#include "swift/AST/Expr.h" // for KeyPathExpr, KeyPathExpr::Co...
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/Pattern.h" // for EnumElementPattern, ExprPattern
#include "swift/AST/PatternNodes.def" // lines 1180-1180
#include "swift/AST/PrettyStackTrace.h" // for PrettyStackTraceDecl
#include "swift/AST/Stmt.h" // for BraceStmt, ForEachStmt, Case...
#include "swift/AST/StmtNodes.def" // lines 1177-1177
#include "swift/AST/Type.h" // for Type
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/AST/TypeRepr.h" // for DictionaryTypeRepr, Function...
#include "swift/AST/TypeReprNodes.def" // lines 1183-1183
#include "swift/AST/Types.h" // for TypeBase
#include "swift/Basic/LLVM.h" // for isa, dyn_cast, cast_or_null
#include "swift/Basic/Range.h" // for range, IntRange
#include "utility" // for pair
---
/Users/varun/foss-swift/swift/include/swift/AST/Attr.h should add these lines:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint64_t, uint8_t
#include "iterator" // for forward_iterator_tag
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/STLExtras.h" // for any_of
#include "llvm/ADT/iterator_range.h" // for make_range, iterator_ra...
#include "llvm/Support/Casting.h" // for dyn_cast
#include "llvm/Support/Compiler.h" // for LLVM_READNONE, LLVM_REA...
#include "swift/AST/Decl.h" // for Decl (ptr only), Abstra...
#include "swift/AST/GenericSignature.h" // for GenericSignature
#include "swift/AST/Type.h" // for Type
#include "swift/AST/TypeAlignments.h" // for AttrAlignInBits
#include "swift/Basic/LLVM.h" // for Optional
#include "swift/Basic/OptionSet.h" // for None
#include "type_traits" // for move
namespace llvm { class raw_ostream; }
namespace swift { class Expr; }
namespace swift { class GenericEnvironment; }
namespace swift { class IndexSubset; }
namespace swift { class TypeRepr; }
/Users/varun/foss-swift/swift/include/swift/AST/Attr.h should remove these lines:
- #include "swift/AST/ConcreteDeclRef.h" // lines 32-32
- #include "swift/AST/Requirement.h" // lines 37-37
- namespace swift { class AbstractFunctionDecl; } // lines 51-51
- namespace swift { class ClassDecl; } // lines 53-53
- namespace swift { class Decl; } // lines 50-50
- namespace swift { class DeclAttributes; } // lines 232-232
- namespace swift { class FuncDecl; } // lines 52-52
- namespace swift { class GenericFunctionType; } // lines 54-54
- namespace swift { class TrailingWhereClause; } // lines 58-58
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/Attr.h:
#include <assert.h> // for assert
#include <stddef.h> // for size_t
#include <stdint.h> // for uint64_t, uint8_t
#include "iterator" // for forward_iterator_tag
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair
#include "llvm/ADT/PointerUnion.h" // for PointerUnion
#include "llvm/ADT/STLExtras.h" // for any_of
#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/ADT/iterator_range.h" // for make_range, iterator_ra...
#include "llvm/Support/Casting.h" // for dyn_cast
#include "llvm/Support/Compiler.h" // for LLVM_READNONE, LLVM_REA...
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/TrailingObjects.h" // for TrailingObjects, Traili...
#include "llvm/Support/VersionTuple.h" // for VersionTuple
#include "swift/AST/Attr.def" // lines 510-510
#include "swift/AST/Attr.def" // lines 589-589
#include "swift/AST/AttrKind.h" // for DeclAttrKind, TypeAttrKind
#include "swift/AST/AutoDiff.h" // for ParsedAutoDiffParameter...
#include "swift/AST/Decl.h" // for Decl (ptr only), Abstra...
#include "swift/AST/DeclNameLoc.h" // for DeclNameLoc
#include "swift/AST/DeclNodes.def" // lines 329-329
#include "swift/AST/DeclNodes.def" // lines 338-338
#include "swift/AST/DeclNodes.def" // lines 344-344
#include "swift/AST/DeclNodes.def" // lines 350-350
#include "swift/AST/DeclNodes.def" // lines 358-358
#include "swift/AST/DeclNodes.def" // lines 364-364
#include "swift/AST/DeclNodes.def" // lines 369-369
#include "swift/AST/GenericSignature.h" // for GenericSignature
#include "swift/AST/Identifier.h" // for ObjCSelector, DeclNameRef
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, NumK...
#include "swift/AST/Ownership.h" // for ReferenceOwnership, Num...
#include "swift/AST/PlatformKind.h" // for PlatformKind, platformS...
#include "swift/AST/ReferenceStorage.def" // lines 172-172
#include "swift/AST/ReferenceStorage.def" // lines 179-179
#include "swift/AST/TrailingCallArguments.h" // for TrailingCallArguments
#include "swift/AST/Type.h" // for Type
#include "swift/AST/TypeAlignments.h" // for AttrAlignInBits
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMPER
#include "swift/Basic/InlineBitfield.h" // for SWIFT_INLINE_BITFIELD
#include "swift/Basic/LLVM.h" // for Optional
#include "swift/Basic/Located.h" // for Located
#include "swift/Basic/OptimizationMode.h" // for OptimizationMode, NumOp...
#include "swift/Basic/OptionSet.h" // for None
#include "swift/Basic/Range.h" // for make_range
#include "swift/Basic/STLExtras.h" // for OptionalTransformRange
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "swift/Basic/UUID.h" // for UUID
#include "swift/Basic/Version.h" // for Version
#include "type_traits" // for move
namespace llvm { class raw_ostream; }
namespace swift { class ASTContext; } // lines 48-48
namespace swift { class ASTPrinter; } // lines 47-47
namespace swift { class Expr; }
namespace swift { class GenericEnvironment; }
namespace swift { class IndexSubset; }
namespace swift { class LazyConformanceLoader; } // lines 55-55
namespace swift { class LazyMemberLoader; } // lines 56-56
namespace swift { class PatternBindingInitializer; } // lines 57-57
namespace swift { class TypeRepr; }
namespace swift { struct PrintOptions; } // lines 49-49
---
/Users/varun/foss-swift/swift/lib/AST/Attr.cpp should add these lines:
#include <string.h> // for memcpy, size_t
#include "algorithm" // for copy
#include "functional" // for function, __base
#include "iosfwd" // for string
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/ADT/Triple.h" // for Triple
#include "memory" // for uninitialized_copy
#include "new" // for operator new
#include "string" // for basic_string
#include "swift/AST/AttrKind.h" // for DeclAttribute::isOptionSet...
#include "swift/AST/ClangNode.h" // for ClangNode
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, None
#include "swift/AST/PrintOptions.h" // for PrintOptions
#include "swift/AST/Requirement.h" // for Requirement, RequirementKind
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/type_traits.h" // for IsTriviallyDestructible
#include "vector" // for vector
/Users/varun/foss-swift/swift/lib/AST/Attr.cpp should remove these lines:
- #include "swift/AST/LazyResolver.h" // lines 24-24
- #include "swift/AST/Module.h" // lines 25-25
The full include-list for /Users/varun/foss-swift/swift/lib/AST/Attr.cpp:
#include "swift/AST/Attr.h"
#include <string.h> // for memcpy, size_t
#include "algorithm" // for copy
#include "functional" // for function, __base
#include "iosfwd" // for string
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/ADT/SmallString.h" // for SmallString
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/ADT/Triple.h" // for Triple
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/raw_ostream.h" // for raw_string_ostream, raw_os...
#include "memory" // for uninitialized_copy
#include "new" // for operator new
#include "string" // for basic_string
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/ASTPrinter.h" // for ASTPrinter, StreamPrinter
#include "swift/AST/Attr.def" // lines 41-41
#include "swift/AST/Attr.def" // lines 51-51
#include "swift/AST/Attr.def" // lines 57-57
#include "swift/AST/Attr.def" // lines 63-63
#include "swift/AST/Attr.def" // lines 69-69
#include "swift/AST/Attr.def" // lines 107-107
#include "swift/AST/Attr.def" // lines 116-116
#include "swift/AST/Attr.def" // lines 134-134
#include "swift/AST/Attr.def" // lines 784-784
#include "swift/AST/Attr.def" // lines 1082-1082
#include "swift/AST/Attr.def" // lines 1116-1116
#include "swift/AST/Attr.def" // lines 1128-1128
#include "swift/AST/AttrKind.h" // for DeclAttribute::isOptionSet...
#include "swift/AST/ClangNode.h" // for ClangNode
#include "swift/AST/Decl.h" // for AbstractFunctionDecl, Decl...
#include "swift/AST/DeclNodes.def" // lines 147-147
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, None
#include "swift/AST/Expr.h" // for packSingleArgument, Expr
#include "swift/AST/GenericEnvironment.h" // for GenericEnvironment
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/PrintOptions.h" // for PrintOptions
#include "swift/AST/Requirement.h" // for Requirement, RequirementKind
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/StorageImpl.h" // for AccessorKind
#include "swift/AST/TypeCheckRequests.h" // for DerivativeAttrOriginalDecl...
#include "swift/AST/TypeRepr.h" // for TypeRepr
#include "swift/AST/Types.h" // for TypeBase, ErrorType
#include "swift/Basic/Defer.h" // for SWIFT_DEFER
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/QuotedString.h" // for operator<<, QuotedString
#include "swift/Basic/type_traits.h" // for IsTriviallyDestructible
#include "vector" // for vector
---
/Users/varun/foss-swift/swift/include/swift/AST/AutoDiff.h should add these lines:
#include <assert.h> // for assert
#include <memory> // for allocator
#include "iosfwd" // for string
#include "llvm/ADT/DenseMapInfo.h" // for DenseMapInfo
#include "llvm/ADT/FoldingSet.h" // for FoldingSetNodeID, FoldingSet...
#include "llvm/ADT/Hashing.h" // for hash_combine, hash_code
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/raw_ostream.h" // for outs, raw_ostream (ptr only)
#include "string" // for operator+, basic_string
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMP
#include "swift/Basic/STLExtras.h" // for interleave
#include "system_error" // for error_code
#include "utility" // for pair
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace swift { class ASTContext; }
namespace swift { class GenericEnvironment; }
namespace swift { class NominalTypeDecl; }
/Users/varun/foss-swift/swift/include/swift/AST/AutoDiff.h should remove these lines:
- #include "swift/AST/TypeAlignments.h" // lines 26-26
- #include "swift/Basic/Range.h" // lines 27-27
- namespace llvm { template <typename T> struct DenseMapInfo; } // lines 564-564
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/AutoDiff.h:
#include <assert.h> // for assert
#include <cstdint> // for uint8_t
#include <memory> // for allocator
#include "iosfwd" // for string
#include "llvm/ADT/DenseMapInfo.h" // for DenseMapInfo
#include "llvm/ADT/FoldingSet.h" // for FoldingSetNodeID, FoldingSet...
#include "llvm/ADT/Hashing.h" // for hash_combine, hash_code
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringExtras.h" // for utostr
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/Support/Error.h" // for inconvertibleErrorCode, Erro...
#include "llvm/Support/raw_ostream.h" // for outs, raw_ostream (ptr only)
#include "string" // for operator+, basic_string
#include "swift/AST/GenericSignature.h" // for GenericSignature, CanGeneric...
#include "swift/AST/Identifier.h" // for Identifier
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/Type.h" // for Type, CanType, LookupConform...
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMP
#include "swift/Basic/STLExtras.h" // for interleave
#include "swift/Basic/SourceLoc.h" // for SourceLoc
#include "system_error" // for error_code
#include "utility" // for pair
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace swift { class ASTContext; }
namespace swift { class AnyFunctionType; } // lines 34-34
namespace swift { class GenericEnvironment; }
namespace swift { class NominalTypeDecl; }
namespace swift { class SILFunctionType; } // lines 36-36
namespace swift { class SourceFile; } // lines 35-35
namespace swift { class TupleType; } // lines 37-37
---
/Users/varun/foss-swift/swift/lib/AST/AutoDiff.cpp should add these lines:
#include "algorithm" // for reverse
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/STLExtras.h" // for reverse
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorImpl
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/ADT/iterator_range.h" // for iterator_range
#include "llvm/Support/Casting.h" // for dyn_cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "swift/AST/Decl.h" // for NominalTypeDecl (ptr only)
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, None
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, KnownPr...
#include "swift/AST/Requirement.h" // for Requirement, RequirementKind
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/Basic/LLVM.h" // for swift
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/Range.h" // for IntRange, range, indices
#include "type_traits" // for move, enable_if<>::type
#include "vector" // for vector
/Users/varun/foss-swift/swift/lib/AST/AutoDiff.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/lib/AST/AutoDiff.cpp:
#include "swift/AST/AutoDiff.h"
#include "algorithm" // for reverse
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/STLExtras.h" // for reverse
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorImpl
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/ADT/iterator_range.h" // for iterator_range
#include "llvm/Support/Casting.h" // for dyn_cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/Decl.h" // for NominalTypeDecl (ptr only)
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, None
#include "swift/AST/GenericEnvironment.h" // for GenericEnvironment
#include "swift/AST/ImportCache.h" // for getAllImports
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, KnownPr...
#include "swift/AST/Module.h" // for ModuleDecl, ModuleDecl::Im...
#include "swift/AST/Requirement.h" // for Requirement, RequirementKind
#include "swift/AST/SimpleRequest.h" // for operator==, simple_display
#include "swift/AST/SourceFile.h" // for SourceFile
#include "swift/AST/TypeCheckRequests.h" // for AbstractGenericSignatureRe...
#include "swift/AST/Types.h" // for AnyFunctionType, TypeBase
#include "swift/Basic/LLVM.h" // for swift
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/Range.h" // for IntRange, range, indices
#include "type_traits" // for move, enable_if<>::type
#include "vector" // for vector
---
/Users/varun/foss-swift/swift/lib/AST/Availability.cpp should add these lines:
#include <assert.h> // for assert
#include "__functional_base" // for less
#include "algorithm" // for max, min
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for operator==, StringRef
#include "llvm/ADT/Triple.h" // for Triple
#include "llvm/Support/Casting.h" // for dyn_cast
#include "llvm/Support/VersionTuple.h" // for VersionTuple, operator<
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/Type.h" // for Type
#include "swift/Basic/LLVM.h" // for dyn_cast, swift
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "type_traits" // for move
#include "utility" // for pair
namespace swift { class DeclContext; }
/Users/varun/foss-swift/swift/lib/AST/Availability.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/lib/AST/Availability.cpp:
#include <assert.h> // for assert
#include <map> // for map
#include "__functional_base" // for less
#include "algorithm" // for max, min
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/StringRef.h" // for operator==, StringRef
#include "llvm/ADT/Triple.h" // for Triple
#include "llvm/Support/Casting.h" // for dyn_cast
#include "llvm/Support/VersionTuple.h" // for VersionTuple, operator<
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/Attr.h" // for AvailableAttr, DeclAttributes
#include "swift/AST/Availability.h" // for AvailabilityContext, VersionR...
#include "swift/AST/Decl.h" // for ExtensionDecl, Decl, NominalT...
#include "swift/AST/Evaluator.h" // for None
#include "swift/AST/PlatformKind.h" // for PlatformKind, inheritsAvailab...
#include "swift/AST/Type.h" // for Type
#include "swift/AST/TypeWalker.h" // for TypeWalker::Action, TypeWalker
#include "swift/AST/Types.h" // for TypeBase
#include "swift/Basic/LLVM.h" // for dyn_cast, swift
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "swift/Basic/SourceLoc.h" // for SourceRange, SourceLoc
#include "type_traits" // for move
#include "utility" // for pair
namespace swift { class DeclContext; }
---
/Users/varun/foss-swift/swift/lib/AST/AvailabilitySpec.cpp should add these lines:
#include <stddef.h> // for size_t
#include "llvm/Support/Casting.h" // for cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/VersionTuple.h" // for operator<<
#include "swift/AST/PlatformKind.h" // for platformString
#include "swift/Basic/LLVM.h" // for cast, swift
#include "swift/Basic/SourceLoc.h" // for SourceRange
/Users/varun/foss-swift/swift/lib/AST/AvailabilitySpec.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/lib/AST/AvailabilitySpec.cpp:
#include <stddef.h> // for size_t
#include "llvm/Support/Casting.h" // for cast
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/VersionTuple.h" // for operator<<
#include "llvm/Support/raw_ostream.h" // for raw_ostream
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/AvailabilitySpec.h" // for PlatformAgnosticVersionConst...
#include "swift/AST/PlatformKind.h" // for platformString
#include "swift/Basic/LLVM.h" // for cast, swift
#include "swift/Basic/SourceLoc.h" // for SourceRange
---
/Users/varun/foss-swift/swift/include/swift/AST/Builtins.h should add these lines:
#include <stdint.h> // for uint8_t
#include "llvm/ADT/StringRef.h" // for StringRef
#include "type_traits" // for underlying_type<>::type, underlyin...
/Users/varun/foss-swift/swift/include/swift/AST/Builtins.h should remove these lines:
- #include "llvm/Support/ErrorHandling.h" // lines 26-26
- #include "swift/Basic/LLVM.h" // lines 22-22
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/Builtins.h:
#include <stdint.h> // for uint8_t
#include "llvm/ADT/SmallVector.h" // for SmallVector, SmallVectorImpl (ptr ...
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/IR/Attributes.h" // for AttributeList, DenseMapInfo
#include "llvm/IR/Intrinsics.h" // for ID
#include "swift/AST/Builtins.def" // lines 83-83
#include "swift/AST/Type.h" // for Type
#include "swift/AST/TypeNodes.def" // lines 42-42
#include "swift/AST/Types.h" // for TypeKind, TypeKind::BuiltinBridgeO...
#include "type_traits" // for underlying_type<>::type, underlyin...
namespace swift { class ASTContext; } // lines 34-34
namespace swift { class Identifier; } // lines 35-35
namespace swift { class ValueDecl; } // lines 36-36
---
/Users/varun/foss-swift/swift/lib/AST/Builtins.cpp should add these lines:
#include <assert.h> // for assert
#include <string.h> // for strlen
#include "algorithm" // for reverse
#include "functional" // for function
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for array_lengthof
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/IR/InstrTypes.h" // for ID
#include "llvm/IR/IntrinsicEnums.inc" // for sadd_with_overflow
#include "llvm/Support/AtomicOrdering.h" // for AtomicOrdering, Atomic...
#include "llvm/Support/Casting.h" // for isa, cast, dyn_cast
#include "llvm/Support/Compiler.h" // for llvm
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/raw_ostream.h" // for raw_ostream, raw_svect...
#include "string.h" // for strchr
#include "swift/AST/Attr.h" // for RethrowsAttr, DeclAttr...
#include "swift/AST/AttrKind.h" // for AccessLevel, AccessLev...
#include "swift/AST/AutoDiff.h" // for getBuiltinDifferentiab...
#include "swift/AST/Decl.h" // for FuncDecl, ValueDecl (p...
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, None
#include "swift/AST/GenericSignature.h" // for GenericSignature
#include "swift/AST/Identifier.h" // for Identifier, DeclBaseName
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, Kno...
#include "swift/AST/Ownership.h" // for ValueOwnership, ValueO...
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/Requirement.h" // for Requirement, operator==
#include "swift/AST/SimpleRequest.h" // for operator==, simple_dis...
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/Basic/LLVM.h" // for cast, isa, swift
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Basic/SourceLoc.h" // for SourceLoc
#include "vector" // for vector
namespace swift { class DeclContext; }
/Users/varun/foss-swift/swift/lib/AST/Builtins.cpp should remove these lines:
- #include <tuple> // lines 30-30
- #include "llvm/IR/Instructions.h" // lines 27-27
- #include "llvm/Support/ManagedStatic.h" // lines 29-29
The full include-list for /Users/varun/foss-swift/swift/lib/AST/Builtins.cpp:
#include "swift/AST/Builtins.h"
#include <assert.h> // for assert
#include <string.h> // for strlen
#include "algorithm" // for reverse
#include "functional" // for function
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, MutableArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/Optional.h" // for Optional
#include "llvm/ADT/STLExtras.h" // for array_lengthof
#include "llvm/ADT/SmallBitVector.h" // for SmallBitVector
#include "llvm/ADT/SmallString.h" // for SmallString
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/IR/Attributes.h" // for AttributeList, Attribute
#include "llvm/IR/InstrTypes.h" // for ID
#include "llvm/IR/IntrinsicEnums.inc" // for sadd_with_overflow
#include "llvm/IR/IntrinsicImpl.inc" // for IntrinsicTargetInfo
#include "llvm/IR/IntrinsicImpl.inc" // for IntrinsicTargetInfo
#include "llvm/IR/Intrinsics.h" // for IITDescriptor::(anonym...
#include "llvm/Support/AtomicOrdering.h" // for AtomicOrdering, Atomic...
#include "llvm/Support/Casting.h" // for isa, cast, dyn_cast
#include "llvm/Support/Compiler.h" // for llvm
#include "llvm/Support/ErrorHandling.h" // for llvm_unreachable
#include "llvm/Support/raw_ostream.h" // for raw_ostream, raw_svect...
#include "string.h" // for strchr
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/Attr.h" // for RethrowsAttr, DeclAttr...
#include "swift/AST/AttrKind.h" // for AccessLevel, AccessLev...
#include "swift/AST/AutoDiff.h" // for getBuiltinDifferentiab...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Builtins.def" // for BuiltinValueKind::Brid...
#include "swift/AST/Decl.h" // for FuncDecl, ValueDecl (p...
#include "swift/AST/Evaluator.h" // for evaluateOrDefault, None
#include "swift/AST/FileUnit.h" // for FileUnit, ModuleDecl::...
#include "swift/AST/GenericSignature.h" // for GenericSignature
#include "swift/AST/Identifier.h" // for Identifier, DeclBaseName
#include "swift/AST/IndexSubset.h" // for IndexSubset
#include "swift/AST/KnownProtocols.h" // for KnownProtocolKind, Kno...
#include "swift/AST/Module.h" // for FileUnitKind, FileUnit...
#include "swift/AST/Ownership.h" // for ValueOwnership, ValueO...
#include "swift/AST/ParameterList.h" // for ParameterList
#include "swift/AST/ProtocolConformanceRef.h" // for ProtocolConformanceRef
#include "swift/AST/Requirement.h" // for Requirement, operator==
#include "swift/AST/SimpleRequest.h" // for operator==, simple_dis...
#include "swift/AST/TypeCheckRequests.h" // for AbstractGenericSignatu...
#include "swift/AST/TypeLoc.h" // for TypeLoc
#include "swift/Basic/LLVM.h" // for cast, isa, swift
#include "swift/Basic/Range.h" // for range, IntRange
#include "swift/Basic/SourceLoc.h" // for SourceLoc
#include "swift/Strings.h" // for BuiltinNameStringLiteral
#include "vector" // for vector
namespace swift { class DeclContext; }
---
/Users/varun/foss-swift/swift/include/swift/AST/CaptureInfo.h should add these lines:
#include <assert.h> // for assert
#include "llvm/ADT/None.h" // for None
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace llvm { template <typename T> struct DenseMapInfo; }
namespace swift { class ASTContext; }
/Users/varun/foss-swift/swift/include/swift/AST/CaptureInfo.h should remove these lines:
- #include "swift/AST/TypeAlignments.h" // lines 20-20
- #include "swift/Basic/LLVM.h" // lines 17-17
- namespace swift { class FuncDecl; } // lines 37-37
The full include-list for /Users/varun/foss-swift/swift/include/swift/AST/CaptureInfo.h:
#include <assert.h> // for assert
#include "llvm/ADT/ArrayRef.h" // for ArrayRef, makeArrayRef
#include "llvm/ADT/None.h" // for None
#include "llvm/ADT/PointerIntPair.h" // for PointerIntPair
#include "llvm/ADT/PointerUnion.h" // for PointerUnion, operator==
#include "llvm/Support/TrailingObjects.h" // for TrailingObjects
#include "swift/Basic/Debug.h" // for SWIFT_DEBUG_DUMP
#include "swift/Basic/OptionSet.h" // for OptionSet, None
#include "swift/Basic/SourceLoc.h" // for SourceLoc
namespace llvm { class raw_ostream; } // lines 31-31
namespace llvm { template <typename T> class SmallVectorImpl; }
namespace llvm { template <typename T> struct DenseMapInfo; }
namespace swift { class ASTContext; }
namespace swift { class CapturedValue; } // lines 27-27
namespace swift { class DynamicSelfType; } // lines 115-115
namespace swift { class OpaqueValueExpr; } // lines 38-38
namespace swift { class ValueDecl; } // lines 36-36
---
/Users/varun/foss-swift/swift/lib/AST/CaptureInfo.cpp should add these lines:
#include <stddef.h> // for size_t
#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
#include "llvm/Support/Compiler.h" // for LLVM_ATTRIBUTE_USED
#include "memory" // for uninitialized_copy
#include "new" // for operator new
#include "swift/AST/Identifier.h" // for operator<<
#include "swift/Basic/LLVM.h" // for swift
#include "swift/Basic/STLExtras.h" // for interleave
#include "swift/Basic/type_traits.h" // for IsTriviallyDestructible, IsTri...
/Users/varun/foss-swift/swift/lib/AST/CaptureInfo.cpp should remove these lines:
The full include-list for /Users/varun/foss-swift/swift/lib/AST/CaptureInfo.cpp:
#include "swift/AST/CaptureInfo.h"
#include <stddef.h> // for size_t
#include "llvm/ADT/SmallVector.h" // for SmallVectorImpl
#include "llvm/Support/Compiler.h" // for LLVM_ATTRIBUTE_USED
#include "llvm/Support/raw_ostream.h" // for raw_ostream, errs
#include "memory" // for uninitialized_copy
#include "new" // for operator new
#include "swift/AST/ASTContext.h" // for ASTContext
#include "swift/AST/Decl.h" // for ValueDecl
#include "swift/AST/Identifier.h" // for operator<<
#include "swift/Basic/LLVM.h" // for swift
#include "swift/Basic/STLExtras.h" // for interleave
#include "swift/Basic/type_traits.h" // for IsTriviallyDestructible, IsTri...
---
(/Users/varun/foss-swift/swift/include/swift/AST/ClangSwiftTypeCorrespondence.h has correct #includes/fwd-decls)
(/Users/varun/foss-swift/swift/lib/AST/ClangSwiftTypeCorrespondence.cpp has correct #includes/fwd-decls)
/Users/varun/foss-swift/swift/lib/AST/ClangTypeConverter.h should add these lines:
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/ADT/Triple.h" // for Triple
#include "swift/AST/Types.h" // for AnyFunctionType, StructType (ptr ...
namespace clang { class ASTContext; }
namespace clang { class Decl; }
namespace swift { class ASTContext; }
namespace swift { class Decl; }
namespace swift { class NominalTypeDecl; }
/Users/varun/foss-swift/swift/lib/AST/ClangTypeConverter.h should remove these lines:
- #include "clang/AST/ASTContext.h" // lines 24-24
- #include "swift/AST/ASTContext.h" // lines 20-20
- #include "swift/AST/ClangModuleLoader.h" // lines 21-21
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ClangTypeConverter.h:
#include "clang/AST/Type.h" // for QualType, Type (ptr only)
#include "llvm/ADT/ArrayRef.h" // for ArrayRef
#include "llvm/ADT/DenseMap.h" // for DenseMap
#include "llvm/ADT/StringRef.h" // for StringRef
#include "llvm/ADT/Triple.h" // for Triple
#include "swift/AST/Type.h" // for Type, DenseMapInfo
#include "swift/AST/TypeVisitor.h" // for TypeVisitor
#include "swift/AST/Types.h" // for AnyFunctionType, StructType (ptr ...
namespace clang { class ASTContext; }
namespace clang { class Decl; }
namespace swift { class ASTContext; }
namespace swift { class Decl; }
namespace swift { class NominalTypeDecl; }
---
/Users/varun/foss-swift/swift/lib/AST/ClangTypeConverter.cpp should add these lines:
#include <assert.h> // for assert
#include <string.h> // for memcpy
#include "clang/AST/Attrs.inc" // for ObjCRuntimeNameAttr
#include "clang/AST/CanonicalType.h" // for CanQual, CanProxy
#include "clang/AST/Decl.h" // for TypedefDecl, Typ...
#include "clang/AST/DeclBase.h" // for Decl
#include "clang/AST/DeclObjC.h" // for ObjCInterfaceDecl
#include "clang/AST/DeclarationName.h" // for CanQualType
#include "clang/Basic/IdentifierTable.h" // for IdentifierTable
#include "clang/Basic/SourceLocation.h" // for SourceLocation
#include "clang/Basic/Specifiers.h" // for CC_C, CallingConv
#include "llvm/ADT/APInt.h" // for APInt
#include "llvm/ADT/SmallString.h" // for SmallString
#include "llvm/ADT/SmallVector.h" // for SmallVector, Sma...
#include "llvm/ADT/StringSwitch.h" // for StringSwitch
#include "llvm/ADT/TinyPtrVector.h" // for TinyPtrVector
#include "llvm/Support/Casting.h" // for dyn_cast, cast_o...
#include "llvm/Support/ErrorHandling.h" // for report_fatal_error
#include "swift/AST/Decl.h" // for ClassDecl, Nomin...
#include "swift/AST/Identifier.h" // for Identifier
#include "swift/AST/LookupKinds.h" // for NLKind, NLKind::...
#include "swift/Basic/LangOptions.h" // for LangOptions
#include "type_traits" // for move, conditiona...
namespace llvm { struct fltSemantics; }
/Users/varun/foss-swift/swift/lib/AST/ClangTypeConverter.cpp should remove these lines:
- #include "swift/AST/TypeVisitor.h" // lines 33-33
The full include-list for /Users/varun/foss-swift/swift/lib/AST/ClangTypeConverter.cpp:
#include "ClangTypeConverter.h"
#include <assert.h> // for assert
#include <string.h> // for memcpy
#include "clang/AST/ASTContext.h" // for ASTContext, Buil...
#include "clang/AST/Attrs.inc" // for ObjCRuntimeNameAttr
#include "clang/AST/BuiltinTypes.def" // lines 70-70
#include "clang/AST/CanonicalType.h" // for CanQual, CanProxy
#include "clang/AST/Decl.h" // for TypedefDecl, Typ...
#include "clang/AST/DeclBase.h" // for Decl
#include "clang/AST/DeclObjC.h" // for ObjCInterfaceDecl
#include "clang/AST/DeclarationName.h" // for CanQualType
#include "clang/Basic/AArch64SVEACLETypes.def" // lines 82-82
#include "clang/Basic/IdentifierTable.h" // for IdentifierTable
#include "clang/Basic/OpenCLExtensionTypes.def" // lines 78-78
#include "clang/Basic/OpenCLImageTypes.def" // lines 74-74
#include "clang/Basic/SourceLocation.h" // for SourceLocation
#include "clang/Basic/Specifiers.h" // for CC_C, CallingConv
#include "clang/Basic/TargetInfo.h" // for TargetInfo
#include "clang/Sema/Sema.h" // for Sema, Sema::Look...