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: Thu, 29 Sep 2022 07:33:33 +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=N6LlI0NnPC3D/nm2rtcm2IjmxfStENvwFUyV6LFq80M=; b=eIVGUcXwovjLgBeUh0immzGffPU/UydLJky89oMQi+IqmWCug5cMbpMUXEUhMtI1qfZ/6rsm80Yr/mThO5+I0Yu3dsKBgK8IFzHisbSt2MRiE6SybeMq9ETdBoCBlbHYI1NdsgQxpvIg82h6qDkvyDdNQRRvikf81i5Sfk0X+dOcy8slIL73flkNRkxyjSYYOdwmYIROvycfvLMPCXBrZJ1DyimuChCAoWYhh3CneAHk5Np40fokuYvdzhvGcHrj4v9JVSQ1EDi5V9ugK2uB2rztKRqGWYD7CBP6jA5PRzGoGe02m4/i8ZjmzYEjjg16e7cYQM5Tp7aCort7KQMXVQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=iW5n7EcZRxnvkbDGMW2lFGjv0tYTroR2KSe8mJTaHzn1qg8VA0bAJWhtptANgfQei6TXQd7lkq8YS0Lqo3IvTUwF96UscUTPgW6ksT7Jy4u9qHz2gYVDfzYRWol2DFJjr5Fg0JEeh0n4LfVpQ9RAiJISr43iwEiGMhvQ1Qh0fKdnarYVztCs0SGQR03h7PDdQlgXQIihnQXXXp6tRGXruqwuz3/8St22oy+5Ae6svxfH8sYc66Kp2CM0F0ORB2a/yBKBTR6h+HyHdKmEvAtYpQYevrqRgAHcPWK4FK261r8+umwt+lvoe3Fvlq886+ndVtsGULPIO+rQY06XoUhsnQ==
  • 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/QsKTJySAqOeK9J3F55BAACWKqAADNe8BAABdjogAAoE3cgAAqVKgAADPOCAAC2dBIgABbj8wAASsYDEA==
  • Thread-topic: [cdt-dev] Managing include paths and macros in 'Core Build' projects.


My Eclipse installation was corrupted. After re-installing it I could see the detectionParticipant extension point (in 10.6). I'm able to make my own now. Thanks for all the help!

I'm also still very much interested in core build Makefile. If anyone has some hints how I could do the same for core build Makefile, I would appreciate it a lot. I like the simplicity of core build projects. Otherwise I have to stick to managed build Makefile.

kind regards,

Erwin Waterlander                                                 Intel

-----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.

Am Dienstag, 27. September 2022, 10:57:20 CEST schrieb Waterlander, Erwin:
> Thanks Martin, I have a look.
> I do not see yet how I add a custom detection participant to my plugin.
> Which extension to use? I'm using Eclipse 4.23/CDT 10.6. Is there any

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.

> tutorial on how to create a CDT core build plugin, like there is for

Not that I am aware of it.

> managed build? I will also have a look at cmake4eclipse. I will send 
> you a

cmake4eclipse uses the same mechanism as above to feed the indexer. The only difference is that is based on *managed build*.


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