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: Mon, 3 Oct 2022 10:57:20 +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=SxEaaz78ymbyz+v79W0oVy1xl026M6In0FHYeTxgi7Y=; b=CE+sGENnNhdvf7xQBJyoa+alp5AAV5PER9szY2N0V3P6yU+oIyOyJu1nokcZAJTKtdcRMsrC/+zy9SXaj1sdD3oOK033P5kzdGsHTA5TkvhZ9vqGVUfFARFD5nR2nNHru5TU3zfsYge206HHPUbwvvOj6rM+Id0WOzc5kFMGVPLqNpBSn5jlx/hLrVn4Bqc6/x9mIQ0+hLBxaHbC2M55aGEJ5tmjgIynJLOhm0+b9DjaGAGIslayQzkhAj572rsECIkAVRBO+0PbAjGv3IBMJUzJ1FmmD8bBoL71Q0KNQvTtbplVYj5nultOb7OkOmuDxDe6n454WQ9+/w45mw+b4A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901;; cv=none; b=oWgUd5eNyQe342SUMqMstOeh/n/i483zR/k4GEbrRBGzjqOm2ABtdsRhko/UdKCD3FIiVAbumujnYZugjF71f9C+pGaXtpRpWM2887bH6xOH5hnTOdbaTcLIGlXPJ8oIKg1J1hGvUSs9WKzFeujdoWw8Nfmmf07J8l4E58zKgDP0U8FgBnsi+As6nzBQQVg1j81d1pTDdmDoJZ3lRYjXMtvyY3+JD0Hp+OT8vd4wpXYnJVlcdeTTAa/r8mi6U4Gklbj5WxgFzz/kwi8jWpCmz/8IcKtjlrANy7IwWGG1Pid8FHeOesV0GupwZ68F8XMfdf+mp+WryBxNyxm2zmnGFw==
  • 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/QsKTJySAqOeK9J3F55BAACWKqAADNe8BAABdjogAAoE3cgAAqVKgAADPOCAAC2dBIgABbj8wABGUqSoA==
  • Thread-topic: [cdt-dev] Managing include paths and macros in 'Core Build' projects.

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


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?



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