Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Managing include paths and macros in 'Core Build' projects.
  • From: "Waterlander, Erwin" <erwin.waterlander@xxxxxxxxx>
  • Date: Tue, 4 Oct 2022 08:20:59 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; 1; spf=pass; dmarc=pass action=none; dkim=pass; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed;; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=84m5Gv8sgczgJl/FcveE79qmBFVPDt8fRR5tu6y+gc4=; b=Pf1k7u/0NbdqIfy1WZey+kbgctD+mSeTLFvfTmMGDhMoPdd1wKZ9wNdERX7e3VvAlh6/9msA9qyQ8ncnF+bcMzUEKC8c/XIIbx7Ij5YoMaYTiJ2NVmZbPJYPUPzGBAE70yHFtBbSORZSPoreTzwJRCNXKp40ayj5nHRcv2hIh4vIgMjTdahoUyThzhW+LiMsT9zXacEUUIKnAlZASMzwfsjzwA3OYh1OCbS7EzXi1hw3hzoL+RJoyUtcXow6MSiK+Q1Unv595PNNlVUl8WvcJq1PzO8boUxgm/QosN5JYmKfCzgcT3E8pUGZ7Saf1Y7X6dIEi/0AJ5ayPJiX7/RxWw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=NYCvs/wyffk0wYC55A4dhg6dMpom02wZSa3BrPdZjoEO6t8fw27yvT1Z2qz2rZ12DWxmoO9KMAnnqGErMS6xbEzSE2LpUVSXyv/RHzhnIsJIQl+RnnEbthUUCH+MakPcLlxBrvnXJOCPP7fJWft/nyc9A91vYzWuUCZOxF7HnSf7wgwyvdcRE+BgYpAg/xaLWdv1dfK5vo1yFwy3WTQlwLTsyTuSJpGmfOtENv11JHyX6dWNwuuVun/M3pi9fbuj/rqnV0PbENSci8Y/JTLzr9AzPk4KMrRQ/wkH+X7ajNhy37+HfOp80+Rpzmji8bRGwY6I8k1SrwtfEi6UCGeEzg==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • Dlp-product: dlpe-windows
  • Dlp-reaction: no-action
  • Dlp-version: 11.6.500.17
  • List-archive: <>
  • List-help: <>
  • List-subscribe: <>, <>
  • List-unsubscribe: <>, <>
  • Thread-index: AdjNhqEfp/QsKTJySAqOeK9J3F55BAACWKqAADNe8BAABdjogAAoE3cgAAqVKgAADPOCAAC2dBIgABbj8wABGUqSoAADjvEAACp83qA=
  • Thread-topic: [cdt-dev] Managing include paths and macros in 'Core Build' projects.


Great! That is exactly what I need.
I see there is already some scanning done before the first build. I guess the default Toolchain selected in the launch configuration build settings is used to get some initial include paths. How can I change the core build project's default toolchain?

I see that the CMakeBuildConfiguration and StandardBuildConfiguration classes are responsible for building the core build cmake and makefile projects. I do not see yet how exactly the build output is captured, parsed, combined with toolchain information and sent to the scanner/indexer. Is there a core build design document?


Erwin Waterlander                                                 Intel

-----Original Message-----
From: cdt-dev <cdt-dev-bounces@xxxxxxxxxxx> On Behalf Of Martin Weber
Sent: Monday, October 03, 2022 13:35
To: CDT General developers list. <cdt-dev@xxxxxxxxxxx>
Subject: Re: [cdt-dev] Managing include paths and macros in 'Core Build' projects.

Am Montag, 3. Oktober 2022, 12:57:20 CEST schrieb Waterlander, Erwin:
> -----Original Message-----
> From: cdt-dev <cdt-dev-bounces@xxxxxxxxxxx> On Behalf Of Martin Weber
> Sent: Tuesday, September 27, 2022 21:38
> To: cdt-dev@xxxxxxxxxxx
> Subject: Re: [cdt-dev] Managing include paths and macros in 'Core Build'
> projects.
> > The extension point is
> > 'org.eclipse.cdt.jsoncdb.core.detectionParticipant'.
> > Not quite sure if it is present in CDT 10.6.
> > 
> > Just to clarify: What Jonah was suggesting is to build using the CDT 
> > CMake core project type and teach cmake core to handle your compiler 
> > (through the extension point). CDT CMake core has a mechanism to 
> > parse the compile_commands.json file and to pass the include paths 
> > and macros to the indexer. The mechanism first isolates the name of 
> > compiler executable  from each commandline and then determines which 
> > of the existing detection participants feel responsible to capture 
> > the remaining arguments. After parsing the command lines, the 
> > detections participant for each line is asked to supply the compiler 
> > built-ins for macros and include paths. Usually, the participant 
> > will invoke the compiler with special arguments to dump its builtins 
> > to stdout, parse that output and supply the builtins.
> Hi,
> So this means that if I you run different C compilers, with their own 
> specific macros and includes, on different source files in a single 
> build from the same CMake file, you still get correct syntax 
> highlighting for all the source files. Right?



Cd wrttn wtht vwls s mch trsr.

cdt-dev mailing list
To unsubscribe from this list, visit
Intel Benelux B.V.
Registered in The Netherlands under number 24134020
Statutory seat: Rotterdam
Registered address: Capronilaan 37, 1119NG Schiphol-Rijk

This e-mail and any attachments may contain confidential material for
the sole use of the intended recipient(s). Any review or distribution
by others is strictly prohibited. If you are not the intended
recipient, please contact the sender and delete all copies.

Back to the top