Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 1 | //===--- Headers.cpp - Include headers ---------------------------*- C++-*-===// |
| 2 | // |
Chandler Carruth | 2946cd7 | 2019-01-19 08:50:56 +0000 | [diff] [blame] | 3 | // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. |
| 4 | // See https://llvm.org/LICENSE.txt for license information. |
| 5 | // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 6 | // |
| 7 | //===----------------------------------------------------------------------===// |
| 8 | |
| 9 | #include "Headers.h" |
| 10 | #include "Compiler.h" |
Eric Liu | 155f5a4 | 2018-05-14 12:19:16 +0000 | [diff] [blame] | 11 | #include "SourceCode.h" |
Sam McCall | ad97ccf | 2020-04-28 17:49:17 +0200 | [diff] [blame] | 12 | #include "support/Logger.h" |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 13 | #include "clang/Basic/SourceLocation.h" |
| 14 | #include "clang/Basic/SourceManager.h" |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 15 | #include "clang/Frontend/CompilerInstance.h" |
| 16 | #include "clang/Frontend/CompilerInvocation.h" |
| 17 | #include "clang/Frontend/FrontendActions.h" |
| 18 | #include "clang/Lex/HeaderSearch.h" |
Kadir Cetinkaya | 1f6d984 | 2019-07-03 07:47:19 +0000 | [diff] [blame] | 19 | #include "llvm/ADT/StringRef.h" |
Eric Liu | 709bde8 | 2018-02-19 18:48:44 +0000 | [diff] [blame] | 20 | #include "llvm/Support/Path.h" |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 21 | |
| 22 | namespace clang { |
| 23 | namespace clangd { |
| 24 | namespace { |
| 25 | |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 26 | bool isMainFile(llvm::StringRef FileName, const SourceManager &SM) { |
| 27 | auto FE = SM.getFileManager().getFile(FileName); |
| 28 | return FE && *FE == SM.getFileEntryForID(SM.getMainFileID()); |
| 29 | } |
| 30 | |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 31 | class RecordHeaders : public PPCallbacks { |
| 32 | public: |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 33 | RecordHeaders(const SourceManager &SM, IncludeStructure *Out) |
| 34 | : SM(SM), Out(Out) {} |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 35 | |
Eric Liu | 155f5a4 | 2018-05-14 12:19:16 +0000 | [diff] [blame] | 36 | // Record existing #includes - both written and resolved paths. Only #includes |
| 37 | // in the main file are collected. |
Kadir Cetinkaya | 6e01718 | 2020-04-15 22:00:19 +0200 | [diff] [blame] | 38 | void InclusionDirective(SourceLocation HashLoc, const Token &IncludeTok, |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 39 | llvm::StringRef FileName, bool IsAngled, |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 40 | CharSourceRange /*FilenameRange*/, |
| 41 | const FileEntry *File, llvm::StringRef /*SearchPath*/, |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 42 | llvm::StringRef /*RelativePath*/, |
Julie Hockett | 546943f | 2018-05-10 19:13:14 +0000 | [diff] [blame] | 43 | const Module * /*Imported*/, |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 44 | SrcMgr::CharacteristicKind FileKind) override { |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 45 | auto MainFID = SM.getMainFileID(); |
| 46 | // If an include is part of the preamble patch, translate #line directives. |
| 47 | if (InBuiltinFile) { |
| 48 | auto Presumed = SM.getPresumedLoc(HashLoc); |
| 49 | // Presumed locations will have an invalid file id when #line directive |
| 50 | // changes the filename. |
| 51 | if (Presumed.getFileID().isInvalid() && |
| 52 | isMainFile(Presumed.getFilename(), SM)) { |
| 53 | // Now we'll hit the case below. |
| 54 | HashLoc = SM.translateLineCol(MainFID, Presumed.getLine(), |
| 55 | Presumed.getColumn()); |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | // Record main-file inclusions (including those mapped from the preamble |
| 60 | // patch). |
Haojian Wu | 6ae86ea | 2019-07-19 08:33:39 +0000 | [diff] [blame] | 61 | if (isInsideMainFile(HashLoc, SM)) { |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 62 | Out->MainFileIncludes.emplace_back(); |
| 63 | auto &Inc = Out->MainFileIncludes.back(); |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 64 | Inc.Written = |
| 65 | (IsAngled ? "<" + FileName + ">" : "\"" + FileName + "\"").str(); |
Benjamin Kramer | adcd026 | 2020-01-28 20:23:46 +0100 | [diff] [blame] | 66 | Inc.Resolved = std::string(File ? File->tryGetRealPathName() : ""); |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 67 | Inc.HashOffset = SM.getFileOffset(HashLoc); |
Kadir Cetinkaya | d870016 | 2020-05-04 10:48:19 +0200 | [diff] [blame] | 68 | Inc.HashLine = |
| 69 | SM.getLineNumber(SM.getFileID(HashLoc), Inc.HashOffset) - 1; |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 70 | Inc.FileKind = FileKind; |
Kadir Cetinkaya | 6e01718 | 2020-04-15 22:00:19 +0200 | [diff] [blame] | 71 | Inc.Directive = IncludeTok.getIdentifierInfo()->getPPKeywordID(); |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 72 | } |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 73 | |
| 74 | // Record include graph (not just for main-file includes) |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 75 | if (File) { |
| 76 | auto *IncludingFileEntry = SM.getFileEntryForID(SM.getFileID(HashLoc)); |
| 77 | if (!IncludingFileEntry) { |
| 78 | assert(SM.getBufferName(HashLoc).startswith("<") && |
| 79 | "Expected #include location to be a file or <built-in>"); |
| 80 | // Treat as if included from the main file. |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 81 | IncludingFileEntry = SM.getFileEntryForID(MainFID); |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 82 | } |
| 83 | Out->recordInclude(IncludingFileEntry->getName(), File->getName(), |
| 84 | File->tryGetRealPathName()); |
| 85 | } |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 86 | } |
| 87 | |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 88 | void FileChanged(SourceLocation Loc, FileChangeReason Reason, |
| 89 | SrcMgr::CharacteristicKind FileType, |
| 90 | FileID PrevFID) override { |
| 91 | switch (Reason) { |
| 92 | case PPCallbacks::EnterFile: |
| 93 | if (BuiltinFile.isInvalid() && SM.isWrittenInBuiltinFile(Loc)) { |
| 94 | BuiltinFile = SM.getFileID(Loc); |
| 95 | InBuiltinFile = true; |
| 96 | } |
| 97 | break; |
| 98 | case PPCallbacks::ExitFile: |
| 99 | if (PrevFID == BuiltinFile) |
| 100 | InBuiltinFile = false; |
| 101 | break; |
| 102 | case PPCallbacks::RenameFile: |
| 103 | case PPCallbacks::SystemHeaderPragma: |
| 104 | break; |
| 105 | } |
| 106 | } |
| 107 | |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 108 | private: |
Eric Liu | 155f5a4 | 2018-05-14 12:19:16 +0000 | [diff] [blame] | 109 | const SourceManager &SM; |
Kadir Cetinkaya | 6d6d48a | 2020-05-06 16:20:31 +0200 | [diff] [blame] | 110 | // Set after entering the <built-in> file. |
| 111 | FileID BuiltinFile; |
| 112 | // Indicates whether <built-in> file is part of include stack. |
| 113 | bool InBuiltinFile = false; |
| 114 | |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 115 | IncludeStructure *Out; |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 116 | }; |
| 117 | |
| 118 | } // namespace |
| 119 | |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 120 | bool isLiteralInclude(llvm::StringRef Include) { |
Eric Liu | 6c8e858 | 2018-02-26 08:32:13 +0000 | [diff] [blame] | 121 | return Include.startswith("<") || Include.startswith("\""); |
| 122 | } |
| 123 | |
| 124 | bool HeaderFile::valid() const { |
| 125 | return (Verbatim && isLiteralInclude(File)) || |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 126 | (!Verbatim && llvm::sys::path::is_absolute(File)); |
Eric Liu | 6c8e858 | 2018-02-26 08:32:13 +0000 | [diff] [blame] | 127 | } |
| 128 | |
Eric Liu | dd66277 | 2019-01-28 14:01:55 +0000 | [diff] [blame] | 129 | llvm::Expected<HeaderFile> toHeaderFile(llvm::StringRef Header, |
| 130 | llvm::StringRef HintPath) { |
| 131 | if (isLiteralInclude(Header)) |
| 132 | return HeaderFile{Header.str(), /*Verbatim=*/true}; |
| 133 | auto U = URI::parse(Header); |
| 134 | if (!U) |
| 135 | return U.takeError(); |
| 136 | |
| 137 | auto IncludePath = URI::includeSpelling(*U); |
| 138 | if (!IncludePath) |
| 139 | return IncludePath.takeError(); |
| 140 | if (!IncludePath->empty()) |
| 141 | return HeaderFile{std::move(*IncludePath), /*Verbatim=*/true}; |
| 142 | |
| 143 | auto Resolved = URI::resolve(*U, HintPath); |
| 144 | if (!Resolved) |
| 145 | return Resolved.takeError(); |
| 146 | return HeaderFile{std::move(*Resolved), /*Verbatim=*/false}; |
| 147 | } |
| 148 | |
| 149 | llvm::SmallVector<llvm::StringRef, 1> getRankedIncludes(const Symbol &Sym) { |
| 150 | auto Includes = Sym.IncludeHeaders; |
| 151 | // Sort in descending order by reference count and header length. |
| 152 | llvm::sort(Includes, [](const Symbol::IncludeHeaderWithReferences &LHS, |
| 153 | const Symbol::IncludeHeaderWithReferences &RHS) { |
| 154 | if (LHS.References == RHS.References) |
| 155 | return LHS.IncludeHeader.size() < RHS.IncludeHeader.size(); |
| 156 | return LHS.References > RHS.References; |
| 157 | }); |
| 158 | llvm::SmallVector<llvm::StringRef, 1> Headers; |
| 159 | for (const auto &Include : Includes) |
| 160 | Headers.push_back(Include.IncludeHeader); |
| 161 | return Headers; |
| 162 | } |
| 163 | |
Eric Liu | 155f5a4 | 2018-05-14 12:19:16 +0000 | [diff] [blame] | 164 | std::unique_ptr<PPCallbacks> |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 165 | collectIncludeStructureCallback(const SourceManager &SM, |
| 166 | IncludeStructure *Out) { |
Jonas Devlieghere | 1c705d9 | 2019-08-14 23:52:23 +0000 | [diff] [blame] | 167 | return std::make_unique<RecordHeaders>(SM, Out); |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 168 | } |
| 169 | |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 170 | void IncludeStructure::recordInclude(llvm::StringRef IncludingName, |
| 171 | llvm::StringRef IncludedName, |
| 172 | llvm::StringRef IncludedRealName) { |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 173 | auto Child = fileIndex(IncludedName); |
| 174 | if (!IncludedRealName.empty() && RealPathNames[Child].empty()) |
Benjamin Kramer | adcd026 | 2020-01-28 20:23:46 +0100 | [diff] [blame] | 175 | RealPathNames[Child] = std::string(IncludedRealName); |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 176 | auto Parent = fileIndex(IncludingName); |
| 177 | IncludeChildren[Parent].push_back(Child); |
| 178 | } |
| 179 | |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 180 | unsigned IncludeStructure::fileIndex(llvm::StringRef Name) { |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 181 | auto R = NameToIndex.try_emplace(Name, RealPathNames.size()); |
| 182 | if (R.second) |
| 183 | RealPathNames.emplace_back(); |
| 184 | return R.first->getValue(); |
| 185 | } |
| 186 | |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 187 | llvm::StringMap<unsigned> |
| 188 | IncludeStructure::includeDepth(llvm::StringRef Root) const { |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 189 | // Include depth 0 is the main file only. |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 190 | llvm::StringMap<unsigned> Result; |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 191 | Result[Root] = 0; |
| 192 | std::vector<unsigned> CurrentLevel; |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 193 | llvm::DenseSet<unsigned> Seen; |
Sam McCall | 3f0243f | 2018-07-03 08:09:29 +0000 | [diff] [blame] | 194 | auto It = NameToIndex.find(Root); |
| 195 | if (It != NameToIndex.end()) { |
| 196 | CurrentLevel.push_back(It->second); |
| 197 | Seen.insert(It->second); |
| 198 | } |
| 199 | |
| 200 | // Each round of BFS traversal finds the next depth level. |
| 201 | std::vector<unsigned> PreviousLevel; |
| 202 | for (unsigned Level = 1; !CurrentLevel.empty(); ++Level) { |
| 203 | PreviousLevel.clear(); |
| 204 | PreviousLevel.swap(CurrentLevel); |
| 205 | for (const auto &Parent : PreviousLevel) { |
| 206 | for (const auto &Child : IncludeChildren.lookup(Parent)) { |
| 207 | if (Seen.insert(Child).second) { |
| 208 | CurrentLevel.push_back(Child); |
| 209 | const auto &Name = RealPathNames[Child]; |
| 210 | // Can't include files if we don't have their real path. |
| 211 | if (!Name.empty()) |
| 212 | Result[Name] = Level; |
| 213 | } |
| 214 | } |
| 215 | } |
| 216 | } |
| 217 | return Result; |
Eric Liu | 155f5a4 | 2018-05-14 12:19:16 +0000 | [diff] [blame] | 218 | } |
| 219 | |
Eric Liu | fd9f426 | 2018-09-27 14:27:02 +0000 | [diff] [blame] | 220 | void IncludeInserter::addExisting(const Inclusion &Inc) { |
| 221 | IncludedHeaders.insert(Inc.Written); |
| 222 | if (!Inc.Resolved.empty()) |
| 223 | IncludedHeaders.insert(Inc.Resolved); |
| 224 | } |
| 225 | |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 226 | /// FIXME(ioeric): we might not want to insert an absolute include path if the |
| 227 | /// path is not shortened. |
Eric Liu | 8f3678d | 2018-06-15 13:34:18 +0000 | [diff] [blame] | 228 | bool IncludeInserter::shouldInsertInclude( |
Eric Liu | 417c889 | 2019-04-16 14:35:49 +0000 | [diff] [blame] | 229 | PathRef DeclaringHeader, const HeaderFile &InsertedHeader) const { |
| 230 | assert(InsertedHeader.valid()); |
Eric Liu | 00d99bd | 2019-04-11 09:36:36 +0000 | [diff] [blame] | 231 | if (!HeaderSearchInfo && !InsertedHeader.Verbatim) |
| 232 | return false; |
Eric Liu | 417c889 | 2019-04-16 14:35:49 +0000 | [diff] [blame] | 233 | if (FileName == DeclaringHeader || FileName == InsertedHeader.File) |
Eric Liu | 8f3678d | 2018-06-15 13:34:18 +0000 | [diff] [blame] | 234 | return false; |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 235 | auto Included = [&](llvm::StringRef Header) { |
Eric Liu | 155f5a4 | 2018-05-14 12:19:16 +0000 | [diff] [blame] | 236 | return IncludedHeaders.find(Header) != IncludedHeaders.end(); |
Eric Liu | 6c8e858 | 2018-02-26 08:32:13 +0000 | [diff] [blame] | 237 | }; |
Eric Liu | 417c889 | 2019-04-16 14:35:49 +0000 | [diff] [blame] | 238 | return !Included(DeclaringHeader) && !Included(InsertedHeader.File); |
Eric Liu | 8f3678d | 2018-06-15 13:34:18 +0000 | [diff] [blame] | 239 | } |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 240 | |
Sam McCall | b324c64 | 2019-07-08 18:07:46 +0000 | [diff] [blame] | 241 | llvm::Optional<std::string> |
Kadir Cetinkaya | 1f6d984 | 2019-07-03 07:47:19 +0000 | [diff] [blame] | 242 | IncludeInserter::calculateIncludePath(const HeaderFile &InsertedHeader, |
| 243 | llvm::StringRef IncludingFile) const { |
Eric Liu | 417c889 | 2019-04-16 14:35:49 +0000 | [diff] [blame] | 244 | assert(InsertedHeader.valid()); |
Eric Liu | 6c8e858 | 2018-02-26 08:32:13 +0000 | [diff] [blame] | 245 | if (InsertedHeader.Verbatim) |
| 246 | return InsertedHeader.File; |
Eric Liu | 8f3678d | 2018-06-15 13:34:18 +0000 | [diff] [blame] | 247 | bool IsSystem = false; |
Sam McCall | b324c64 | 2019-07-08 18:07:46 +0000 | [diff] [blame] | 248 | std::string Suggested; |
| 249 | if (HeaderSearchInfo) { |
| 250 | Suggested = HeaderSearchInfo->suggestPathToFileForDiagnostics( |
| 251 | InsertedHeader.File, BuildDir, IncludingFile, &IsSystem); |
| 252 | } else { |
| 253 | // Calculate include relative to including file only. |
| 254 | StringRef IncludingDir = llvm::sys::path::parent_path(IncludingFile); |
| 255 | SmallString<256> RelFile(InsertedHeader.File); |
| 256 | // Replacing with "" leaves "/RelFile" if IncludingDir doesn't end in "/". |
| 257 | llvm::sys::path::replace_path_prefix(RelFile, IncludingDir, "./"); |
| 258 | Suggested = llvm::sys::path::convert_to_slash( |
| 259 | llvm::sys::path::remove_leading_dotslash(RelFile)); |
| 260 | } |
| 261 | // FIXME: should we allow (some limited number of) "../header.h"? |
| 262 | if (llvm::sys::path::is_absolute(Suggested)) |
| 263 | return None; |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 264 | if (IsSystem) |
| 265 | Suggested = "<" + Suggested + ">"; |
| 266 | else |
| 267 | Suggested = "\"" + Suggested + "\""; |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 268 | return Suggested; |
| 269 | } |
| 270 | |
Ilya Biryukov | f2001aa | 2019-01-07 15:45:19 +0000 | [diff] [blame] | 271 | llvm::Optional<TextEdit> |
| 272 | IncludeInserter::insert(llvm::StringRef VerbatimHeader) const { |
| 273 | llvm::Optional<TextEdit> Edit = None; |
Eric Liu | 8f3678d | 2018-06-15 13:34:18 +0000 | [diff] [blame] | 274 | if (auto Insertion = Inserter.insert(VerbatimHeader.trim("\"<>"), |
| 275 | VerbatimHeader.startswith("<"))) |
| 276 | Edit = replacementToEdit(Code, *Insertion); |
| 277 | return Edit; |
Eric Liu | 63f419a | 2018-05-15 15:29:32 +0000 | [diff] [blame] | 278 | } |
| 279 | |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 280 | llvm::raw_ostream &operator<<(llvm::raw_ostream &OS, const Inclusion &Inc) { |
| 281 | return OS << Inc.Written << " = " |
Kadir Cetinkaya | d870016 | 2020-05-04 10:48:19 +0200 | [diff] [blame] | 282 | << (!Inc.Resolved.empty() ? Inc.Resolved : "[unresolved]") |
| 283 | << " at line" << Inc.HashLine; |
Sam McCall | 991e316 | 2018-11-20 10:58:48 +0000 | [diff] [blame] | 284 | } |
| 285 | |
Kadir Cetinkaya | 717bef6 | 2020-04-23 17:44:51 +0200 | [diff] [blame^] | 286 | bool operator==(const Inclusion &LHS, const Inclusion &RHS) { |
| 287 | return std::tie(LHS.Directive, LHS.FileKind, LHS.HashOffset, LHS.HashLine, |
| 288 | LHS.Resolved, LHS.Written) == |
| 289 | std::tie(RHS.Directive, RHS.FileKind, RHS.HashOffset, RHS.HashLine, |
| 290 | RHS.Resolved, RHS.Written); |
| 291 | } |
Eric Liu | c5105f9 | 2018-02-16 14:15:55 +0000 | [diff] [blame] | 292 | } // namespace clangd |
| 293 | } // namespace clang |