clangd / vscode-clangd

Visual Studio Code extension for clangd
https://marketplace.visualstudio.com/items?itemName=llvm-vs-code-extensions.vscode-clangd
MIT License
592 stars 97 forks source link

Inlay hints don't show unless explicitly enabled with `Enabled: true` #611

Open palapapa opened 3 months ago

palapapa commented 3 months ago

I initially didn't write Enabled: true for InlayHints because in the docs it says it's the default. The inlay hints never showed until I added Enabled: true, then it showed once, but once I reloaded the window again, they were gone again, and I couldn't get them to show up again.

Edit: I had to restart VSCode to get them to show up again, but they wouldn't show without Enabled: true. Restarting the language server didn't work.

Edit 2: It seems like DeducedTypes inlay hints also don't show. For example: 圖片 Explicitly adding DeducedTypes: true didn't work.

My config:

CompileFlags:
  Add:
    - -Weverything
    - -Wno-used-but-marked-unused
    - -Wno-declaration-after-statement
    - -Wno-vla
    - -Wno-missing-prototypes
    - -Wno-c++98-compat
    - -Wno-reserved-macro-identifier
    - -Wno-padded
    - -Wno-unsafe-buffer-usage
    - -Wno-empty-translation-unit
Diagnostics:
  ClangTidy:
    Add: "*"
    Remove:
      - "altera-*"
      - "llvmlibc-*"
      - llvm-include-order
      - readability-identifier-length
      - readability-isolate-declaration
      - readability-magic-numbers
      - modernize-use-trailing-return-type
      - cppcoreguidelines-avoid-magic-numbers
  MissingIncludes: Strict
Completion:
  AllScopes: true
InlayHints:
  Enabled: true
  Designators: false
  ParameterNames: true
  TypeNameLimit: 0
Hover:
  ShowAKA: true
Index:
  StandardLibrary: Yes
---
If:
  PathMatch: 
    - .*\.c
    - .*\.h
CompileFlags:
  Add: 
    - -std=c17
  Compiler: gcc
---
If:
  PathMatch:
    - .*\.cpp
    - .*\.hpp
CompileFlags:
  Add: 
    - -std=c++23
  Compiler: g++

Logs

