Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [cdt-dev] Is CMake support stable?
  • From: Moritz Strübe <moritz.struebe@xxxxxxxxxx>
  • Date: Thu, 17 Nov 2022 15:11:07 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=mathema.de; dmarc=pass action=none header.from=mathema.de; dkim=pass header.d=mathema.de; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; 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=J908t3llJidU2AZvVGlX0/d5V2VDFN0rY8PXMF+2ZQg=; b=UI/WdxhoSEZ26PKB8toDbjHdD9NrLNQIkGgFdP4ME2bM6us2P6w08f6NjscLiZJH5SHJh6lU/lJwnngLZcwuqWVIkIfv54srigzGib9324ab9JQxjXqt3evu28RiP2Qdqi32lxMJdOw6wjTvZix8hboolpZVmY0Fp+oga8ROacAaGadw2Gqx1k9oLnlFlU+H3CAMRuE8VTyOk50bDlKwrwhROdcy9To0SxraK7EnhQX/zm0cv+Wo6gJCNhY01I1aHCa9UBnVacRCQ51CpCleLuDTvfvkjrNpqfA2pDGi3C4xWKV3wUOEOp9FH8OFD+zghLjG0SsGRpZxbaiYFJzLqg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=kCShTBu9sYpXRoFmePqTPr/1JWdwd9yTVtlW6c7YV7nDOcWx4CEMyk/lIx3CRBfTk/AT894pCSAVnsGwEIrX/PxY76P6idoKG0erzZ+YxCFhvO3vTch2wkoa4gu62l9mi+/CykY+NzDtfvMK5V09d3bTY7wEqyUlFSooUKC31vMPyk+08Re8Fj36UPsWN2ABsLBLVVFldbnPJ3oNqXVhy2PDDJWRrZUx9enxMS1splC5ZOiCNTKf5Z3yeHTd2HWIvX2vG2CqX29FaErXXED4uosECys6Q0Pwu2gRcyJEV6f8/kGSweJQCcNBV/zmKHfPUqfSSfOa+BHb6QS4LXFZuQ==
  • Delivered-to: cdt-dev@xxxxxxxxxxx
  • List-archive: <https://www.eclipse.org/mailman/private/cdt-dev/>
  • List-help: <mailto:cdt-dev-request@eclipse.org?subject=help>
  • List-subscribe: <https://www.eclipse.org/mailman/listinfo/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=subscribe>
  • List-unsubscribe: <https://www.eclipse.org/mailman/options/cdt-dev>, <mailto:cdt-dev-request@eclipse.org?subject=unsubscribe>
  • User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.4.2

Hey.

On 10.12.20 05:45, Marc-Andre Laperle wrote:

There is a "Language Settings Provider" for the Compilation Database. [...]

Yes, this is the way to go. The regex of the Build-Output provider has improved, so it's not as painful as before. Here's my setup:
Got To "C/C++ General" → "Preprozessor Include Paths, Macros, etc" → "Providers"
Disable everything but "Built-in Compiler Settings", "Build Output Parser" and "Compilation Database Parser"
For the "Built-in Compiler Settings" replace  "${COMMAND}" with your compiler.
For "Compilation Database Parser" add "${ProjDirPath}/build/compile_commmands.json" or whatever as path and select the "Build-Output-Parser".

If you are using some fancy compiler you might need to adjust the "Build Output Parser"-Regexp, but that shouldn't be necessary any more.

Cheers
Morty


-- 
MATHEMA GmbH
Schillerstraße 14 | 90409 Nürnberg

Telefon: +49 (0)911 180778-50
E-Mail: moritz.struebe@xxxxxxxxxx | Web: www.mathema.de

Geschäftsführer: Andreas Hanke, Thomas Haug
Handelsregister: HR B 35517, Nürnberg/Bayern

Back to the top