[clangd] Update comment after dea48079b90d40f2087435b778544dffb0ab1793
authorKirill Bobyrev <kbobyrev@google.com>
Thu, 30 Sep 2021 14:45:10 +0000 (16:45 +0200)
committerKirill Bobyrev <kbobyrev@google.com>
Thu, 30 Sep 2021 14:45:10 +0000 (16:45 +0200)
clang-tools-extra/clangd/Headers.h

index fa24d43..4c80c21 100644 (file)
@@ -141,7 +141,7 @@ public:
   // All transitive includes (absolute paths), with their minimum include depth.
   // Root --> 0, #included file --> 1, etc.
   // Root is the ID of the header being visited first.
-  // Usually it is getID(SM.getFileEntryForID(SM.getMainFileID())->getName()).
+  // Usually it is getID(SM.getFileEntryForID(SM.getMainFileID()), SM).
   llvm::DenseMap<HeaderID, unsigned> includeDepth(HeaderID Root) const;
 
   // Maps HeaderID to the ids of the files included from it.