I[01:47:17.814] clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57)
I[01:47:17.816] Features: windows+grpc
I[01:47:17.816] PID: 17824
I[01:47:17.816] Working directory: d:\Desktop\C++\College\OopHw1
I[01:47:17.816] argv[0]: c:\Users\User\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\17.0.3\clangd_17.0.3\bin\clangd.exe
I[01:47:17.816] argv[1]: --log=verbose
I[01:47:17.816] argv[2]: --query-driver=**/*
V[01:47:17.823] User config file is C:\Users\User\AppData\Local\clangd\config.yaml
I[01:47:17.823] Starting LSP over stdin/stdout
V[01:47:17.875] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"],"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]}},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}},"textDocument":{"callHierarchy":{"dynamicRegistration":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"dynamicRegistration":true,"honorsChangeAnnotations":false,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]}},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"insertReplaceSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true,"preselectSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode"]},"contextSupport":true,"dynamicRegistration":true,"editsNearCursor":true,"insertTextMode":2},"declaration":{"dynamicRegistration":true,"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"documentSymbol":{"dynamicRegistration":true,"hierarchicalDocumentSymbolSupport":true,"labelSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"foldingRange":{"dynamicRegistration":true,"foldingRange":{"collapsedText":false},"foldingRangeKind":{"valueSet":["comment","imports","region"]},"lineFoldingOnly":true,"rangeLimit":5000},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"inactiveRegionsCapabilities":{"inactiveRegions":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"inlineValue":{"dynamicRegistration":true},"linkedEditingRange":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"publishDiagnostics":{"codeDescriptionSupport":true,"dataSupport":true,"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":false},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"honorsChangeAnnotations":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1},"selectionRange":{"dynamicRegistration":true},"semanticTokens":{"augmentsSyntaxTokens":true,"dynamicRegistration":true,"formats":["relative"],"multilineTokenSupport":false,"overlappingTokenSupport":false,"requests":{"full":{"delta":true},"range":true},"serverCancelSupport":true,"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]},"signatureHelp":{"contextSupport":true,"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"typeHierarchy":{"dynamicRegistration":true}},"window":{"showDocument":{"support":true},"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"workDoneProgress":true},"workspace":{"applyEdit":true,"codeLens":{"refreshSupport":true},"configuration":true,"diagnostics":{"refreshSupport":true},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"executeCommand":{"dynamicRegistration":true},"fileOperations":{"didCreate":true,"didDelete":true,"didRename":true,"dynamicRegistration":true,"willCreate":true,"willDelete":true,"willRename":true},"inlayHint":{"refreshSupport":true},"inlineValue":{"refreshSupport":true},"semanticTokens":{"refreshSupport":true},"symbol":{"dynamicRegistration":true,"resolveSupport":{"properties":["location.range"]},"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"workspaceEdit":{"changeAnnotationSupport":{"groupsOnLabel":true},"documentChanges":true,"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"Visual Studio Code","version":"1.87.2"},"initializationOptions":{"clangdFileStatus":true,"fallbackFlags":[]},"locale":"en","processId":20392,"rootPath":"d:\\Desktop\\C++\\College\\OopHw1","rootUri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1","trace":"off","workspaceFolders":[{"name":"OopHw1","uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1"}]}}

I[01:47:17.875] <-- initialize(0)
I[01:47:17.903] --> reply:initialize(0) 27 ms
V[01:47:17.903] >>> {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"clangdInlayHintsProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"foldingRangeProvider":true,"hoverProvider":true,"implementationProvider":true,"inactiveRegionsProvider":true,"inlayHintProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","definition","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","usedAsMutablePointer","constructorOrDestructor","userDefined","functionScope","classScope","fileScope","globalScope"],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","modifier","operator","bracket","label","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"standardTypeHierarchyProvider":true,"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeDefinitionProvider":true,"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57) windows+grpc x86_64-pc-windows-msvc"}}}

V[01:47:17.964] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}

I[01:47:17.964] <-- initialized
V[01:47:17.981] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"#include <iostream>\r\n#include <stdexcept>\r\n#include <unordered_map>\r\n#include <unordered_set>\r\n#include <utility>\r\n\r\n/// @brief A graph.\r\n/// @tparam T The type used as the ID of each node in the graph.\r\n/// @tparam IsDirected Whether the graph is a directed graph.\r\ntemplate <typename T, bool IsDirected = true>\r\nrequires requires\r\n{\r\n    std::unordered_map<T, std::unordered_set<T>>{};\r\n}\r\nclass Graph\r\n{\r\npublic:\r\n    /// @brief The type used as the ID of each node in the graph. It is the same as @p T.\r\n    using NodeType = T;\r\n\r\n    /// @brief Gets the underlying representation of the graph.\r\n    /// @return The underlying representation of the graph.\r\n    constexpr const auto &getAdjacencyList()\r\n    {\r\n        return adjacencyList;\r\n    }\r\n\r\n    /// @brief Checks if a node exists in the graph.\r\n    /// @param node The node to check.\r\n    /// @return Whether @p node is in the graph.\r\n    constexpr bool hasNode(const T &node) const\r\n    {\r\n        return adjacencyList.count(node) == 1;\r\n    }\r\n\r\n    /// @brief Adds a node to the graph. If the node already exists, does nothing.\r\n    /// @tparam U The same type as @p T. It is used to make forwarding possible here.\r\n    /// @param node The node to add.\r\n    /// @return This instance of @ref Graph.\r\n    template <std::same_as<T> U>\r\n    constexpr Graph &addNode(U &&node)\r\n    {\r\n        if (hasNode(node))\r\n        {\r\n            return *this;\r\n        }\r\n        adjacencyList[std::forward<U>(node)];\r\n        return *this;\r\n    }\r\n\r\n    /// @brief Checks if a edge exists in the graph. The result depends on whether the graph is directed or not.\r\n    /// @param src The source node. This is interchangeable with @p dest if the graph is not directed.\r\n    /// @param dest The destination node. This is interchangeable with @p src if the graph is not directed.\r\n    /// @return Whether an edge from @p src to @p dest exists. If the graph is not directed, also checks if an edge from @p dest to @p src exists.\r\n    constexpr bool hasEdge(const T &src, const T &dest) const\r\n    {\r\n        if (!hasNode(src) || !hasNode(dest))\r\n        {\r\n            return false;\r\n        }\r\n        if constexpr (IsDirected)\r\n        {\r\n            return adjacencyList.at(src).contains(dest);\r\n        }\r\n        else\r\n        {\r\n            return adjacencyList.at(src).contains(dest) || adjacencyList.at(dest).contains(src);\r\n        }\r\n    }\r\n\r\n    /// @brief Adds an edge to the graph. If the edge already exists, does nothing.\r\n    /// @tparam U The same type as @p T. It is used to make forwarding possible here.\r\n    /// @param src The source node. This is interchangeable with @p dest if the graph is not directed.\r\n    /// @param dest The destination node. This is interchangeable with @p src if the graph is not directed.\r\n    /// @exception std::invalid_argument When either @p src or @p dest is not in the graph.\r\n    /// @return This instance of @ref Graph.\r\n    template <std::same_as<T> U>\r\n    constexpr Graph &addEdge(const T &src, U &&dest)\r\n    {\r\n        if (!hasNode(src))\r\n        {\r\n            throw std::invalid_argument(\"Node src doesn't exist in the graph.\");\r\n        }\r\n        if (!hasNode(dest))\r\n        {\r\n            throw std::invalid_argument(\"Node dest doesn't exist in the graph.\");\r\n        }\r\n        adjacencyList[src].insert(std::forward<U>(dest));\r\n        return *this;\r\n    }\r\n\r\nprivate:\r\n    using AdjacencyListType = std::unordered_map<T, std::unordered_set<T>>;\r\n    AdjacencyListType adjacencyList;\r\n};\r\n\r\nint main() try\r\n{\r\n    Graph<int, true> g{};\r\n    g.addNode(1).addNode(2).addEdge(1, 2);\r\n    if (g.hasEdge(2, 1))\r\n    {\r\n        std::cout << \"Has edge\\n\";\r\n    }\r\n    else\r\n    {\r\n        std::cout << \"No edge\\n\";\r\n    }\r\n}\r\ncatch (...)\r\n{\r\n    (void)0;\r\n}\r\n","uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","version":1}}}

I[01:47:17.981] <-- textDocument/didOpen
E[01:47:17.998] System include extraction: driver clang not found in PATH
V[01:47:18.001] config note at C:\Users\User\AppData\Local\clangd\config.yaml:1:0: Parsing config fragment
V[01:47:18.001] config note at C:\Users\User\AppData\Local\clangd\config.yaml:38:0: Parsing config fragment
V[01:47:18.001] config note at C:\Users\User\AppData\Local\clangd\config.yaml:47:0: Parsing config fragment
V[01:47:18.001] config note at C:\Users\User\AppData\Local\clangd\config.yaml:1:0: Parsed 3 fragments from file
V[01:47:18.001] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:1 -> 0x000001F6348E9840 (trusted=true)
V[01:47:18.001] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:38 -> 0x000001F6348EA380 (trusted=true)
V[01:47:18.001] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:47 -> 0x000001F6348EA330 (trusted=true)
I[01:47:18.002] --> textDocument/publishDiagnostics
V[01:47:18.002] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///C:/Users/User/AppData/Local/clangd/config.yaml"}}

I[01:47:18.003] Failed to find compilation database for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
V[01:47:18.005] System include extraction: driver g++ expanded to C:\mingw64\bin\g++.exe
V[01:47:18.084] System include extraction: target extracted: "x86_64-w64-mingw32"
V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0

V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32

V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward

V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include

V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include

V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed

V[01:47:18.084] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include

I[01:47:18.084] System includes extractor: successfully executed C:\mingw64\bin\g++.exe
    got includes: "C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include"
    got target: "x86_64-w64-mingw32"
I[01:47:18.085] ASTWorker building file d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1 with command clangd fallback
[d:\Desktop\C++\College\OopHw1]
"C:\\mingw64\\bin\\g++" --driver-mode=g++ -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c++23 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include --target=x86_64-w64-mingw32 "-resource-dir=c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17" -- "d:\\Desktop\\C++\\College\\OopHw1\\OOP_HW1_411410040.cpp"
V[01:47:18.089] Driver produced command: cc1 -cc1 -triple x86_64-w64-windows-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name OOP_HW1_411410040.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mms-bitfields -funwind-tables=2 -fno-use-init-array -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb "-fcoverage-compilation-dir=d:\\Desktop\\C++\\College\\OopHw1" -resource-dir "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17" -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\backward" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0\\backward" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13\\backward" -internal-isystem "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17\\include" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\usr/include" -internal-isystem "C:\\mingw64\\include" -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c++23 -fdeprecated-macro "-fdebug-compilation-dir=d:\\Desktop\\C++\\College\\OopHw1" -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fno-implicit-modules -fcxx-exceptions -fexceptions -exception-model=seh -no-round-trip-args -faddrsig -x c++ "d:\\Desktop\\C++\\College\\OopHw1\\OOP_HW1_411410040.cpp"
I[01:47:18.089] --> textDocument/clangd.fileStatus
V[01:47:18.089] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Update","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[01:47:18.089] Building first preamble for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1
V[01:47:18.376] <<< {"id":1,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":22,"line":22},"start":{"character":22,"line":22}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.376] <-- textDocument/codeAction(1)
V[01:47:18.386] <<< {"id":2,"jsonrpc":"2.0","method":"textDocument/documentHighlight","params":{"position":{"character":22,"line":22},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.386] <-- textDocument/documentHighlight(2)
V[01:47:18.389] <<< {"id":3,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.389] <-- textDocument/documentLink(3)
V[01:47:18.392] <<< {"id":4,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.392] <-- textDocument/inlayHint(4)
V[01:47:18.831] <<< {"id":5,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.832] <-- textDocument/documentSymbol(5)
V[01:47:18.832] <<< {"id":6,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.832] <-- textDocument/foldingRange(6)
I[01:47:18.834] --> reply:textDocument/foldingRange(6) 1 ms
V[01:47:18.838] >>> {"id":6,"jsonrpc":"2.0","result":[{"endLine":12,"kind":"region","startCharacter":1,"startLine":11},{"endLine":93,"kind":"region","startCharacter":1,"startLine":15},{"endCharacter":4,"endLine":24,"kind":"region","startCharacter":5,"startLine":23},{"endCharacter":4,"endLine":32,"kind":"region","startCharacter":5,"startLine":31},{"endCharacter":4,"endLine":47,"kind":"region","startCharacter":5,"startLine":41},{"endCharacter":8,"endLine":44,"kind":"region","startCharacter":9,"startLine":43},{"endCharacter":4,"endLine":67,"kind":"region","startCharacter":5,"startLine":55},{"endCharacter":8,"endLine":58,"kind":"region","startCharacter":9,"startLine":57},{"endCharacter":8,"endLine":62,"kind":"region","startCharacter":9,"startLine":61},{"endCharacter":8,"endLine":66,"kind":"region","startCharacter":9,"startLine":65},{"endCharacter":4,"endLine":88,"kind":"region","startCharacter":5,"startLine":78},{"endCharacter":8,"endLine":81,"kind":"region","startCharacter":9,"startLine":80},{"endCharacter":8,"endLine":85,"kind":"region","startCharacter":9,"startLine":84},{"endLine":107,"kind":"region","startCharacter":1,"startLine":97},{"endCharacter":4,"endLine":102,"kind":"region","startCharacter":5,"startLine":101},{"endCharacter":4,"endLine":106,"kind":"region","startCharacter":5,"startLine":105},{"endLine":111,"kind":"region","startCharacter":1,"startLine":110},{"endCharacter":61,"endLine":8,"kind":"comment","startCharacter":2,"startLine":6},{"endCharacter":59,"endLine":21,"kind":"comment","startCharacter":6,"startLine":20},{"endCharacter":48,"endLine":29,"kind":"comment","startCharacter":6,"startLine":27},{"endCharacter":44,"endLine":38,"kind":"comment","startCharacter":6,"startLine":35},{"endCharacter":146,"endLine":53,"kind":"comment","startCharacter":6,"startLine":50},{"endCharacter":44,"endLine":75,"kind":"comment","startCharacter":6,"startLine":70}]}

V[01:47:18.840] <<< {"id":7,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.840] <-- textDocument/semanticTokens/full(7)
V[01:47:18.870] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":1}}

I[01:47:18.870] <-- $/cancelRequest
V[01:47:18.870] <<< {"id":8,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":22,"line":22},"start":{"character":22,"line":22}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.870] <-- textDocument/codeAction(8)
V[01:47:18.899] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":4}}

I[01:47:18.899] <-- $/cancelRequest
V[01:47:18.899] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":5}}

I[01:47:18.899] <-- $/cancelRequest
V[01:47:18.900] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":8}}

I[01:47:18.900] <-- $/cancelRequest
V[01:47:18.901] <<< {"id":9,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":22,"line":22},"start":{"character":22,"line":22}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:18.901] <-- textDocument/codeAction(9)
V[01:47:19.114] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":2}}

I[01:47:19.114] <-- $/cancelRequest
V[01:47:19.126] <<< {"id":10,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:19.126] <-- textDocument/inlayHint(10)
I[01:47:19.388] Built preamble of size 6793536 for file d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1 in 1.30 seconds
I[01:47:19.389] --> workspace/semanticTokens/refresh(0)
I[01:47:19.389] --> textDocument/clangd.fileStatus
V[01:47:19.389] >>> {"id":0,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}

V[01:47:19.389] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Build AST","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

I[01:47:19.389] Indexing c++23 standard library in the context of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
V[01:47:19.612] indexed preamble AST for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1:
  symbol slab: 6359 symbols, 1958744 bytes
  ref slab: 0 symbols, 0 refs, 136 bytes
  relations slab: 312 relations, 5396 bytes
V[01:47:19.619] indexed file AST for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1:
  symbol slab: 10 symbols, 6544 bytes
  ref slab: 19 symbols, 48 refs, 4688 bytes
  relations slab: 0 relations, 24 bytes
V[01:47:19.619] Build dynamic index for main-file symbols with estimated memory usage of 17648 bytes
I[01:47:19.619] --> textDocument/publishDiagnostics
V[01:47:19.619] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","version":1}}

I[01:47:19.619] --> textDocument/inactiveRegions
V[01:47:19.619] >>> {"jsonrpc":"2.0","method":"textDocument/inactiveRegions","params":{"regions":[],"textDocument":{"uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:19.620] --> reply:textDocument/codeAction(1) 1244 ms, error: Task was cancelled.
V[01:47:19.620] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":1,"jsonrpc":"2.0"}

I[01:47:19.621] --> reply:textDocument/documentHighlight(2) 1234 ms, error: Task was cancelled.
V[01:47:19.621] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":2,"jsonrpc":"2.0"}

V[01:47:19.621] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:19.621] --> reply:textDocument/documentLink(3) 1231 ms
V[01:47:19.621] >>> {"id":3,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[01:47:19.621] --> reply:textDocument/inlayHint(4) 1228 ms, error: Task was cancelled.
V[01:47:19.621] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":4,"jsonrpc":"2.0"}

I[01:47:19.621] --> reply:textDocument/documentSymbol(5) 789 ms, error: Task was cancelled.
V[01:47:19.621] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":5,"jsonrpc":"2.0"}

V[01:47:19.621] ASTWorker running SemanticHighlights on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:19.622] --> reply:textDocument/semanticTokens/full(7) 781 ms
V[01:47:19.622] >>> {"id":7,"jsonrpc":"2.0","result":{"data":[9,9,1,22,0,0,10,1,16,32771,0,8,10,16,32787,0,17,1,22,0,3,4,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,3,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,1,1,22,0,2,6,5,8,131075,4,10,8,16,32769,0,11,1,16,32768,4,26,16,4,32771,2,15,13,6,32768,6,19,7,4,32787,0,14,1,16,32768,0,3,4,2,16403,2,15,13,6,32768,0,14,5,4,33552,0,6,4,2,16400,0,6,2,21,8192,7,13,1,22,0,0,1,3,15,131584,0,5,7,17,131584,0,7,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,2,1,16,16387,0,1,1,22,0,1,14,5,8,131072,0,7,7,4,32771,0,8,1,16,16384,0,4,4,2,16387,2,12,7,4,32784,0,8,4,2,16384,2,19,1,21,8192,2,8,13,6,32768,0,14,3,15,131584,0,5,7,3,131584,0,7,1,22,0,0,1,1,16,16384,0,1,1,22,0,0,2,4,2,16384,1,15,1,21,8192,7,19,7,4,32787,0,14,1,16,32768,0,3,3,2,16403,0,11,1,16,32768,0,3,4,2,16403,2,12,1,21,8192,0,1,7,4,32784,0,8,3,2,16400,0,5,2,21,8192,0,3,1,21,8192,0,1,7,4,32784,0,8,4,2,16400,4,22,10,16,32784,2,19,13,6,32768,0,14,2,4,33552,0,3,3,2,16400,0,5,8,14,33024,0,9,4,2,16400,4,19,13,6,32768,0,14,2,4,33552,0,3,3,2,16400,0,5,8,14,33024,0,9,4,2,16400,0,6,2,21,8192,0,3,13,6,32768,0,14,2,4,33552,0,3,4,2,16400,0,6,8,14,33024,0,9,3,2,16400,10,13,1,22,0,0,1,3,15,131584,0,5,7,17,131584,0,7,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,2,1,16,16387,0,1,1,22,0,1,14,5,8,131072,0,7,7,4,32771,0,14,1,16,32768,0,3,3,2,16403,0,5,1,16,16384,0,4,4,2,16387,2,12,1,21,8192,0,1,7,4,32784,0,8,3,2,16400,2,18,3,15,131584,0,5,16,8,131584,2,12,1,21,8192,0,1,7,4,32784,0,8,4,2,16384,2,18,3,15,131584,0,5,16,8,131584,2,8,13,6,32768,0,14,3,2,16400,0,5,6,14,33024,0,7,3,15,131584,0,5,7,3,131584,0,7,1,22,0,0,1,1,16,16384,0,1,1,22,0,0,2,4,2,16384,1,15,1,21,8192,4,10,17,12,32769,0,20,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,3,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,1,1,22,0,1,4,17,12,32768,0,18,13,6,32769,3,4,4,3,131075,2,4,5,8,131072,0,5,1,22,0,0,10,1,22,0,0,2,1,1,16387,1,4,1,1,16384,0,2,7,4,32768,0,11,7,4,32768,0,11,7,4,32768,1,8,1,1,16384,0,2,7,4,32784,2,8,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,4,8,3,15,131584,0,5,4,0,131584,0,5,2,21,8192],"resultId":"1"}}

I[01:47:19.622] --> reply:textDocument/codeAction(8) 752 ms, error: Task was cancelled.
V[01:47:19.622] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":8,"jsonrpc":"2.0"}

V[01:47:19.622] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:19.623] --> reply:textDocument/codeAction(9) 722 ms
V[01:47:19.623] >>> {"id":9,"jsonrpc":"2.0","result":[{"command":{"arguments":[{"file":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","selection":{"end":{"character":22,"line":22},"start":{"character":22,"line":22}},"tweakID":"ExpandDeducedType"}],"command":"clangd.applyTweak","title":"Replace with deduced type"},"kind":"refactor","title":"Replace with deduced type"}]}

V[01:47:19.623] ASTWorker running InlayHints on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:19.624] --> reply:textDocument/inlayHint(10) 497 ms
V[01:47:19.624] >>> {"id":10,"jsonrpc":"2.0","result":[{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":56}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":38,"line":56}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":79}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":83}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":14,"line":99}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":25,"line":99}},{"kind":2,"label":"src:","paddingLeft":false,"paddingRight":true,"position":{"character":36,"line":99}},{"kind":2,"label":"dest:","paddingLeft":false,"paddingRight":true,"position":{"character":39,"line":99}},{"kind":2,"label":"src:","paddingLeft":false,"paddingRight":true,"position":{"character":18,"line":100}},{"kind":2,"label":"dest:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":100}}]}

I[01:47:19.624] --> textDocument/clangd.fileStatus
V[01:47:19.624] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[01:47:19.661] Build dynamic index for header symbols with estimated memory usage of 5348700 bytes
V[01:47:20.385] <<< {"id":0,"jsonrpc":"2.0","result":null}

I[01:47:20.385] <-- reply(0)
[Error - 1:47:20 AM] Request textDocument/codeAction failed.
[object Object]
V[01:47:20.401] <<< {"id":11,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:20.401] <-- textDocument/documentSymbol(11)
V[01:47:20.402] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:20.404] --> reply:textDocument/documentSymbol(11) 2 ms
V[01:47:20.404] >>> {"id":11,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[01:47:20.404] --> textDocument/clangd.fileStatus
V[01:47:20.404] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

[Error - 1:47:20 AM] Request textDocument/documentHighlight failed.
[object Object]
V[01:47:20.406] <<< {"id":12,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:20.406] <-- textDocument/foldingRange(12)
I[01:47:20.407] --> reply:textDocument/foldingRange(12) 0 ms
[Error - 1:47:20 AM] Request textDocument/inlayHint failed.
[object Object]
V[01:47:20.407] >>> {"id":12,"jsonrpc":"2.0","result":[{"endLine":12,"kind":"region","startCharacter":1,"startLine":11},{"endLine":93,"kind":"region","startCharacter":1,"startLine":15},{"endCharacter":4,"endLine":24,"kind":"region","startCharacter":5,"startLine":23},{"endCharacter":4,"endLine":32,"kind":"region","startCharacter":5,"startLine":31},{"endCharacter":4,"endLine":47,"kind":"region","startCharacter":5,"startLine":41},{"endCharacter":8,"endLine":44,"kind":"region","startCharacter":9,"startLine":43},{"endCharacter":4,"endLine":67,"kind":"region","startCharacter":5,"startLine":55},{"endCharacter":8,"endLine":58,"kind":"region","startCharacter":9,"startLine":57},{"endCharacter":8,"endLine":62,"kind":"region","startCharacter":9,"startLine":61},{"endCharacter":8,"endLine":66,"kind":"region","startCharacter":9,"startLine":65},{"endCharacter":4,"endLine":88,"kind":"region","startCharacter":5,"startLine":78},{"endCharacter":8,"endLine":81,"kind":"region","startCharacter":9,"startLine":80},{"endCharacter":8,"endLine":85,"kind":"region","startCharacter":9,"startLine":84},{"endLine":107,"kind":"region","startCharacter":1,"startLine":97},{"endCharacter":4,"endLine":102,"kind":"region","startCharacter":5,"startLine":101},{"endCharacter":4,"endLine":106,"kind":"region","startCharacter":5,"startLine":105},{"endLine":111,"kind":"region","startCharacter":1,"startLine":110},{"endCharacter":61,"endLine":8,"kind":"comment","startCharacter":2,"startLine":6},{"endCharacter":59,"endLine":21,"kind":"comment","startCharacter":6,"startLine":20},{"endCharacter":48,"endLine":29,"kind":"comment","startCharacter":6,"startLine":27},{"endCharacter":44,"endLine":38,"kind":"comment","startCharacter":6,"startLine":35},{"endCharacter":146,"endLine":53,"kind":"comment","startCharacter":6,"startLine":50},{"endCharacter":44,"endLine":75,"kind":"comment","startCharacter":6,"startLine":70}]}

[Error - 1:47:20 AM] Request textDocument/documentSymbol failed.
[object Object]
V[01:47:20.444] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":9}}

I[01:47:20.444] <-- $/cancelRequest
[Error - 1:47:20 AM] Request textDocument/codeAction failed.
[object Object]
V[01:47:20.452] <<< {"id":13,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":22,"line":22},"start":{"character":22,"line":22}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:20.452] <-- textDocument/codeAction(13)
V[01:47:20.452] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:20.452] --> reply:textDocument/codeAction(13) 0 ms
V[01:47:20.452] >>> {"id":13,"jsonrpc":"2.0","result":[{"command":{"arguments":[{"file":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","selection":{"end":{"character":22,"line":22},"start":{"character":22,"line":22}},"tweakID":"ExpandDeducedType"}],"command":"clangd.applyTweak","title":"Replace with deduced type"},"kind":"refactor","title":"Replace with deduced type"}]}

I[01:47:20.452] --> textDocument/clangd.fileStatus
V[01:47:20.452] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[01:47:20.464] <<< {"id":14,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:20.464] <-- textDocument/documentSymbol(14)
V[01:47:20.464] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:20.465] --> reply:textDocument/documentSymbol(14) 0 ms
V[01:47:20.465] >>> {"id":14,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[01:47:20.465] --> textDocument/clangd.fileStatus
V[01:47:20.465] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[01:47:20.667] <<< {"id":15,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:20.667] <-- textDocument/documentLink(15)
V[01:47:20.667] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:20.667] --> reply:textDocument/documentLink(15) 0 ms
V[01:47:20.667] >>> {"id":15,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[01:47:20.668] --> textDocument/clangd.fileStatus
V[01:47:20.668] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[01:47:21.114] <<< {"id":16,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"1","textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[01:47:21.114] <-- textDocument/semanticTokens/full/delta(16)
V[01:47:21.114] ASTWorker running SemanticHighlights on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[01:47:21.114] --> reply:textDocument/semanticTokens/full/delta(16) 0 ms
V[01:47:21.114] >>> {"id":16,"jsonrpc":"2.0","result":{"edits":[],"resultId":"2"}}

I[01:47:21.114] --> textDocument/clangd.fileStatus
V[01:47:21.114] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[01:47:22.241] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\stacktrace:644:3:no matching function for call to 'operator delete'
V[01:47:22.242] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:144:6:candidate function not viable: no known conversion from 'unsigned long long' to 'const std::nothrow_t' for 2nd argument
V[01:47:22.242] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:153:6:candidate function not viable: no known conversion from 'unsigned long long' to 'std::align_val_t' for 2nd argument
V[01:47:22.242] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:180:13:candidate function not viable: no known conversion from 'unsigned long long' to 'void *' for 2nd argument
V[01:47:22.242] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:130:6:candidate function not viable: requires 1 argument, but 2 were provided
V[01:47:22.242] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:155:6:candidate function not viable: requires 3 arguments, but 2 were provided
V[01:47:22.992] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_path.h:613:31:invalid use of incomplete type 'filesystem_error'
V[01:47:22.992] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_fwd.h:74:9:forward declaration of 'std::experimental::filesystem::filesystem_error'
V[01:47:22.993] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_path.h:613:7:cannot throw object of incomplete type 'filesystem_error'
V[01:47:22.993] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_fwd.h:74:9:forward declaration of 'std::experimental::filesystem::filesystem_error'
I[01:47:23.529] Indexed c++23 standard library (incomplete due to errors): 15812 symbols, 803 filtered
V[01:47:23.594] Build dynamic index for header symbols with estimated memory usage of 9298148 bytes

System information Clangd version (from the log, or clangd --version): 17.0.3 clangd extension version: 0.1.28 Operating system: Windows 10

HighCommander4 commented 3 months ago

Edit 2: It seems like DeducedTypes inlay hints also don't show. For example: 圖片 Explicitly adding DeducedTypes: true didn't work.

Clangd does not produce a DeducedTypes hint for this code. They are only produced for auto and decltype().

HighCommander4 commented 3 months ago

Can you indicate where in the code file shown in the log you are expecting to see an inlay hint but aren't?

palapapa commented 3 months ago

I am seeing inlay hints after restarting VSCode. The problem now is that I have to write Enabled: true even though that's stated as default in the docs(and maybe the problem is that reloading the window doesn't work).

Edit: Now restarting VSCode doesn't work anymore? It is really inconsistent. To answer your question, when it doesn't work, no inlay hints are shown anywhere.

HighCommander4 commented 3 months ago

Can you share a log with Enabled: false?

palapapa commented 3 months ago
I[04:01:59.214] clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57)
I[04:01:59.215] Features: windows+grpc
I[04:01:59.215] PID: 11432
I[04:01:59.215] Working directory: d:\Desktop\C++\College\OopHw1
I[04:01:59.215] argv[0]: c:\Users\User\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\17.0.3\clangd_17.0.3\bin\clangd.exe
I[04:01:59.215] argv[1]: --log=verbose
I[04:01:59.215] argv[2]: --query-driver=**/*
V[04:01:59.221] User config file is C:\Users\User\AppData\Local\clangd\config.yaml
I[04:01:59.221] Starting LSP over stdin/stdout
V[04:01:59.221] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"],"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]}},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}},"textDocument":{"callHierarchy":{"dynamicRegistration":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"dynamicRegistration":true,"honorsChangeAnnotations":false,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]}},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"insertReplaceSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true,"preselectSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode"]},"contextSupport":true,"dynamicRegistration":true,"editsNearCursor":true,"insertTextMode":2},"declaration":{"dynamicRegistration":true,"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"documentSymbol":{"dynamicRegistration":true,"hierarchicalDocumentSymbolSupport":true,"labelSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"foldingRange":{"dynamicRegistration":true,"foldingRange":{"collapsedText":false},"foldingRangeKind":{"valueSet":["comment","imports","region"]},"lineFoldingOnly":true,"rangeLimit":5000},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"inactiveRegionsCapabilities":{"inactiveRegions":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"inlineValue":{"dynamicRegistration":true},"linkedEditingRange":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"publishDiagnostics":{"codeDescriptionSupport":true,"dataSupport":true,"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":false},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"honorsChangeAnnotations":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1},"selectionRange":{"dynamicRegistration":true},"semanticTokens":{"augmentsSyntaxTokens":true,"dynamicRegistration":true,"formats":["relative"],"multilineTokenSupport":false,"overlappingTokenSupport":false,"requests":{"full":{"delta":true},"range":true},"serverCancelSupport":true,"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]},"signatureHelp":{"contextSupport":true,"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"typeHierarchy":{"dynamicRegistration":true}},"window":{"showDocument":{"support":true},"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"workDoneProgress":true},"workspace":{"applyEdit":true,"codeLens":{"refreshSupport":true},"configuration":true,"diagnostics":{"refreshSupport":true},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"executeCommand":{"dynamicRegistration":true},"fileOperations":{"didCreate":true,"didDelete":true,"didRename":true,"dynamicRegistration":true,"willCreate":true,"willDelete":true,"willRename":true},"inlayHint":{"refreshSupport":true},"inlineValue":{"refreshSupport":true},"semanticTokens":{"refreshSupport":true},"symbol":{"dynamicRegistration":true,"resolveSupport":{"properties":["location.range"]},"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"workspaceEdit":{"changeAnnotationSupport":{"groupsOnLabel":true},"documentChanges":true,"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"Visual Studio Code","version":"1.87.2"},"initializationOptions":{"clangdFileStatus":true,"fallbackFlags":[]},"locale":"en","processId":26152,"rootPath":"d:\\Desktop\\C++\\College\\OopHw1","rootUri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1","trace":"off","workspaceFolders":[{"name":"OopHw1","uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1"}]}}

