1 // RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -verify %s 2 // RUN: %clang_cc1 -fsyntax-only -F %S/Inputs -DTYPO_CORRECTION -verify %s 3 4 // After finding a requested framework, we don't look for the same framework in 5 // a different location even if requested header is not found in the framework. 6 // It can be confusing when there is a framework with required header later in 7 // header search paths. Mention in diagnostics where the header lookup stopped. 8 9 #ifndef TYPO_CORRECTION 10 #include <TestFramework/NotExistingHeader.h> 11 // expected-error@-1 {{'TestFramework/NotExistingHeader.h' file not found}} 12 // expected-note@-2 {{did not find header 'NotExistingHeader.h' in framework 'TestFramework' (loaded from}} 13 14 #else 15 // Don't emit extra note for unsuccessfully typo-corrected include. 16 #include <#TestFramework/NotExistingHeader.h> 17 // expected-error@-1 {{'#TestFramework/NotExistingHeader.h' file not found}} 18 #endif // TYPO_CORRECTION 19