Files
swift-mirror/test/ClangImporter/Inputs/systemsearchpaths/include/Module.h
Ian Anderson cdb42c3535 [ClangImporter] clang's -iframework comes before builtin usr/local/include, but Swift's -Fsystem comes after
When Swift passes search paths to clang, it does so directly into the HeaderSearch. That means that those paths get ordered inconsistently compared to the equivalent clang flag, and causes inconsistencies when building clang modules with clang and with Swift. Instead of touching the HeaderSearch directly, pass Swift search paths as driver flags, just do them after the -Xcc ones.

Swift doesn't have a way to pass a search path to clang as -isystem, only as -I which usually isn't the right flag. Add an -Isystem Swift flag so that those paths can be passed to clang as -isystem.

rdar://93951328
2024-12-23 22:15:52 -08:00

8 lines
174 B
C

#ifndef MODULE_H
#define MODULE_H
static inline int trigger_code_warning(void) {} // expected-user-warning{{non-void function does not return a value}}
#endif // MODULE_H