I[04:01:59.221] <-- initialize(0)
I[04:01:59.240] --> reply:initialize(0) 18 ms
V[04:01:59.240] >>> {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"clangdInlayHintsProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"foldingRangeProvider":true,"hoverProvider":true,"implementationProvider":true,"inactiveRegionsProvider":true,"inlayHintProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","definition","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","usedAsMutablePointer","constructorOrDestructor","userDefined","functionScope","classScope","fileScope","globalScope"],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","modifier","operator","bracket","label","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"standardTypeHierarchyProvider":true,"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeDefinitionProvider":true,"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57) windows+grpc x86_64-pc-windows-msvc"}}}

V[04:01:59.242] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}

I[04:01:59.242] <-- initialized
V[04:01:59.252] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"#include <iostream>\r\n#include <stdexcept>\r\n#include <unordered_map>\r\n#include <unordered_set>\r\n#include <utility>\r\n\r\n/// @brief A graph.\r\n/// @tparam T The type used as the ID of each node in the graph.\r\n/// @tparam IsDirected Whether the graph is a directed graph.\r\ntemplate <typename T, bool IsDirected = true>\r\nrequires requires\r\n{\r\n    std::unordered_map<T, std::unordered_set<T>>{};\r\n}\r\nclass Graph\r\n{\r\npublic:\r\n    /// @brief The type used as the ID of each node in the graph. It is the same as @p T.\r\n    using NodeType = T;\r\n\r\n    /// @brief Gets the underlying representation of the graph.\r\n    /// @return The underlying representation of the graph.\r\n    constexpr const auto &getAdjacencyList()\r\n    {\r\n        return adjacencyList;\r\n    }\r\n\r\n    /// @brief Checks if a node exists in the graph.\r\n    /// @param node The node to check.\r\n    /// @return Whether @p node is in the graph.\r\n    constexpr bool hasNode(const T &node) const\r\n    {\r\n        return adjacencyList.count(node) == 1;\r\n    }\r\n\r\n    /// @brief Adds a node to the graph. If the node already exists, does nothing.\r\n    /// @tparam U The same type as @p T. It is used to make forwarding possible here.\r\n    /// @param node The node to add.\r\n    /// @return This instance of @ref Graph.\r\n    template <std::same_as<T> U>\r\n    constexpr Graph &addNode(U &&node)\r\n    {\r\n        if (hasNode(node))\r\n        {\r\n            return *this;\r\n        }\r\n        adjacencyList[std::forward<U>(node)];\r\n        return *this;\r\n    }\r\n\r\n    /// @brief Checks if a edge exists in the graph. The result depends on whether the graph is directed or not.\r\n    /// @param src The source node. This is interchangeable with @p dest if the graph is not directed.\r\n    /// @param dest The destination node. This is interchangeable with @p src if the graph is not directed.\r\n    /// @return Whether an edge from @p src to @p dest exists. If the graph is not directed, also checks if an edge from @p dest to @p src exists.\r\n    constexpr bool hasEdge(const T &src, const T &dest) const\r\n    {\r\n        if (!hasNode(src) || !hasNode(dest))\r\n        {\r\n            return false;\r\n        }\r\n        if constexpr (IsDirected)\r\n        {\r\n            return adjacencyList.at(src).contains(dest);\r\n        }\r\n        else\r\n        {\r\n            return adjacencyList.at(src).contains(dest) || adjacencyList.at(dest).contains(src);\r\n        }\r\n    }\r\n\r\n    /// @brief Adds an edge to the graph. If the edge already exists, does nothing.\r\n    /// @tparam U The same type as @p T. It is used to make forwarding possible here.\r\n    /// @param src The source node. This is interchangeable with @p dest if the graph is not directed.\r\n    /// @param dest The destination node. This is interchangeable with @p src if the graph is not directed.\r\n    /// @exception std::invalid_argument When either @p src or @p dest is not in the graph.\r\n    /// @return This instance of @ref Graph.\r\n    template <std::same_as<T> U>\r\n    constexpr Graph &addEdge(const T &src, U &&dest)\r\n    {\r\n        if (!hasNode(src))\r\n        {\r\n            throw std::invalid_argument(\"Node src doesn't exist in the graph.\");\r\n        }\r\n        if (!hasNode(dest))\r\n        {\r\n            throw std::invalid_argument(\"Node dest doesn't exist in the graph.\");\r\n        }\r\n        adjacencyList[src].insert(std::forward<U>(dest));\r\n        return *this;\r\n    }\r\n\r\nprivate:\r\n    using AdjacencyListType = std::unordered_map<T, std::unordered_set<T>>;\r\n    AdjacencyListType adjacencyList;\r\n};\r\n\r\nint main() try\r\n{\r\n    Graph<int, true> g{};\r\n    g.addNode(1).addNode(2).addEdge(1, 2);\r\n    if (g.hasEdge(2, 1))\r\n    {\r\n        std::cout << \"Has edge\\n\";\r\n    }\r\n    else\r\n    {\r\n        std::cout << \"No edge\\n\";\r\n    }\r\n}\r\ncatch (...)\r\n{\r\n    (void)0;\r\n}\r\n","uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","version":1}}}

