Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for partial/fragment compile_commands.json files, such as generated by the clang -MJ option #12837

Open
akhodeir opened this issue Oct 14, 2024 · 9 comments
Assignees
Labels
Feature: Compile Commands Feature Request fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Milestone

Comments

@akhodeir
Copy link

akhodeir commented Oct 14, 2024

Environment

  • OS and Version: macOS 14.5
  • VS Code Version: 1.87.0
  • C/C++ Extension Version: latest
  • If using SSH remote, specify OS of remote machine: No

About VSCode:

Version: 1.87.0
Commit: 019f4d1419fbc8219a181fab7892ebccf7ee29a2
Date: 2024-02-27T23:42:56.944Z
Electron: 27.3.2
ElectronBuildId: 26836302
Chromium: 118.0.5993.159
Node.js: 18.17.1
V8: 11.8.172.18-electron.0
OS: Darwin x64 23.5.0

Bug Summary and Steps to Reproduce

Bug Summary:

I always use clangd(llvm-vs-code-extensions.vscode-clangd) extension for my work since it can parse the compile_commands.json and is really fast.
I got to know that microsoft extensions can also use compile_commands.json so I gave it a try.

Steps to reproduce:

  1. I opened work project and disabled clangd extension. and installed c/c++ extensions from microsoft.
  2. I reloaded/restarted vscode and I added configurations to my settings.json and c_cpp_properties.json
  3. I got error that "compile_commands.json could not be parsed" on the output window when I compile

Expected behavior:
C/C++ extensions shall parse the compile_commands.json.
C/C++ extensions shall not parse the compiler,java, and SDK

Configuration and Logs

Proj1/main.cpp

#include<iostream>

int main()
{
    int i{0};
    std::cout << "Hello world" << i <<std::endl;
    return 0;
}

c_cpp_properties.json:

{
    "configurations": [
        {
            "name": "Mac",
            "includePath": [
                "${workspaceFolder}/"
            ],
            "defines": [],
            "macFrameworkPath": [
                "/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/System/Library/Frameworks"
            ],
            "compilerPath": "/usr/bin/g++",
            "cStandard": "c17",
            "cppStandard": "c++17",
            "intelliSenseMode": "macos-clang-x64",
            "compileCommands": "${workspaceFolder}/Proj1/compile_database.json"
        }
    ],
    "version": 4
}

tasks.josn:

{
	"version": "2.0.0",
	"tasks": [
		{
			"type": "cppbuild",
			"label": "C/C++: g++ build active file",
			"command": "/usr/bin/g++",
			"args": [
				"-MJ",
				"compile_database.json",
				"-fdiagnostics-color=always",
				"-g",
				"-Wall",
				"-std=c++17",
				"${fileDirname}/*.cpp",
				"-o",
				"${fileDirname}/${fileBasenameNoExtension}"
			],
			"options": {
				"cwd": "${fileDirname}"
			},
			"problemMatcher": [
				"$gcc"
			],
			"group": {
				"kind": "build",
				"isDefault": true
			},
			"detail": "compiler: /usr/bin/g++"
		}
	]
}

C/C++: Log Diagnostics:

