From: Chris Lattner Date: Thu, 15 Nov 2007 19:22:18 +0000 (+0000) Subject: add header file I forgot to check in X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25bfcb927d9169ea675ce6e98d8992efceeb0e42;p=clang add header file I forgot to check in git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@44179 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/include/clang/Lex/HeaderSearch.h b/include/clang/Lex/HeaderSearch.h index 4163a8a07f..381c672aeb 100644 --- a/include/clang/Lex/HeaderSearch.h +++ b/include/clang/Lex/HeaderSearch.h @@ -152,6 +152,12 @@ public: getFileInfo(File).DirInfo = DirectoryLookup::SystemHeaderDir; } + /// IncrementIncludeCount - Increment the count for the number of times the + /// specified FileEntry has been entered. + void IncrementIncludeCount(const FileEntry *File) { + ++getFileInfo(File).NumIncludes; + } + /// SetFileControllingMacro - Mark the specified file as having a controlling /// macro. This is used by the multiple-include optimization to eliminate /// no-op #includes.