I[04:01:59.252] <-- textDocument/didOpen
E[04:01:59.274] System include extraction: driver clang not found in PATH
V[04:01:59.275] config note at C:\Users\User\AppData\Local\clangd\config.yaml:1:0: Parsing config fragment
V[04:01:59.276] config note at C:\Users\User\AppData\Local\clangd\config.yaml:38:0: Parsing config fragment
V[04:01:59.276] config note at C:\Users\User\AppData\Local\clangd\config.yaml:47:0: Parsing config fragment
V[04:01:59.276] config note at C:\Users\User\AppData\Local\clangd\config.yaml:1:0: Parsed 3 fragments from file
V[04:01:59.276] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:1 -> 0x000001FDE4517DE0 (trusted=true)
V[04:01:59.276] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:38 -> 0x000001FDE4517390 (trusted=true)
V[04:01:59.276] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:47 -> 0x000001FDE4517E80 (trusted=true)
I[04:01:59.276] --> textDocument/publishDiagnostics
V[04:01:59.276] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///C:/Users/User/AppData/Local/clangd/config.yaml"}}

I[04:01:59.278] Failed to find compilation database for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
V[04:01:59.281] System include extraction: driver g++ expanded to C:\mingw64\bin\g++.exe
V[04:01:59.366] System include extraction: target extracted: "x86_64-w64-mingw32"
V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0

V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32

V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward

V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include

V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include

V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed

V[04:01:59.366] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include

I[04:01:59.366] System includes extractor: successfully executed C:\mingw64\bin\g++.exe
    got includes: "C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include"
    got target: "x86_64-w64-mingw32"
I[04:01:59.367] ASTWorker building file d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1 with command clangd fallback
[d:\Desktop\C++\College\OopHw1]
"C:\\mingw64\\bin\\g++" --driver-mode=g++ -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c++23 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include --target=x86_64-w64-mingw32 "-resource-dir=c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17" -- "d:\\Desktop\\C++\\College\\OopHw1\\OOP_HW1_411410040.cpp"
V[04:01:59.370] Driver produced command: cc1 -cc1 -triple x86_64-w64-windows-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name OOP_HW1_411410040.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mms-bitfields -funwind-tables=2 -fno-use-init-array -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb "-fcoverage-compilation-dir=d:\\Desktop\\C++\\College\\OopHw1" -resource-dir "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17" -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\backward" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0\\backward" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13\\backward" -internal-isystem "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17\\include" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\usr/include" -internal-isystem "C:\\mingw64\\include" -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c++23 -fdeprecated-macro "-fdebug-compilation-dir=d:\\Desktop\\C++\\College\\OopHw1" -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fno-implicit-modules -fcxx-exceptions -fexceptions -exception-model=seh -no-round-trip-args -faddrsig -x c++ "d:\\Desktop\\C++\\College\\OopHw1\\OOP_HW1_411410040.cpp"
I[04:01:59.371] --> textDocument/clangd.fileStatus
V[04:01:59.371] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Update","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:01:59.371] Building first preamble for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1
I[04:02:00.676] Built preamble of size 6793536 for file d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1 in 1.30 seconds
I[04:02:00.677] --> workspace/semanticTokens/refresh(0)
V[04:02:00.677] >>> {"id":0,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}

I[04:02:00.677] Indexing c++23 standard library in the context of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
V[04:02:01.070] indexed preamble AST for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1:
  symbol slab: 6359 symbols, 1958744 bytes
  ref slab: 0 symbols, 0 refs, 136 bytes
  relations slab: 312 relations, 5396 bytes
V[04:02:01.192] indexed file AST for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1:
  symbol slab: 10 symbols, 6544 bytes
  ref slab: 19 symbols, 48 refs, 4688 bytes
  relations slab: 0 relations, 24 bytes
V[04:02:01.192] Build dynamic index for main-file symbols with estimated memory usage of 17648 bytes
I[04:02:01.192] --> textDocument/publishDiagnostics
V[04:02:01.192] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","version":1}}

I[04:02:01.192] --> textDocument/inactiveRegions
V[04:02:01.192] >>> {"jsonrpc":"2.0","method":"textDocument/inactiveRegions","params":{"regions":[],"textDocument":{"uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:01.193] --> textDocument/clangd.fileStatus
V[04:02:01.193] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:01.218] Build dynamic index for header symbols with estimated memory usage of 5340732 bytes
V[04:02:04.818] <<< {"id":1,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:04.818] <-- textDocument/documentLink(1)
V[04:02:04.822] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:04.823] --> reply:textDocument/documentLink(1) 4 ms
V[04:02:04.823] >>> {"id":1,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[04:02:04.823] --> textDocument/clangd.fileStatus
V[04:02:04.823] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.295] <<< {"id":2,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.295] <-- textDocument/inlayHint(2)
V[04:02:06.295] ASTWorker running InlayHints on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.295] --> reply:textDocument/inlayHint(2) 0 ms
V[04:02:06.295] >>> {"id":2,"jsonrpc":"2.0","result":[]}

I[04:02:06.295] --> textDocument/clangd.fileStatus
V[04:02:06.295] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.446] <<< {"id":3,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.446] <-- textDocument/documentSymbol(3)
V[04:02:06.446] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.448] --> reply:textDocument/documentSymbol(3) 1 ms
V[04:02:06.448] >>> {"id":3,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[04:02:06.448] --> textDocument/clangd.fileStatus
V[04:02:06.448] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.493] <<< {"id":0,"jsonrpc":"2.0","result":null}

I[04:02:06.493] <-- reply(0)
V[04:02:06.505] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[04:02:06.505] <-- $/setTrace
I[04:02:06.505] unhandled notification $/setTrace
V[04:02:06.549] <<< {"id":4,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.549] <-- textDocument/codeAction(4)
V[04:02:06.549] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.549] --> reply:textDocument/codeAction(4) 0 ms
V[04:02:06.549] >>> {"id":4,"jsonrpc":"2.0","result":[]}

I[04:02:06.549] --> textDocument/clangd.fileStatus
V[04:02:06.549] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.596] <<< {"id":5,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.596] <-- textDocument/semanticTokens/full(5)
V[04:02:06.596] ASTWorker running SemanticHighlights on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.597] --> reply:textDocument/semanticTokens/full(5) 1 ms
V[04:02:06.597] >>> {"id":5,"jsonrpc":"2.0","result":{"data":[9,9,1,22,0,0,10,1,16,32771,0,8,10,16,32787,0,17,1,22,0,3,4,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,3,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,1,1,22,0,2,6,5,8,131075,4,10,8,16,32769,0,11,1,16,32768,4,26,16,4,32771,2,15,13,6,32768,6,19,7,4,32787,0,14,1,16,32768,0,3,4,2,16403,2,15,13,6,32768,0,14,5,4,33552,0,6,4,2,16400,0,6,2,21,8192,7,13,1,22,0,0,1,3,15,131584,0,5,7,17,131584,0,7,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,2,1,16,16387,0,1,1,22,0,1,14,5,8,131072,0,7,7,4,32771,0,8,1,16,16384,0,4,4,2,16387,2,12,7,4,32784,0,8,4,2,16384,2,19,1,21,8192,2,8,13,6,32768,0,14,3,15,131584,0,5,7,3,131584,0,7,1,22,0,0,1,1,16,16384,0,1,1,22,0,0,2,4,2,16384,1,15,1,21,8192,7,19,7,4,32787,0,14,1,16,32768,0,3,3,2,16403,0,11,1,16,32768,0,3,4,2,16403,2,12,1,21,8192,0,1,7,4,32784,0,8,3,2,16400,0,5,2,21,8192,0,3,1,21,8192,0,1,7,4,32784,0,8,4,2,16400,4,22,10,16,32784,2,19,13,6,32768,0,14,2,4,33552,0,3,3,2,16400,0,5,8,14,33024,0,9,4,2,16400,4,19,13,6,32768,0,14,2,4,33552,0,3,3,2,16400,0,5,8,14,33024,0,9,4,2,16400,0,6,2,21,8192,0,3,13,6,32768,0,14,2,4,33552,0,3,4,2,16400,0,6,8,14,33024,0,9,3,2,16400,10,13,1,22,0,0,1,3,15,131584,0,5,7,17,131584,0,7,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,2,1,16,16387,0,1,1,22,0,1,14,5,8,131072,0,7,7,4,32771,0,14,1,16,32768,0,3,3,2,16403,0,5,1,16,16384,0,4,4,2,16387,2,12,1,21,8192,0,1,7,4,32784,0,8,3,2,16400,2,18,3,15,131584,0,5,16,8,131584,2,12,1,21,8192,0,1,7,4,32784,0,8,4,2,16384,2,18,3,15,131584,0,5,16,8,131584,2,8,13,6,32768,0,14,3,2,16400,0,5,6,14,33024,0,7,3,15,131584,0,5,7,3,131584,0,7,1,22,0,0,1,1,16,16384,0,1,1,22,0,0,2,4,2,16384,1,15,1,21,8192,4,10,17,12,32769,0,20,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,3,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,1,1,22,0,1,4,17,12,32768,0,18,13,6,32769,3,4,4,3,131075,2,4,5,8,131072,0,5,1,22,0,0,10,1,22,0,0,2,1,1,16387,1,4,1,1,16384,0,2,7,4,32768,0,11,7,4,32768,0,11,7,4,32768,1,8,1,1,16384,0,2,7,4,32784,2,8,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,4,8,3,15,131584,0,5,4,0,131584,0,5,2,21,8192],"resultId":"1"}}

I[04:02:06.597] --> textDocument/clangd.fileStatus
V[04:02:06.598] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.610] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[04:02:06.610] <-- $/setTrace
I[04:02:06.610] unhandled notification $/setTrace
V[04:02:06.612] <<< {"id":6,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.612] <-- textDocument/foldingRange(6)
I[04:02:06.613] --> reply:textDocument/foldingRange(6) 0 ms
V[04:02:06.613] >>> {"id":6,"jsonrpc":"2.0","result":[{"endLine":12,"kind":"region","startCharacter":1,"startLine":11},{"endLine":93,"kind":"region","startCharacter":1,"startLine":15},{"endCharacter":4,"endLine":24,"kind":"region","startCharacter":5,"startLine":23},{"endCharacter":4,"endLine":32,"kind":"region","startCharacter":5,"startLine":31},{"endCharacter":4,"endLine":47,"kind":"region","startCharacter":5,"startLine":41},{"endCharacter":8,"endLine":44,"kind":"region","startCharacter":9,"startLine":43},{"endCharacter":4,"endLine":67,"kind":"region","startCharacter":5,"startLine":55},{"endCharacter":8,"endLine":58,"kind":"region","startCharacter":9,"startLine":57},{"endCharacter":8,"endLine":62,"kind":"region","startCharacter":9,"startLine":61},{"endCharacter":8,"endLine":66,"kind":"region","startCharacter":9,"startLine":65},{"endCharacter":4,"endLine":88,"kind":"region","startCharacter":5,"startLine":78},{"endCharacter":8,"endLine":81,"kind":"region","startCharacter":9,"startLine":80},{"endCharacter":8,"endLine":85,"kind":"region","startCharacter":9,"startLine":84},{"endLine":107,"kind":"region","startCharacter":1,"startLine":97},{"endCharacter":4,"endLine":102,"kind":"region","startCharacter":5,"startLine":101},{"endCharacter":4,"endLine":106,"kind":"region","startCharacter":5,"startLine":105},{"endLine":111,"kind":"region","startCharacter":1,"startLine":110},{"endCharacter":61,"endLine":8,"kind":"comment","startCharacter":2,"startLine":6},{"endCharacter":59,"endLine":21,"kind":"comment","startCharacter":6,"startLine":20},{"endCharacter":48,"endLine":29,"kind":"comment","startCharacter":6,"startLine":27},{"endCharacter":44,"endLine":38,"kind":"comment","startCharacter":6,"startLine":35},{"endCharacter":146,"endLine":53,"kind":"comment","startCharacter":6,"startLine":50},{"endCharacter":44,"endLine":75,"kind":"comment","startCharacter":6,"startLine":70}]}