loggingLevel: Information
cpptools version (TypeScript): 1.21.6
cpptools version (native): 1.21.6.0
Autocomplete is enabled.
Error squiggles are enabled if all header dependencies are resolved.
Hover is enabled.
IntelliSense Engine = default.
Querying compiler for default C++ language standard using command line: /usr/bin/clang -x c++ -E -dM /dev/null
Compiler returned default language standard version: c++98. Since this version is old, will try to use newer version c++17 as default.
Querying compiler's default target using command line: "/usr/bin/clang" -dumpmachine
Compiler returned default target value: x86_64-apple-darwin23.5.0
Code browsing service initialized
Querying compiler for default C++ language standard using command line: /usr/bin/g++ -x c++ -E -dM /dev/null
Compiler returned default language standard version: c++98. Since this version is old, will try to use newer version c++17 as default.
Querying compiler's default target using command line: "/usr/bin/g++" -dumpmachine
Compiler returned default target value: x86_64-apple-darwin23.5.0
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/usr/include/ will be indexed
  Folder: /Library/Developer/CommandLineTools/usr/include/ will be indexed
  Folder: /Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/ will be indexed
  Folder: /usr/local/include/ will be indexed
  Folder: /Users/ahmed/Desktop/CPP/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/JavaRuntimeSupport.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetricKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Network.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IOBluetoothUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/GameKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SecurityInterface.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DiscRecording.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Speech.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Automator.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Cryptexes/OS/System/Library/Frameworks/SafariServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ExceptionHandling.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Metal.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/QuartzCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreGraphics.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IOBluetooth.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/StoreKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Ruby.framework/Versions/2.6/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/GSS.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenGL.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreML.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/FinderSync.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzComposer.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/QuartzFilters.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PDFKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/QuickLookUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Quartz.framework/Versions/A/Frameworks/ImageKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/UserNotificationsUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/TWAIN.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreMediaIO.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Symbols.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSRayIntersector.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSNeuralNetwork.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSNDArray.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSImage.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShaders.framework/Versions/A/Frameworks/MPSMatrix.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AutomaticAssessmentConfiguration.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ExternalAccessory.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScreenSaver.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PCSC.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PreferencePanes.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MediaPlayer.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LinkPresentation.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NetFS.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MediaToolbox.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SyncServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ForceFeedback.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalFX.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OSAKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ServiceManagement.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScreenTime.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MLCompute.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NaturalLanguage.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreVideo.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SensitiveContentAnalysis.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScriptingBridge.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreText.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ImageIO.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ColorSync.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATSUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DockKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OSLog.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/vmnet.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AVFAudio.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DiscRecordingUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ParavirtualizedGraphics.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DeviceCheck.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MailKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppleScriptKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/OpenScripting.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SecurityHI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/SpeechRecognition.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/ImageCapture.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/CommonPanels.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/Help.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ThreadNetwork.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SensorKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DriverKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Security.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Contacts.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ExtensionFoundation.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/RealityKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PhotosUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ReplayKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Virtualization.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IOSurface.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MediaLibrary.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SpriteKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IntentsUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/QuickLookThumbnailing.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreMedia.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/BusinessChat.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenDirectory.framework/Versions/A/Frameworks/CFOpenDirectory.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Intents.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DirectoryService.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppleScriptObjC.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoSubscriberAccount.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreWLAN.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PencilKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SearchKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/OSServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/Metadata.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/AE.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/SharedFileList.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/DictionaryServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/FSEvents.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/HealthKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MultipeerConnectivity.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/BackgroundAssets.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Cryptexes/OS/System/Library/Frameworks/WebKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NotificationCenter.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SystemConfiguration.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/GameController.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreTelephony.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenCL.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AudioUnit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/FileProvider.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Social.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppKit.framework/Versions/C/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IdentityLookup.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Matter.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreImage.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreAudio.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ExecutionPolicy.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Cinematic.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Hypervisor.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ICADevices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Kernel.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreAudioKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LDAP.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ClassKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DVDPlayback.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VisionKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SwiftUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ModelIO.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PHASE.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SharedWithYou.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CalendarStore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Collaboration.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AudioVideoBridging.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accounts.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/FileProviderUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ShazamKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/QuickLook.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppIntents.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Cryptexes/OS/System/Library/Frameworks/AuthenticationServices.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/KernelManagement.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/_CoreData_CloudKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DataDetection.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SystemExtensions.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Kerberos.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NearbyInteraction.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ContactsUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreSpotlight.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MatterSupport.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AdSupport.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/InstallerPlugins.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accessibility.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PushKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Vision.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NetworkExtension.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ExtensionKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/EventKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MediaAccessibility.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MapKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppTrackingTransparency.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreHaptics.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CallKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreFoundation.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreMotion.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AVRouting.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/WidgetKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AVKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AddressBook.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SoundAnalysis.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreLocation.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CloudKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IOUSBHost.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LatentSemanticMapping.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SharedWithYouCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CFNetwork.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/BrowserEngineCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Photos.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Cryptexes/OS/System/Library/Frameworks/JavaScriptCore.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/GameplayKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DiskArbitration.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/BrowserEngineKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/InstantMessage.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PushToTalk.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreMIDI.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/InputMethodKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PassKit.framework/Versions/A/Headers/ will be indexed
  Folder: /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ImageCaptureCore.framework/Versions/A/Headers/ will be indexed
  Folder: 
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SyncServices.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ForceFeedback.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalFX.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OSAKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ServiceManagement.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScreenTime.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MLCompute.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NaturalLanguage.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreVideo.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoDecodeAcceleration.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SensitiveContentAnalysis.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScriptingBridge.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATS.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreText.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ImageIO.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ColorSync.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/ATSUI.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/SpeechSynthesis.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/HIServices.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/PrintCore.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ApplicationServices.framework/Versions/A/Frameworks/QD.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DockKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OSLog.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AGL.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/UniformTypeIdentifiers.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/vmnet.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Cocoa.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/IOKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AVFoundation.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AVFAudio.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DiscRecordingUI.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ParavirtualizedGraphics.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vImage.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accelerate.framework/Versions/A/Frameworks/vecLib.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DeviceCheck.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MailKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/BackgroundTasks.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppleScriptKit.framework/Versions/A/Headers/
  
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreBluetooth.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ThreadNetwork.framework/Versions/A/Headers/
  
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LDAP.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ClassKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DVDPlayback.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VisionKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SwiftUI.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ModelIO.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PHASE.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SharedWithYou.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SecurityFoundation.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/GLUT.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CalendarStore.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MetalPerformanceShadersGraph.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Collaboration.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AudioVideoBridging.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accounts.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ScreenCaptureKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/FileProviderUI.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ShazamKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/QuickLook.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppIntents.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Cryptexes/OS/System/Library/Frameworks/AuthenticationServices.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/KernelManagement.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/_CoreData_CloudKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/DataDetection.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AudioToolbox.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SystemExtensions.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Kerberos.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NearbyInteraction.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ContactsUI.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreSpotlight.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Tcl.framework/Versions/8.5/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LocalAuthentication.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MatterSupport.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Foundation.framework/Versions/C/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AdSupport.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/LocalAuthenticationEmbeddedUI.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/InstallerPlugins.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Accessibility.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/PushKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Vision.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreAudioTypes.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/NetworkExtension.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/ExtensionKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/OpenAL.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/EventKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MediaAccessibility.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/MapKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/AppTrackingTransparency.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreHaptics.framework/Versions/A/Headers/

  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreLocation.framework/Versions/A/Headers/
/Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/iTunesLibrary.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreTransferable.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SceneKit.framework/Versions/A/Headers/
  Discovering files: 11101 file(s) processed
  0 file(s) removed from database
Done discovering files.
Parsing open files...
Populating include completion cache.
Parsing remaining files...
  Parsing: 0 files(s) processed
Done parsing remaining files.
Done parsing open files.

Other Extensions

ms-vscode.cpptools
ms-vscode.cpptools-extension-pack
ms-vscode.cpptools-themes

Additional context

No response

@Colengms
Copy link
Contributor

Hi @akhodeir . The error message you may be referring to (<filename> could not be parsed. 'includePath' from c_cpp_properties.json in folder '<workspace_folder>' will be used instead.) appears to be emitted when an error is returned from JSON decoding. (That's the only occurrence of could not be parsed I can find in the codebase, related to a compile_commands.json).

Looking at the code, it looks like that error could specifically refer to:

  1. A JSON syntax error.
  2. A root node that's not a JSON array node.
  3. No nodes within the array.

You might try pasting the file into an online JSON validation form.

If the JSON file is well formed, could you provide a (trimmed down) example that reproduces the issue?

@Colengms Colengms self-assigned this Oct 15, 2024
@Colengms Colengms added Language Service more info needed The issue report is not actionable in its current state labels Oct 15, 2024
@github-project-automation github-project-automation bot moved this to Done in cpptools Oct 15, 2024
@akhodeir
Copy link
Author

akhodeir commented Oct 15, 2024

Note: The compile_commands.json is working perfectly on clangd extension. it is also parsed correctly on VSCode.
This is the code/build from my M2 Apple device: Github
It has the same issue as my Apple with intel processor.

update: sorry for closing the issue and re-opening it. just a mistake.

@akhodeir akhodeir reopened this Oct 15, 2024
@Colengms
Copy link
Contributor

Hi @akhodeir . It looks like the "-MJ" command will generate a compile_commands.json fragment, not a valid compile_commands.json file. According to the specifications for compile_commands.json files, the file should contain a JSON array. The file generated by -MJ does not contain an array element and is in fact not a valid JSON object at all. This can be demonstrated by opening the file in VS Code and seeing the errors it reports when trying to interpret the file as a .json file. The generated file is not conformant to the JSON file format specification or the compile_commands.json specification.

We can add support for this format, but I'd suggest opening a bug against the LLVM project suggesting they either output a conformant file or update their own documentation to indicate that file format supports either the existence or non-existence of the array root node (and clarify their divergence from the JSON format in a '.json' file).

@Colengms Colengms added Feature Request and removed more info needed The issue report is not actionable in its current state labels Oct 15, 2024
@Colengms Colengms changed the title [macOS]compile_commands.json could not be parsed by vscode-cpptools but works fine with clangd extensions. Add support for partial/fragment compile_commands.json files, such as generated by the clang -MJ option Oct 15, 2024
@Colengms Colengms moved this from Done to In progress in cpptools Oct 15, 2024
@Colengms Colengms added this to the 1.23 milestone Oct 15, 2024
@akhodeir
Copy link
Author

I added prackets "[" and "]" around the content of compile_commands.json and the error didn't appear again !

does this mean that cpp extions needs to add implicitly brackets around the content of the compile_commands.json ?

one more thing, is there anyway exclude those files from being parsed:

Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/VideoToolbox.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SafetyKit.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/Translation.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/UserNotifications.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/iTunesLibrary.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/CoreTransferable.framework/Versions/A/Headers/
  Processing folder (recursive): /Library/Developer/CommandLineTools/SDKs/MacOSX14.4.sdk/System/Library/Frameworks/SceneKit.framework/Versions/A/Headers/
  Discovering files: 12117 file(s) processed
  0 file(s) removed from database
Done discovering files.
Populating include completion cache.
Parsing remaining files...
  Parsing: 0 files(s) processed
Done parsing remaining files.

I don't see any value from parsing 12117 files which are not part of my code.

I never saw clangd doing this. it just parse what is in compile_commands.json or none.

is there anywere to stop parsing un-necessary files?

@Colengms
Copy link
Contributor

Hi @akhodeir . Frameworks would be returned by clang when queried as part of your 'base configuration'. The configuration in your c_cpp_properties.json (other than the compile_commands.json setting) is used to configure files when not found in your compile_commands.json. If your base configuration results in the compiler identifying a system include path, they'll be parsed into the database. You could provide some additional compileArgs there to configure clang appropriately. Or you could explicitly disable the base configuration by seeing the compilerPath there to an empty string.

@sean-mcmanus
Copy link
Contributor

@akhodeir The logging says it just discovered 12117 files -- all those files are not necessarily parsed. If you do see files that are parsed, you can add the folders that contain the files to C_Cpp.files.exclude.

@Colengms Colengms moved this from Pull Request to Done in cpptools Oct 16, 2024
@Colengms Colengms added the fixed Check the Milestone for the release in which the fix is or will be available. label Oct 16, 2024
@sean-mcmanus sean-mcmanus modified the milestones: 1.23, 1.23.0 Oct 23, 2024
@sean-mcmanus
Copy link
Contributor

@akhodeir Fixed with https://github.com/microsoft/vscode-cpptools/releases/tag/v1.23.0

@akhodeir
Copy link
Author

akhodeir commented Nov 2, 2024

I checked the pre-released version and the fix works well for one file.
BUT for multi files, it seems it doesn't work.

Please check this : https://github.com/akhodeir/CPP/tree/main/05_Constructor_Initialization

The generated compile_commands.json is as follows

{ "directory": "/CPP/05_Area_Class", "file": "/CPP/05_Area_Class/Area.cpp", "output": "/var/folders/54/frbsxv0x14x41c8h2pkdpg7c0000gn/T/Area-bd8aee.o", "arguments": ["/usr/bin/clang", "-xc++", "/CPP/05_Area_Class/Area.cpp", "--driver-mode=g++", "-fdiagnostics-color=always", "-g", "-Wall", "-std=c++17", "-o", "/CPP/05_Area_Class/build/main.out", "-Wno-reorder-init-list", "-Wno-implicit-int-float-conversion", "-Wno-c99-designator", "-Wno-final-dtor-non-final-class", "-Wno-extra-semi-stmt", "-Wno-misleading-indentation", "-Wno-quoted-include-in-framework-header", "-Wno-implicit-fallthrough", "-Wno-enum-enum-conversion", "-Wno-enum-float-conversion", "-Wno-elaborated-enum-base", "-Wno-reserved-identifier", "-Wno-gnu-folding-constant", "-Xclang", "-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation", "-mllvm", "-disable-aligned-alloc-awareness=1", "-Xclang", "-fno-odr-hash-protocols", "-Xclang", "-clang-vendor-feature=+enableAggressiveVLAFolding", "-Xclang", "-clang-vendor-feature=+revert09abecef7bbf", "-Xclang", "-clang-vendor-feature=+thisNoAlignAttr", "-Xclang", "-clang-vendor-feature=+thisNoNullAttr", "-mlinker-version=857.1", "-isysroot", "/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk", "-mmacosx-version-min=14", "-stdlib=libc++", "--target=arm64-apple-macosx14.0.0"]},
{ "directory": "/CPP/05_Area_Class", "file": "/CPP/05_Area_Class/main.cpp", "output": "/var/folders/54/frbsxv0x14x41c8h2pkdpg7c0000gn/T/main-aac9c2.o", "arguments": ["/usr/bin/clang", "-xc++", "/CPP/05_Area_Class/main.cpp", "--driver-mode=g++", "-fdiagnostics-color=always", "-g", "-Wall", "-std=c++17", "-o", "/CPP/05_Area_Class/build/main.out", "-Wno-reorder-init-list", "-Wno-implicit-int-float-conversion", "-Wno-c99-designator", "-Wno-final-dtor-non-final-class", "-Wno-extra-semi-stmt", "-Wno-misleading-indentation", "-Wno-quoted-include-in-framework-header", "-Wno-implicit-fallthrough", "-Wno-enum-enum-conversion", "-Wno-enum-float-conversion", "-Wno-elaborated-enum-base", "-Wno-reserved-identifier", "-Wno-gnu-folding-constant", "-Xclang", "-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation", "-mllvm", "-disable-aligned-alloc-awareness=1", "-Xclang", "-fno-odr-hash-protocols", "-Xclang", "-clang-vendor-feature=+enableAggressiveVLAFolding", "-Xclang", "-clang-vendor-feature=+revert09abecef7bbf", "-Xclang", "-clang-vendor-feature=+thisNoAlignAttr", "-Xclang", "-clang-vendor-feature=+thisNoNullAttr", "-mlinker-version=857.1", "-isysroot", "/Library/Developer/CommandLineTools/SDKs/MacOSX14.2.sdk", "-mmacosx-version-min=14", "-stdlib=libc++", "--target=arm64-apple-macosx14.0.0"]},

@Colengms
Copy link
Contributor

Hi @akhodeir . I'm unable to reproduce this issue, in 1.23.2. The nature of the fix for this issue was to make the outer array brackets optional. There shouldn't have been any other changes in the behavior of the feature. With a simple example, I'm seeing that multiple entries in a compile_commands.json file lacking array backets is resulting in use of those entries for each file involved. I confirmed this using the C/C++: Log Diagnostics command while both files are open. That resulted in a compile_commands.json entry: section reported for each open file.

In your example above, I see that both the directory and file entries are prefixed with "CPP". The compile_commands.json spec requires that the file entry be either a full path or relative to the directory entry. Does fixing that resolve the issue for you?

https://clang.llvm.org/docs/JSONCompilationDatabase.html

If you're still seeing a problem, could you provide a stand-alone example that we might investigate directly, in the form of a zip file or GitHub repo?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature: Compile Commands Feature Request fixed Check the Milestone for the release in which the fix is or will be available. Language Service
Projects
Status: Done
Development

No branches or pull requests

3 participants