This reverts commit r310605. Richard pointed out a better way to achieve
this, which I'll post a patch for soon.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@310775
91177308-0d34-0410-b5e6-
96231b3b80d8
// headers find in the wild might rely only on #import and do not contain
// controlling macros, be conservative and only try to enter textual headers
// if such macro is present.
- if (FileInfo.isCompilingModuleHeader && !FileInfo.isModuleHeader &&
+ if (!FileInfo.isModuleHeader &&
FileInfo.getControllingMacro(ExternalLookup))
TryEnterHdr = true;
return TryEnterHdr;
+++ /dev/null
-#ifndef RANDOM_DEP
-
-@interface X
-@end
-
-#endif // RANDOM_DEP
+++ /dev/null
-// RUN: rm -rf %t
-// RUN: %clang_cc1 -fsyntax-only -fmodules -fimplicit-module-maps -I%S/Inputs/import-textual -fmodules-cache-path=%t %s -verify
-
-// expected-no-diagnostics
-
-#import "x.h"
-#import "x.h"
-