V[04:02:06.724] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":4}}

I[04:02:06.724] <-- $/cancelRequest
V[04:02:06.761] <<< {"id":7,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.761] <-- textDocument/codeAction(7)
V[04:02:06.762] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.762] --> reply:textDocument/codeAction(7) 0 ms
V[04:02:06.762] >>> {"id":7,"jsonrpc":"2.0","result":[]}

I[04:02:06.762] --> textDocument/clangd.fileStatus
V[04:02:06.762] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.763] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":7}}

I[04:02:06.763] <-- $/cancelRequest
V[04:02:06.764] <<< {"id":8,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.764] <-- textDocument/codeAction(8)
V[04:02:06.764] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.764] --> reply:textDocument/codeAction(8) 0 ms
V[04:02:06.764] >>> {"id":8,"jsonrpc":"2.0","result":[]}

I[04:02:06.764] --> textDocument/clangd.fileStatus
V[04:02:06.764] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.765] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[04:02:06.765] <-- $/setTrace
I[04:02:06.765] unhandled notification $/setTrace
V[04:02:06.766] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[04:02:06.766] <-- $/setTrace
I[04:02:06.766] unhandled notification $/setTrace
V[04:02:06.767] <<< {"jsonrpc":"2.0","method":"$/setTrace","params":{"value":"off"}}

I[04:02:06.767] <-- $/setTrace
I[04:02:06.767] unhandled notification $/setTrace
V[04:02:06.767] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":8}}

I[04:02:06.767] <-- $/cancelRequest
V[04:02:06.768] <<< {"id":9,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.768] <-- textDocument/codeAction(9)
V[04:02:06.768] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.768] --> reply:textDocument/codeAction(9) 0 ms
V[04:02:06.768] >>> {"id":9,"jsonrpc":"2.0","result":[]}

I[04:02:06.768] --> textDocument/clangd.fileStatus
V[04:02:06.768] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.769] <<< {"id":10,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.769] <-- textDocument/documentSymbol(10)
V[04:02:06.769] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.770] --> reply:textDocument/documentSymbol(10) 0 ms
V[04:02:06.770] >>> {"id":10,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

V[04:02:06.770] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":3}}

I[04:02:06.770] <-- $/cancelRequest
I[04:02:06.770] --> textDocument/clangd.fileStatus
V[04:02:06.770] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.771] <<< {"id":11,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.771] <-- textDocument/documentSymbol(11)
V[04:02:06.771] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.772] --> reply:textDocument/documentSymbol(11) 0 ms
V[04:02:06.772] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":9}}

I[04:02:06.772] <-- $/cancelRequest
V[04:02:06.772] >>> {"id":11,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[04:02:06.772] --> textDocument/clangd.fileStatus
V[04:02:06.772] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.773] <<< {"id":12,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.773] <-- textDocument/codeAction(12)
V[04:02:06.773] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.773] --> reply:textDocument/codeAction(12) 0 ms
V[04:02:06.773] >>> {"id":12,"jsonrpc":"2.0","result":[]}

I[04:02:06.773] --> textDocument/clangd.fileStatus
V[04:02:06.773] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:06.776] <<< {"id":13,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:06.776] <-- textDocument/documentLink(13)
V[04:02:06.776] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:06.776] --> reply:textDocument/documentLink(13) 0 ms
V[04:02:06.776] >>> {"id":13,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[04:02:06.776] --> textDocument/clangd.fileStatus
V[04:02:06.776] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:07.354] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\stacktrace:644:3:no matching function for call to 'operator delete'
V[04:02:07.354] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:144:6:candidate function not viable: no known conversion from 'unsigned long long' to 'const std::nothrow_t' for 2nd argument
V[04:02:07.354] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:153:6:candidate function not viable: no known conversion from 'unsigned long long' to 'std::align_val_t' for 2nd argument
V[04:02:07.354] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:180:13:candidate function not viable: no known conversion from 'unsigned long long' to 'void *' for 2nd argument
V[04:02:07.354] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:130:6:candidate function not viable: requires 1 argument, but 2 were provided
V[04:02:07.354] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:155:6:candidate function not viable: requires 3 arguments, but 2 were provided
V[04:02:07.532] <<< {"id":14,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:07.532] <-- textDocument/inlayHint(14)
V[04:02:07.532] ASTWorker running InlayHints on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:07.532] --> reply:textDocument/inlayHint(14) 0 ms
V[04:02:07.532] >>> {"id":14,"jsonrpc":"2.0","result":[]}

I[04:02:07.532] --> textDocument/clangd.fileStatus
V[04:02:07.532] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.335] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_path.h:613:31:invalid use of incomplete type 'filesystem_error'
V[04:02:08.335] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_fwd.h:74:9:forward declaration of 'std::experimental::filesystem::filesystem_error'
V[04:02:08.335] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_path.h:613:7:cannot throw object of incomplete type 'filesystem_error'
V[04:02:08.335] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_fwd.h:74:9:forward declaration of 'std::experimental::filesystem::filesystem_error'
V[04:02:08.397] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":11}}

I[04:02:08.397] <-- $/cancelRequest
V[04:02:08.440] <<< {"id":15,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.440] <-- textDocument/documentSymbol(15)
V[04:02:08.440] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.441] --> reply:textDocument/documentSymbol(15) 0 ms
V[04:02:08.441] >>> {"id":15,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[04:02:08.441] --> textDocument/clangd.fileStatus
V[04:02:08.441] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.467] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":10}}

I[04:02:08.467] <-- $/cancelRequest
V[04:02:08.502] <<< {"id":16,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.502] <-- textDocument/documentSymbol(16)
V[04:02:08.502] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.503] --> reply:textDocument/documentSymbol(16) 0 ms
V[04:02:08.503] >>> {"id":16,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[04:02:08.503] --> textDocument/clangd.fileStatus
V[04:02:08.503] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.514] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":12}}

I[04:02:08.514] <-- $/cancelRequest
V[04:02:08.531] <<< {"id":17,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.531] <-- textDocument/codeAction(17)
V[04:02:08.531] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.531] --> reply:textDocument/codeAction(17) 0 ms
V[04:02:08.531] >>> {"id":17,"jsonrpc":"2.0","result":[]}

I[04:02:08.531] --> textDocument/clangd.fileStatus
V[04:02:08.531] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.537] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":15}}

I[04:02:08.537] <-- $/cancelRequest
V[04:02:08.539] <<< {"id":18,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.539] <-- textDocument/documentSymbol(18)
V[04:02:08.540] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.540] --> reply:textDocument/documentSymbol(18) 0 ms
V[04:02:08.540] >>> {"id":18,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[04:02:08.540] --> textDocument/clangd.fileStatus
V[04:02:08.540] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.543] <<< {"id":19,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.543] <-- textDocument/foldingRange(19)
I[04:02:08.543] --> reply:textDocument/foldingRange(19) 0 ms
V[04:02:08.543] >>> {"id":19,"jsonrpc":"2.0","result":[{"endLine":12,"kind":"region","startCharacter":1,"startLine":11},{"endLine":93,"kind":"region","startCharacter":1,"startLine":15},{"endCharacter":4,"endLine":24,"kind":"region","startCharacter":5,"startLine":23},{"endCharacter":4,"endLine":32,"kind":"region","startCharacter":5,"startLine":31},{"endCharacter":4,"endLine":47,"kind":"region","startCharacter":5,"startLine":41},{"endCharacter":8,"endLine":44,"kind":"region","startCharacter":9,"startLine":43},{"endCharacter":4,"endLine":67,"kind":"region","startCharacter":5,"startLine":55},{"endCharacter":8,"endLine":58,"kind":"region","startCharacter":9,"startLine":57},{"endCharacter":8,"endLine":62,"kind":"region","startCharacter":9,"startLine":61},{"endCharacter":8,"endLine":66,"kind":"region","startCharacter":9,"startLine":65},{"endCharacter":4,"endLine":88,"kind":"region","startCharacter":5,"startLine":78},{"endCharacter":8,"endLine":81,"kind":"region","startCharacter":9,"startLine":80},{"endCharacter":8,"endLine":85,"kind":"region","startCharacter":9,"startLine":84},{"endLine":107,"kind":"region","startCharacter":1,"startLine":97},{"endCharacter":4,"endLine":102,"kind":"region","startCharacter":5,"startLine":101},{"endCharacter":4,"endLine":106,"kind":"region","startCharacter":5,"startLine":105},{"endLine":111,"kind":"region","startCharacter":1,"startLine":110},{"endCharacter":61,"endLine":8,"kind":"comment","startCharacter":2,"startLine":6},{"endCharacter":59,"endLine":21,"kind":"comment","startCharacter":6,"startLine":20},{"endCharacter":48,"endLine":29,"kind":"comment","startCharacter":6,"startLine":27},{"endCharacter":44,"endLine":38,"kind":"comment","startCharacter":6,"startLine":35},{"endCharacter":146,"endLine":53,"kind":"comment","startCharacter":6,"startLine":50},{"endCharacter":44,"endLine":75,"kind":"comment","startCharacter":6,"startLine":70}]}

V[04:02:08.545] <<< {"id":20,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"1","textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.545] <-- textDocument/semanticTokens/full/delta(20)
V[04:02:08.545] ASTWorker running SemanticHighlights on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.546] --> reply:textDocument/semanticTokens/full/delta(20) 0 ms
V[04:02:08.546] >>> {"id":20,"jsonrpc":"2.0","result":{"edits":[],"resultId":"2"}}

I[04:02:08.546] --> textDocument/clangd.fileStatus
V[04:02:08.546] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.551] <<< {"id":21,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.551] <-- textDocument/documentLink(21)
V[04:02:08.551] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.551] --> reply:textDocument/documentLink(21) 0 ms
V[04:02:08.551] >>> {"id":21,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[04:02:08.551] --> textDocument/clangd.fileStatus
V[04:02:08.551] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.552] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":21}}

I[04:02:08.552] <-- $/cancelRequest
V[04:02:08.554] <<< {"id":22,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.554] <-- textDocument/documentLink(22)
V[04:02:08.554] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.554] --> reply:textDocument/documentLink(22) 0 ms
V[04:02:08.554] >>> {"id":22,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[04:02:08.554] --> textDocument/clangd.fileStatus
V[04:02:08.554] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.735] <<< {"id":23,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.735] <-- textDocument/documentSymbol(23)
V[04:02:08.735] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.735] --> reply:textDocument/documentSymbol(23) 0 ms
V[04:02:08.735] >>> {"id":23,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

V[04:02:08.735] <<< {"id":24,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.735] <-- textDocument/codeAction(24)
I[04:02:08.735] --> textDocument/clangd.fileStatus
V[04:02:08.735] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.735] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.735] --> reply:textDocument/codeAction(24) 0 ms
V[04:02:08.736] >>> {"id":24,"jsonrpc":"2.0","result":[]}

