Index: tools/gn/header_checker.h |
diff --git a/tools/gn/header_checker.h b/tools/gn/header_checker.h |
index e024c02a2cd60b386e5ee167b7bc0edc5a80efb0..35e8887313e60a5b3520ce6b4179daff86915630 100644 |
--- a/tools/gn/header_checker.h |
+++ b/tools/gn/header_checker.h |
@@ -148,6 +148,14 @@ class HeaderChecker : public base::RefCountedThreadSafe<HeaderChecker> { |
bool require_permitted, |
Chain* chain) const; |
+ // Makes a very descriptive error message for when an include is disallowed |
+ // from a given from_target, with a missing dependency to one of the given |
+ // targets. |
+ static Err MakeUnreachableError(const InputFile& source_file, |
+ const LocationRange& range, |
+ const Target* from_target, |
+ const TargetVector& targets); |
+ |
// Non-locked variables ------------------------------------------------------ |
// |
// These are initialized during construction (which happens on one thread) |