From 8ccb3c21e1b53ceec55fa2cd85cdeb5a2211453f Mon Sep 17 00:00:00 2001 From: luoliwoshang <2643523683@qq.com> Date: Mon, 2 Sep 2024 18:51:46 +0800 Subject: [PATCH] llcppg/config:language --- chore/llcppg/design.md | 3 ++- chore/llcppg/types/types.go | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chore/llcppg/design.md b/chore/llcppg/design.md index 2a4acdce..8926f7d0 100644 --- a/chore/llcppg/design.md +++ b/chore/llcppg/design.md @@ -18,7 +18,8 @@ If `config-file` is not specified, a `llcppg.cfg` file is used in current direct "AnotherHeaderFile.h" ], "libs": "$(pkg-config --libs inireader)", - "trimPrefixes": ["Ini", "INI"] + "trimPrefixes": ["Ini", "INI"], + "cplusplus":true } ``` diff --git a/chore/llcppg/types/types.go b/chore/llcppg/types/types.go index 6852ed1f..6179a32a 100644 --- a/chore/llcppg/types/types.go +++ b/chore/llcppg/types/types.go @@ -23,6 +23,7 @@ type Config struct { Libs string `json:"libs"` Include []string `json:"include"` TrimPrefixes []string `json:"trimPrefixes"` + Cplusplus bool `json:"cplusplus"` } type SymbolInfo struct {