I[04:02:08.736] --> textDocument/clangd.fileStatus
V[04:02:08.736] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:08.737] <<< {"id":25,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:08.737] <-- textDocument/documentLink(25)
V[04:02:08.737] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:08.737] --> reply:textDocument/documentLink(25) 0 ms
V[04:02:08.737] >>> {"id":25,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[04:02:08.737] --> textDocument/clangd.fileStatus
V[04:02:08.737] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

I[04:02:08.953] Indexed c++23 standard library (incomplete due to errors): 15812 symbols, 803 filtered
V[04:02:09.023] Build dynamic index for header symbols with estimated memory usage of 9293924 bytes
V[04:02:09.024] <<< {"id":26,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:09.024] <-- textDocument/documentSymbol(26)
V[04:02:09.024] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:02:09.025] --> reply:textDocument/documentSymbol(26) 0 ms
V[04:02:09.025] >>> {"id":26,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

I[04:02:09.025] --> textDocument/clangd.fileStatus
V[04:02:09.025] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:02:09.028] <<< {"id":27,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:02:09.028] <-- textDocument/foldingRange(27)
I[04:02:09.029] --> reply:textDocument/foldingRange(27) 0 ms
V[04:02:09.029] >>> {"id":27,"jsonrpc":"2.0","result":[{"endLine":12,"kind":"region","startCharacter":1,"startLine":11},{"endLine":93,"kind":"region","startCharacter":1,"startLine":15},{"endCharacter":4,"endLine":24,"kind":"region","startCharacter":5,"startLine":23},{"endCharacter":4,"endLine":32,"kind":"region","startCharacter":5,"startLine":31},{"endCharacter":4,"endLine":47,"kind":"region","startCharacter":5,"startLine":41},{"endCharacter":8,"endLine":44,"kind":"region","startCharacter":9,"startLine":43},{"endCharacter":4,"endLine":67,"kind":"region","startCharacter":5,"startLine":55},{"endCharacter":8,"endLine":58,"kind":"region","startCharacter":9,"startLine":57},{"endCharacter":8,"endLine":62,"kind":"region","startCharacter":9,"startLine":61},{"endCharacter":8,"endLine":66,"kind":"region","startCharacter":9,"startLine":65},{"endCharacter":4,"endLine":88,"kind":"region","startCharacter":5,"startLine":78},{"endCharacter":8,"endLine":81,"kind":"region","startCharacter":9,"startLine":80},{"endCharacter":8,"endLine":85,"kind":"region","startCharacter":9,"startLine":84},{"endLine":107,"kind":"region","startCharacter":1,"startLine":97},{"endCharacter":4,"endLine":102,"kind":"region","startCharacter":5,"startLine":101},{"endCharacter":4,"endLine":106,"kind":"region","startCharacter":5,"startLine":105},{"endLine":111,"kind":"region","startCharacter":1,"startLine":110},{"endCharacter":61,"endLine":8,"kind":"comment","startCharacter":2,"startLine":6},{"endCharacter":59,"endLine":21,"kind":"comment","startCharacter":6,"startLine":20},{"endCharacter":48,"endLine":29,"kind":"comment","startCharacter":6,"startLine":27},{"endCharacter":44,"endLine":38,"kind":"comment","startCharacter":6,"startLine":35},{"endCharacter":146,"endLine":53,"kind":"comment","startCharacter":6,"startLine":50},{"endCharacter":44,"endLine":75,"kind":"comment","startCharacter":6,"startLine":70}]}
HighCommander4 commented 3 months ago

Sorry, that was a silly request. Of course with Enabled: false there will be no inlay hints :)

What I meant was, could you share a log with Enabled: true not present in the config file.

palapapa commented 3 months ago

I forgot whether the log I first posted was with Enabled: true or not.

