From: Jonas Devlieghere Date: Mon, 29 Jul 2019 23:02:11 +0000 (+0000) Subject: [DependencyCollector] Make maybeAddDependency virtual (NFC) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cb15cf86d9f70d93d4778b85f970346280bb0978;p=clang [DependencyCollector] Make maybeAddDependency virtual (NFC) Make DependencyCollector::maybeAddDependency, just like its other methods, which I made virtual a while ago. The motivation for this change is still the LLDB reproducer. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@367271 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Frontend/Utils.h b/include/clang/Frontend/Utils.h index 74e563218c..04e786f82e 100644 --- a/include/clang/Frontend/Utils.h +++ b/include/clang/Frontend/Utils.h @@ -99,11 +99,11 @@ public: /// Return true if system files should be passed to sawDependency(). virtual bool needSystemDependencies() { return false; } - // implementation detail /// Add a dependency \p Filename if it has not been seen before and /// sawDependency() returns true. - void maybeAddDependency(StringRef Filename, bool FromModule, bool IsSystem, - bool IsModuleFile, bool IsMissing); + virtual void maybeAddDependency(StringRef Filename, bool FromModule, + bool IsSystem, bool IsModuleFile, + bool IsMissing); protected: /// Return true if the filename was added to the list of dependencies, false