I[04:08:07.904] clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57)
I[04:08:07.905] Features: windows+grpc
I[04:08:07.905] PID: 26812
I[04:08:07.905] Working directory: d:\Desktop\C++\College\OopHw1
I[04:08:07.905] argv[0]: c:\Users\User\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\17.0.3\clangd_17.0.3\bin\clangd.exe
I[04:08:07.905] argv[1]: --log=verbose
I[04:08:07.905] argv[2]: --query-driver=**/*
V[04:08:07.912] User config file is C:\Users\User\AppData\Local\clangd\config.yaml
I[04:08:07.912] Starting LSP over stdin/stdout
V[04:08:07.913] <<< {"id":0,"jsonrpc":"2.0","method":"initialize","params":{"capabilities":{"general":{"markdown":{"parser":"marked","version":"1.1.0"},"positionEncodings":["utf-16"],"regularExpressions":{"engine":"ECMAScript","version":"ES2020"},"staleRequestSupport":{"cancel":true,"retryOnContentModified":["textDocument/semanticTokens/full","textDocument/semanticTokens/range","textDocument/semanticTokens/full/delta"]}},"notebookDocument":{"synchronization":{"dynamicRegistration":true,"executionSummarySupport":true}},"textDocument":{"callHierarchy":{"dynamicRegistration":true},"codeAction":{"codeActionLiteralSupport":{"codeActionKind":{"valueSet":["","quickfix","refactor","refactor.extract","refactor.inline","refactor.rewrite","source","source.organizeImports"]}},"dataSupport":true,"disabledSupport":true,"dynamicRegistration":true,"honorsChangeAnnotations":false,"isPreferredSupport":true,"resolveSupport":{"properties":["edit"]}},"codeLens":{"dynamicRegistration":true},"colorProvider":{"dynamicRegistration":true},"completion":{"completionItem":{"commitCharactersSupport":true,"deprecatedSupport":true,"documentationFormat":["markdown","plaintext"],"insertReplaceSupport":true,"insertTextModeSupport":{"valueSet":[1,2]},"labelDetailsSupport":true,"preselectSupport":true,"resolveSupport":{"properties":["documentation","detail","additionalTextEdits"]},"snippetSupport":true,"tagSupport":{"valueSet":[1]}},"completionItemKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25]},"completionList":{"itemDefaults":["commitCharacters","editRange","insertTextFormat","insertTextMode"]},"contextSupport":true,"dynamicRegistration":true,"editsNearCursor":true,"insertTextMode":2},"declaration":{"dynamicRegistration":true,"linkSupport":true},"definition":{"dynamicRegistration":true,"linkSupport":true},"diagnostic":{"dynamicRegistration":true,"relatedDocumentSupport":false},"documentHighlight":{"dynamicRegistration":true},"documentLink":{"dynamicRegistration":true,"tooltipSupport":true},"documentSymbol":{"dynamicRegistration":true,"hierarchicalDocumentSymbolSupport":true,"labelSupport":true,"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"foldingRange":{"dynamicRegistration":true,"foldingRange":{"collapsedText":false},"foldingRangeKind":{"valueSet":["comment","imports","region"]},"lineFoldingOnly":true,"rangeLimit":5000},"formatting":{"dynamicRegistration":true},"hover":{"contentFormat":["markdown","plaintext"],"dynamicRegistration":true},"implementation":{"dynamicRegistration":true,"linkSupport":true},"inactiveRegionsCapabilities":{"inactiveRegions":true},"inlayHint":{"dynamicRegistration":true,"resolveSupport":{"properties":["tooltip","textEdits","label.tooltip","label.location","label.command"]}},"inlineValue":{"dynamicRegistration":true},"linkedEditingRange":{"dynamicRegistration":true},"onTypeFormatting":{"dynamicRegistration":true},"publishDiagnostics":{"codeDescriptionSupport":true,"dataSupport":true,"relatedInformation":true,"tagSupport":{"valueSet":[1,2]},"versionSupport":false},"rangeFormatting":{"dynamicRegistration":true},"references":{"dynamicRegistration":true},"rename":{"dynamicRegistration":true,"honorsChangeAnnotations":true,"prepareSupport":true,"prepareSupportDefaultBehavior":1},"selectionRange":{"dynamicRegistration":true},"semanticTokens":{"augmentsSyntaxTokens":true,"dynamicRegistration":true,"formats":["relative"],"multilineTokenSupport":false,"overlappingTokenSupport":false,"requests":{"full":{"delta":true},"range":true},"serverCancelSupport":true,"tokenModifiers":["declaration","definition","readonly","static","deprecated","abstract","async","modification","documentation","defaultLibrary"],"tokenTypes":["namespace","type","class","enum","interface","struct","typeParameter","parameter","variable","property","enumMember","event","function","method","macro","keyword","modifier","comment","string","number","regexp","operator","decorator"]},"signatureHelp":{"contextSupport":true,"dynamicRegistration":true,"signatureInformation":{"activeParameterSupport":true,"documentationFormat":["markdown","plaintext"],"parameterInformation":{"labelOffsetSupport":true}}},"synchronization":{"didSave":true,"dynamicRegistration":true,"willSave":true,"willSaveWaitUntil":true},"typeDefinition":{"dynamicRegistration":true,"linkSupport":true},"typeHierarchy":{"dynamicRegistration":true}},"window":{"showDocument":{"support":true},"showMessage":{"messageActionItem":{"additionalPropertiesSupport":true}},"workDoneProgress":true},"workspace":{"applyEdit":true,"codeLens":{"refreshSupport":true},"configuration":true,"diagnostics":{"refreshSupport":true},"didChangeConfiguration":{"dynamicRegistration":true},"didChangeWatchedFiles":{"dynamicRegistration":true,"relativePatternSupport":true},"executeCommand":{"dynamicRegistration":true},"fileOperations":{"didCreate":true,"didDelete":true,"didRename":true,"dynamicRegistration":true,"willCreate":true,"willDelete":true,"willRename":true},"inlayHint":{"refreshSupport":true},"inlineValue":{"refreshSupport":true},"semanticTokens":{"refreshSupport":true},"symbol":{"dynamicRegistration":true,"resolveSupport":{"properties":["location.range"]},"symbolKind":{"valueSet":[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26]},"tagSupport":{"valueSet":[1]}},"workspaceEdit":{"changeAnnotationSupport":{"groupsOnLabel":true},"documentChanges":true,"failureHandling":"textOnlyTransactional","normalizesLineEndings":true,"resourceOperations":["create","rename","delete"]},"workspaceFolders":true}},"clientInfo":{"name":"Visual Studio Code","version":"1.87.2"},"initializationOptions":{"clangdFileStatus":true,"fallbackFlags":[]},"locale":"en","processId":25952,"rootPath":"d:\\Desktop\\C++\\College\\OopHw1","rootUri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1","trace":"off","workspaceFolders":[{"name":"OopHw1","uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1"}]}}

I[04:08:07.913] <-- initialize(0)
I[04:08:07.937] --> reply:initialize(0) 23 ms
V[04:08:07.937] >>> {"id":0,"jsonrpc":"2.0","result":{"capabilities":{"astProvider":true,"callHierarchyProvider":true,"clangdInlayHintsProvider":true,"codeActionProvider":{"codeActionKinds":["quickfix","refactor","info"]},"compilationDatabase":{"automaticReload":true},"completionProvider":{"resolveProvider":false,"triggerCharacters":[".","<",">",":","\"","/","*"]},"declarationProvider":true,"definitionProvider":true,"documentFormattingProvider":true,"documentHighlightProvider":true,"documentLinkProvider":{"resolveProvider":false},"documentOnTypeFormattingProvider":{"firstTriggerCharacter":"\n","moreTriggerCharacter":[]},"documentRangeFormattingProvider":true,"documentSymbolProvider":true,"executeCommandProvider":{"commands":["clangd.applyFix","clangd.applyTweak"]},"foldingRangeProvider":true,"hoverProvider":true,"implementationProvider":true,"inactiveRegionsProvider":true,"inlayHintProvider":true,"memoryUsageProvider":true,"referencesProvider":true,"renameProvider":{"prepareProvider":true},"selectionRangeProvider":true,"semanticTokensProvider":{"full":{"delta":true},"legend":{"tokenModifiers":["declaration","definition","deprecated","deduced","readonly","static","abstract","virtual","dependentName","defaultLibrary","usedAsMutableReference","usedAsMutablePointer","constructorOrDestructor","userDefined","functionScope","classScope","fileScope","globalScope"],"tokenTypes":["variable","variable","parameter","function","method","function","property","variable","class","interface","enum","enumMember","type","type","unknown","namespace","typeParameter","concept","type","macro","modifier","operator","bracket","label","comment"]},"range":false},"signatureHelpProvider":{"triggerCharacters":["(",")","{","}","<",">",","]},"standardTypeHierarchyProvider":true,"textDocumentSync":{"change":2,"openClose":true,"save":true},"typeDefinitionProvider":true,"typeHierarchyProvider":true,"workspaceSymbolProvider":true},"serverInfo":{"name":"clangd","version":"clangd version 17.0.3 (https://github.com/llvm/llvm-project 888437e1b60011b8a375dd30928ec925b448da57) windows+grpc x86_64-pc-windows-msvc"}}}

V[04:08:08.071] <<< {"jsonrpc":"2.0","method":"initialized","params":{}}

I[04:08:08.071] <-- initialized
V[04:08:08.080] <<< {"jsonrpc":"2.0","method":"textDocument/didOpen","params":{"textDocument":{"languageId":"cpp","text":"#include <iostream>\r\n#include <stdexcept>\r\n#include <unordered_map>\r\n#include <unordered_set>\r\n#include <utility>\r\n\r\n/// @brief A graph.\r\n/// @tparam T The type used as the ID of each node in the graph.\r\n/// @tparam IsDirected Whether the graph is a directed graph.\r\ntemplate <typename T, bool IsDirected = true>\r\nrequires requires\r\n{\r\n    std::unordered_map<T, std::unordered_set<T>>{};\r\n}\r\nclass Graph\r\n{\r\npublic:\r\n    /// @brief The type used as the ID of each node in the graph. It is the same as @p T.\r\n    using NodeType = T;\r\n\r\n    /// @brief Gets the underlying representation of the graph.\r\n    /// @return The underlying representation of the graph.\r\n    constexpr const auto &getAdjacencyList()\r\n    {\r\n        return adjacencyList;\r\n    }\r\n\r\n    /// @brief Checks if a node exists in the graph.\r\n    /// @param node The node to check.\r\n    /// @return Whether @p node is in the graph.\r\n    constexpr bool hasNode(const T &node) const\r\n    {\r\n        return adjacencyList.count(node) == 1;\r\n    }\r\n\r\n    /// @brief Adds a node to the graph. If the node already exists, does nothing.\r\n    /// @tparam U The same type as @p T. It is used to make forwarding possible here.\r\n    /// @param node The node to add.\r\n    /// @return This instance of @ref Graph.\r\n    template <std::same_as<T> U>\r\n    constexpr Graph &addNode(U &&node)\r\n    {\r\n        if (hasNode(node))\r\n        {\r\n            return *this;\r\n        }\r\n        adjacencyList[std::forward<U>(node)];\r\n        return *this;\r\n    }\r\n\r\n    /// @brief Checks if a edge exists in the graph. The result depends on whether the graph is directed or not.\r\n    /// @param src The source node. This is interchangeable with @p dest if the graph is not directed.\r\n    /// @param dest The destination node. This is interchangeable with @p src if the graph is not directed.\r\n    /// @return Whether an edge from @p src to @p dest exists. If the graph is not directed, also checks if an edge from @p dest to @p src exists.\r\n    constexpr bool hasEdge(const T &src, const T &dest) const\r\n    {\r\n        if (!hasNode(src) || !hasNode(dest))\r\n        {\r\n            return false;\r\n        }\r\n        if constexpr (IsDirected)\r\n        {\r\n            return adjacencyList.at(src).contains(dest);\r\n        }\r\n        else\r\n        {\r\n            return adjacencyList.at(src).contains(dest) || adjacencyList.at(dest).contains(src);\r\n        }\r\n    }\r\n\r\n    /// @brief Adds an edge to the graph. If the edge already exists, does nothing.\r\n    /// @tparam U The same type as @p T. It is used to make forwarding possible here.\r\n    /// @param src The source node. This is interchangeable with @p dest if the graph is not directed.\r\n    /// @param dest The destination node. This is interchangeable with @p src if the graph is not directed.\r\n    /// @exception std::invalid_argument When either @p src or @p dest is not in the graph.\r\n    /// @return This instance of @ref Graph.\r\n    template <std::same_as<T> U>\r\n    constexpr Graph &addEdge(const T &src, U &&dest)\r\n    {\r\n        if (!hasNode(src))\r\n        {\r\n            throw std::invalid_argument(\"Node src doesn't exist in the graph.\");\r\n        }\r\n        if (!hasNode(dest))\r\n        {\r\n            throw std::invalid_argument(\"Node dest doesn't exist in the graph.\");\r\n        }\r\n        adjacencyList[src].insert(std::forward<U>(dest));\r\n        return *this;\r\n    }\r\n\r\nprivate:\r\n    using AdjacencyListType = std::unordered_map<T, std::unordered_set<T>>;\r\n    AdjacencyListType adjacencyList;\r\n};\r\n\r\nint main() try\r\n{\r\n    Graph<int, true> g{};\r\n    g.addNode(1).addNode(2).addEdge(1, 2);\r\n    if (g.hasEdge(2, 1))\r\n    {\r\n        std::cout << \"Has edge\\n\";\r\n    }\r\n    else\r\n    {\r\n        std::cout << \"No edge\\n\";\r\n    }\r\n}\r\ncatch (...)\r\n{\r\n    (void)0;\r\n}\r\n","uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","version":1}}}

I[04:08:08.080] <-- textDocument/didOpen
E[04:08:08.102] System include extraction: driver clang not found in PATH
V[04:08:08.102] <<< {"id":1,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.102] <-- textDocument/documentSymbol(1)
V[04:08:08.102] <<< {"id":2,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.102] <-- textDocument/codeAction(2)
V[04:08:08.104] config note at C:\Users\User\AppData\Local\clangd\config.yaml:1:0: Parsing config fragment
V[04:08:08.104] config note at C:\Users\User\AppData\Local\clangd\config.yaml:37:0: Parsing config fragment
V[04:08:08.104] config note at C:\Users\User\AppData\Local\clangd\config.yaml:46:0: Parsing config fragment
V[04:08:08.104] config note at C:\Users\User\AppData\Local\clangd\config.yaml:1:0: Parsed 3 fragments from file
V[04:08:08.104] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:1 -> 0x000002C546910A30 (trusted=true)
V[04:08:08.105] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:37 -> 0x000002C546910BC0 (trusted=true)
V[04:08:08.105] Config fragment: compiling C:\Users\User\AppData\Local\clangd\config.yaml:46 -> 0x000002C546910760 (trusted=true)
I[04:08:08.105] --> textDocument/publishDiagnostics
V[04:08:08.105] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///C:/Users/User/AppData/Local/clangd/config.yaml"}}

I[04:08:08.107] Failed to find compilation database for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
V[04:08:08.112] System include extraction: driver g++ expanded to C:\mingw64\bin\g++.exe
V[04:08:08.202] System include extraction: target extracted: "x86_64-w64-mingw32"
V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0

V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32

V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward

V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include

V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include

V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed

V[04:08:08.202] System include extraction: adding  C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include

I[04:08:08.202] System includes extractor: successfully executed C:\mingw64\bin\g++.exe
    got includes: "C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed, C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include"
    got target: "x86_64-w64-mingw32"
I[04:08:08.202] ASTWorker building file d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1 with command clangd fallback
[d:\Desktop\C++\College\OopHw1]
"C:\\mingw64\\bin\\g++" --driver-mode=g++ -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c++23 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include --target=x86_64-w64-mingw32 "-resource-dir=c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17" -- "d:\\Desktop\\C++\\College\\OopHw1\\OOP_HW1_411410040.cpp"
V[04:08:08.205] Driver produced command: cc1 -cc1 -triple x86_64-w64-windows-gnu -fsyntax-only -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name OOP_HW1_411410040.cpp -mrelocation-model pic -pic-level 2 -mframe-pointer=none -fmath-errno -ffp-contract=on -fno-rounding-math -mconstructor-aliases -mms-bitfields -funwind-tables=2 -fno-use-init-array -target-cpu x86-64 -tune-cpu generic -debugger-tuning=gdb "-fcoverage-compilation-dir=d:\\Desktop\\C++\\College\\OopHw1" -resource-dir "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17" -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/x86_64-w64-mingw32 -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0/backward -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/include-fixed -isystem C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../x86_64-w64-mingw32/include -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\backward" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include\\c++\\13.1.0\\backward" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\include\\c++\\13.1.0\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\c++\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1.0\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13.1\\backward" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13\\x86_64-w64-mingw32" -internal-isystem "C:\\mingw64\\lib\\gcc\\x86_64-w64-mingw32\\13.1.0\\include\\g++-v13\\backward" -internal-isystem "c:\\Users\\User\\AppData\\Roaming\\Code\\User\\globalStorage\\llvm-vs-code-extensions.vscode-clangd\\install\\17.0.3\\clangd_17.0.3\\lib\\clang\\17\\include" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\include" -internal-isystem "C:\\mingw64\\x86_64-w64-mingw32\\usr/include" -internal-isystem "C:\\mingw64\\include" -Weverything -Wno-used-but-marked-unused -Wno-declaration-after-statement -Wno-vla -Wno-missing-prototypes -Wno-c++98-compat -Wno-reserved-macro-identifier -Wno-padded -Wno-unsafe-buffer-usage -Wno-empty-translation-unit -std=c++23 -fdeprecated-macro "-fdebug-compilation-dir=d:\\Desktop\\C++\\College\\OopHw1" -ferror-limit 19 -fno-use-cxa-atexit -fgnuc-version=4.2.1 -fno-implicit-modules -fcxx-exceptions -fexceptions -exception-model=seh -no-round-trip-args -faddrsig -x c++ "d:\\Desktop\\C++\\College\\OopHw1\\OOP_HW1_411410040.cpp"
I[04:08:08.205] --> textDocument/clangd.fileStatus
V[04:08:08.205] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Update","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:08:08.205] Building first preamble for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1
V[04:08:08.221] <<< {"id":3,"jsonrpc":"2.0","method":"textDocument/documentLink","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.221] <-- textDocument/documentLink(3)
V[04:08:08.222] <<< {"id":4,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.222] <-- textDocument/inlayHint(4)
V[04:08:08.228] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":4}}

I[04:08:08.228] <-- $/cancelRequest
V[04:08:08.351] <<< {"id":5,"jsonrpc":"2.0","method":"textDocument/inlayHint","params":{"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":0}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.351] <-- textDocument/inlayHint(5)
V[04:08:08.357] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":1}}

I[04:08:08.357] <-- $/cancelRequest
V[04:08:08.358] <<< {"id":6,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.358] <-- textDocument/documentSymbol(6)
V[04:08:08.359] <<< {"jsonrpc":"2.0","method":"$/cancelRequest","params":{"id":2}}

I[04:08:08.359] <-- $/cancelRequest
V[04:08:08.360] <<< {"id":7,"jsonrpc":"2.0","method":"textDocument/codeAction","params":{"context":{"diagnostics":[],"triggerKind":2},"range":{"end":{"character":0,"line":113},"start":{"character":0,"line":113}},"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.361] <-- textDocument/codeAction(7)
V[04:08:08.561] <<< {"id":8,"jsonrpc":"2.0","method":"textDocument/documentSymbol","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.561] <-- textDocument/documentSymbol(8)
V[04:08:08.568] <<< {"id":9,"jsonrpc":"2.0","method":"textDocument/foldingRange","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.568] <-- textDocument/foldingRange(9)
I[04:08:08.569] --> reply:textDocument/foldingRange(9) 0 ms
V[04:08:08.569] >>> {"id":9,"jsonrpc":"2.0","result":[{"endLine":12,"kind":"region","startCharacter":1,"startLine":11},{"endLine":93,"kind":"region","startCharacter":1,"startLine":15},{"endCharacter":4,"endLine":24,"kind":"region","startCharacter":5,"startLine":23},{"endCharacter":4,"endLine":32,"kind":"region","startCharacter":5,"startLine":31},{"endCharacter":4,"endLine":47,"kind":"region","startCharacter":5,"startLine":41},{"endCharacter":8,"endLine":44,"kind":"region","startCharacter":9,"startLine":43},{"endCharacter":4,"endLine":67,"kind":"region","startCharacter":5,"startLine":55},{"endCharacter":8,"endLine":58,"kind":"region","startCharacter":9,"startLine":57},{"endCharacter":8,"endLine":62,"kind":"region","startCharacter":9,"startLine":61},{"endCharacter":8,"endLine":66,"kind":"region","startCharacter":9,"startLine":65},{"endCharacter":4,"endLine":88,"kind":"region","startCharacter":5,"startLine":78},{"endCharacter":8,"endLine":81,"kind":"region","startCharacter":9,"startLine":80},{"endCharacter":8,"endLine":85,"kind":"region","startCharacter":9,"startLine":84},{"endLine":107,"kind":"region","startCharacter":1,"startLine":97},{"endCharacter":4,"endLine":102,"kind":"region","startCharacter":5,"startLine":101},{"endCharacter":4,"endLine":106,"kind":"region","startCharacter":5,"startLine":105},{"endLine":111,"kind":"region","startCharacter":1,"startLine":110},{"endCharacter":61,"endLine":8,"kind":"comment","startCharacter":2,"startLine":6},{"endCharacter":59,"endLine":21,"kind":"comment","startCharacter":6,"startLine":20},{"endCharacter":48,"endLine":29,"kind":"comment","startCharacter":6,"startLine":27},{"endCharacter":44,"endLine":38,"kind":"comment","startCharacter":6,"startLine":35},{"endCharacter":146,"endLine":53,"kind":"comment","startCharacter":6,"startLine":50},{"endCharacter":44,"endLine":75,"kind":"comment","startCharacter":6,"startLine":70}]}

V[04:08:08.571] <<< {"id":10,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full","params":{"textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:08.571] <-- textDocument/semanticTokens/full(10)
I[04:08:09.056] Built preamble of size 6793536 for file d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1 in 0.85 seconds
I[04:08:09.057] --> workspace/semanticTokens/refresh(0)
V[04:08:09.057] >>> {"id":0,"jsonrpc":"2.0","method":"workspace/semanticTokens/refresh","params":null}

I[04:08:09.057] --> textDocument/clangd.fileStatus
V[04:08:09.057] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"parsing includes, running Build AST","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

I[04:08:09.057] Indexing c++23 standard library in the context of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
V[04:08:09.058] <<< {"id":0,"jsonrpc":"2.0","result":null}

I[04:08:09.058] <-- reply(0)
V[04:08:09.179] indexed file AST for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1:
  symbol slab: 10 symbols, 6544 bytes
  ref slab: 19 symbols, 48 refs, 4688 bytes
  relations slab: 0 relations, 24 bytes
V[04:08:09.180] Build dynamic index for main-file symbols with estimated memory usage of 17648 bytes
I[04:08:09.180] --> textDocument/publishDiagnostics
V[04:08:09.180] >>> {"jsonrpc":"2.0","method":"textDocument/publishDiagnostics","params":{"diagnostics":[],"uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp","version":1}}

I[04:08:09.180] --> textDocument/inactiveRegions
V[04:08:09.180] >>> {"jsonrpc":"2.0","method":"textDocument/inactiveRegions","params":{"regions":[],"textDocument":{"uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:09.180] --> reply:textDocument/documentSymbol(1) 1077 ms, error: Task was cancelled.
V[04:08:09.180] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":1,"jsonrpc":"2.0"}

I[04:08:09.180] --> reply:textDocument/codeAction(2) 1077 ms, error: Task was cancelled.
V[04:08:09.180] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":2,"jsonrpc":"2.0"}

V[04:08:09.180] ASTWorker running DocumentLinks on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:08:09.180] --> reply:textDocument/documentLink(3) 958 ms
V[04:08:09.180] >>> {"id":3,"jsonrpc":"2.0","result":[{"range":{"end":{"character":19,"line":0},"start":{"character":9,"line":0}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/iostream"},{"range":{"end":{"character":20,"line":1},"start":{"character":9,"line":1}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/stdexcept"},{"range":{"end":{"character":24,"line":2},"start":{"character":9,"line":2}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_map"},{"range":{"end":{"character":24,"line":3},"start":{"character":9,"line":3}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/unordered_set"},{"range":{"end":{"character":18,"line":4},"start":{"character":9,"line":4}},"target":"file:///C:/mingw64/include/c%2B%2B/13.1.0/utility"}]}

I[04:08:09.180] --> reply:textDocument/inlayHint(4) 958 ms, error: Task was cancelled.
V[04:08:09.180] >>> {"error":{"code":-32800,"message":"Request cancelled"},"id":4,"jsonrpc":"2.0"}

V[04:08:09.180] ASTWorker running InlayHints on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:08:09.181] --> reply:textDocument/inlayHint(5) 829 ms
V[04:08:09.181] >>> {"id":5,"jsonrpc":"2.0","result":[{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":56}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":38,"line":56}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":79}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":83}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":14,"line":99}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":25,"line":99}},{"kind":2,"label":"src:","paddingLeft":false,"paddingRight":true,"position":{"character":36,"line":99}},{"kind":2,"label":"dest:","paddingLeft":false,"paddingRight":true,"position":{"character":39,"line":99}},{"kind":2,"label":"src:","paddingLeft":false,"paddingRight":true,"position":{"character":18,"line":100}},{"kind":2,"label":"dest:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":100}}]}

V[04:08:09.181] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
[Error - 4:08:09 AM] Request textDocument/documentSymbol failed.
[object Object]
I[04:08:09.181] --> reply:textDocument/documentSymbol(6) 823 ms
V[04:08:09.181] >>> {"id":6,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

V[04:08:09.182] ASTWorker running codeAction on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:08:09.182] --> reply:textDocument/codeAction(7) 820 ms
V[04:08:09.182] >>> {"id":7,"jsonrpc":"2.0","result":[]}

V[04:08:09.182] ASTWorker running DocumentSymbols on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:08:09.182] --> reply:textDocument/documentSymbol(8) 621 ms
V[04:08:09.182] >>> {"id":8,"jsonrpc":"2.0","result":[{"children":[{"detail":"type alias","kind":5,"name":"NodeType","range":{"end":{"character":22,"line":18},"start":{"character":4,"line":18}},"selectionRange":{"end":{"character":18,"line":18},"start":{"character":10,"line":18}}},{"detail":"const auto &()","kind":6,"name":"getAdjacencyList","range":{"end":{"character":5,"line":25},"start":{"character":4,"line":22}},"selectionRange":{"end":{"character":42,"line":22},"start":{"character":26,"line":22}}},{"detail":"bool (const T &) const","kind":6,"name":"hasNode","range":{"end":{"character":5,"line":33},"start":{"character":4,"line":30}},"selectionRange":{"end":{"character":26,"line":30},"start":{"character":19,"line":30}}},{"detail":"template Graph<T, IsDirected> &(U &&)","kind":6,"name":"addNode","range":{"end":{"character":5,"line":48},"start":{"character":4,"line":40}},"selectionRange":{"end":{"character":28,"line":40},"start":{"character":21,"line":40}}},{"detail":"bool (const T &, const T &) const","kind":6,"name":"hasEdge","range":{"end":{"character":5,"line":68},"start":{"character":4,"line":54}},"selectionRange":{"end":{"character":26,"line":54},"start":{"character":19,"line":54}}},{"detail":"template Graph<T, IsDirected> &(const T &, U &&)","kind":6,"name":"addEdge","range":{"end":{"character":5,"line":89},"start":{"character":4,"line":77}},"selectionRange":{"end":{"character":28,"line":77},"start":{"character":21,"line":77}}},{"detail":"type alias","kind":5,"name":"AdjacencyListType","range":{"end":{"character":74,"line":92},"start":{"character":4,"line":92}},"selectionRange":{"end":{"character":27,"line":92},"start":{"character":10,"line":92}}},{"detail":"AdjacencyListType","kind":8,"name":"adjacencyList","range":{"end":{"character":35,"line":93},"start":{"character":4,"line":93}},"selectionRange":{"end":{"character":35,"line":93},"start":{"character":22,"line":93}}}],"detail":"template class","kind":5,"name":"Graph","range":{"end":{"character":1,"line":94},"start":{"character":0,"line":14}},"selectionRange":{"end":{"character":11,"line":14},"start":{"character":6,"line":14}}},{"detail":"int ()","kind":12,"name":"main","range":{"end":{"character":1,"line":112},"start":{"character":0,"line":96}},"selectionRange":{"end":{"character":8,"line":96},"start":{"character":4,"line":96}}}]}

V[04:08:09.182] ASTWorker running SemanticHighlights on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
[Error - 4:08:09 AM] Request textDocument/codeAction failed.
[object Object]
I[04:08:09.183] --> reply:textDocument/semanticTokens/full(10) 611 ms
V[04:08:09.183] >>> {"id":10,"jsonrpc":"2.0","result":{"data":[9,9,1,22,0,0,10,1,16,32771,0,8,10,16,32787,0,17,1,22,0,3,4,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,3,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,1,1,22,0,2,6,5,8,131075,4,10,8,16,32769,0,11,1,16,32768,4,26,16,4,32771,2,15,13,6,32768,6,19,7,4,32787,0,14,1,16,32768,0,3,4,2,16403,2,15,13,6,32768,0,14,5,4,33552,0,6,4,2,16400,0,6,2,21,8192,7,13,1,22,0,0,1,3,15,131584,0,5,7,17,131584,0,7,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,2,1,16,16387,0,1,1,22,0,1,14,5,8,131072,0,7,7,4,32771,0,8,1,16,16384,0,4,4,2,16387,2,12,7,4,32784,0,8,4,2,16384,2,19,1,21,8192,2,8,13,6,32768,0,14,3,15,131584,0,5,7,3,131584,0,7,1,22,0,0,1,1,16,16384,0,1,1,22,0,0,2,4,2,16384,1,15,1,21,8192,7,19,7,4,32787,0,14,1,16,32768,0,3,3,2,16403,0,11,1,16,32768,0,3,4,2,16403,2,12,1,21,8192,0,1,7,4,32784,0,8,3,2,16400,0,5,2,21,8192,0,3,1,21,8192,0,1,7,4,32784,0,8,4,2,16400,4,22,10,16,32784,2,19,13,6,32768,0,14,2,4,33552,0,3,3,2,16400,0,5,8,14,33024,0,9,4,2,16400,4,19,13,6,32768,0,14,2,4,33552,0,3,3,2,16400,0,5,8,14,33024,0,9,4,2,16400,0,6,2,21,8192,0,3,13,6,32768,0,14,2,4,33552,0,3,4,2,16400,0,6,8,14,33024,0,9,3,2,16400,10,13,1,22,0,0,1,3,15,131584,0,5,7,17,131584,0,7,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,2,1,16,16387,0,1,1,22,0,1,14,5,8,131072,0,7,7,4,32771,0,14,1,16,32768,0,3,3,2,16403,0,5,1,16,16384,0,4,4,2,16387,2,12,1,21,8192,0,1,7,4,32784,0,8,3,2,16400,2,18,3,15,131584,0,5,16,8,131584,2,12,1,21,8192,0,1,7,4,32784,0,8,4,2,16384,2,18,3,15,131584,0,5,16,8,131584,2,8,13,6,32768,0,14,3,2,16400,0,5,6,14,33024,0,7,3,15,131584,0,5,7,3,131584,0,7,1,22,0,0,1,1,16,16384,0,1,1,22,0,0,2,4,2,16384,1,15,1,21,8192,4,10,17,12,32769,0,20,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,3,3,15,131584,0,5,13,8,131584,0,13,1,22,0,0,1,1,16,32768,0,1,1,22,0,0,1,1,22,0,1,4,17,12,32768,0,18,13,6,32769,3,4,4,3,131075,2,4,5,8,131072,0,5,1,22,0,0,10,1,22,0,0,2,1,1,16387,1,4,1,1,16384,0,2,7,4,32768,0,11,7,4,32768,0,11,7,4,32768,1,8,1,1,16384,0,2,7,4,32784,2,8,3,15,131584,0,5,4,0,131584,0,5,2,21,8192,4,8,3,15,131584,0,5,4,0,131584,0,5,2,21,8192],"resultId":"1"}}

I[04:08:09.183] --> textDocument/clangd.fileStatus
V[04:08:09.183] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

[Error - 4:08:09 AM] Request textDocument/inlayHint failed.
[object Object]
V[04:08:09.186] indexed preamble AST for d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp version 1:
  symbol slab: 6359 symbols, 1958744 bytes
  ref slab: 0 symbols, 0 refs, 136 bytes
  relations slab: 312 relations, 5396 bytes
V[04:08:09.224] Build dynamic index for header symbols with estimated memory usage of 5353436 bytes
V[04:08:09.655] <<< {"id":11,"jsonrpc":"2.0","method":"textDocument/semanticTokens/full/delta","params":{"previousResultId":"1","textDocument":{"uri":"file:///d%3A/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}}

I[04:08:09.655] <-- textDocument/semanticTokens/full/delta(11)
V[04:08:09.655] ASTWorker running SemanticHighlights on version 1 of d:\Desktop\C++\College\OopHw1\OOP_HW1_411410040.cpp
I[04:08:09.656] --> reply:textDocument/semanticTokens/full/delta(11) 0 ms
V[04:08:09.656] >>> {"id":11,"jsonrpc":"2.0","result":{"edits":[],"resultId":"2"}}

I[04:08:09.656] --> textDocument/clangd.fileStatus
V[04:08:09.656] >>> {"jsonrpc":"2.0","method":"textDocument/clangd.fileStatus","params":{"state":"idle","uri":"file:///d:/Desktop/C%2B%2B/College/OopHw1/OOP_HW1_411410040.cpp"}}

V[04:08:11.412] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\stacktrace:644:3:no matching function for call to 'operator delete'
V[04:08:11.412] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:144:6:candidate function not viable: no known conversion from 'unsigned long long' to 'const std::nothrow_t' for 2nd argument
V[04:08:11.412] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:153:6:candidate function not viable: no known conversion from 'unsigned long long' to 'std::align_val_t' for 2nd argument
V[04:08:11.412] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:180:13:candidate function not viable: no known conversion from 'unsigned long long' to 'void *' for 2nd argument
V[04:08:11.412] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:130:6:candidate function not viable: requires 1 argument, but 2 were provided
V[04:08:11.412] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\new:155:6:candidate function not viable: requires 3 arguments, but 2 were provided
V[04:08:12.132] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_path.h:613:31:invalid use of incomplete type 'filesystem_error'
V[04:08:12.132] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_fwd.h:74:9:forward declaration of 'std::experimental::filesystem::filesystem_error'
V[04:08:12.132] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_path.h:613:7:cannot throw object of incomplete type 'filesystem_error'
V[04:08:12.132] Ignored diagnostic. C:/mingw64/bin/../lib/gcc/x86_64-w64-mingw32/13.1.0/../../../../include/c++/13.1.0\experimental/bits/fs_fwd.h:74:9:forward declaration of 'std::experimental::filesystem::filesystem_error'
I[04:08:12.642] Indexed c++23 standard library (incomplete due to errors): 15812 symbols, 803 filtered
V[04:08:12.708] Build dynamic index for header symbols with estimated memory usage of 9298564 bytes
HighCommander4 commented 3 months ago

Hmm the log is showing clangd sending inlay hints:

V[04:08:09.181] >>> {"id":5,"jsonrpc":"2.0","result":[{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":56}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":38,"line":56}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":79}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":83}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":14,"line":99}},{"kind":2,"label":"node:","paddingLeft":false,"paddingRight":true,"position":{"character":25,"line":99}},{"kind":2,"label":"src:","paddingLeft":false,"paddingRight":true,"position":{"character":36,"line":99}},{"kind":2,"label":"dest:","paddingLeft":false,"paddingRight":true,"position":{"character":39,"line":99}},{"kind":2,"label":"src:","paddingLeft":false,"paddingRight":true,"position":{"character":18,"line":100}},{"kind":2,"label":"dest:","paddingLeft":false,"paddingRight":true,"position":{"character":21,"line":100}}]}

These are parameter hints such as node:, src:, and dest:.

They are not showing up for you?

palapapa commented 3 months ago

I think it might be because of the C/C++ extension. I tried using "C_Cpp.hover": "disabled" and the inlay hints are showing correctly now.