binary-husky / gpt_academic

为GPT/GLM等LLM大语言模型提供实用化交互接口,特别优化论文阅读/润色/写作体验,模块化设计,支持自定义快捷按钮&函数插件,支持Python和C++等项目剖析&自译解功能,PDF/LaTex论文翻译&总结功能,支持并行问询多种LLM模型,支持chatglm3等本地模型。接入通义千问, deepseekcoder, 讯飞星火, 文心一言, llama2, rwkv, claude2, moss等。
https://github.com/binary-husky/gpt_academic/wiki/online
GNU General Public License v3.0
60.9k stars 7.61k forks source link

[Feature]: 【解析项目源代码.py】 on C Lang #1837

Open SakuraPuare opened 1 month ago

SakuraPuare commented 1 month ago

Class | 类型

函数插件

Feature Request | 功能请求

Although in general, the suffix names of C/C++files are as follows, sometimes the suffixes of some projects can be very complex

https://github.com/binary-husky/gpt_academic/blob/51ddb88ceb3c94225e8dbd64cb5b3ea4b230ccf1/crazy_functions/%E8%A7%A3%E6%9E%90%E9%A1%B9%E7%9B%AE%E6%BA%90%E4%BB%A3%E7%A0%81.py#L192-L195

This is the extension given under different standards now refers to C++源文件的后缀名问题- petercao

Unix: c, cc, cxx, c GNU C++: c, cc, cxx, cpp, c++ Digital Mars: cpp, cxx Borland C++: cpp Watcom: cpp Microsoft Visual C++: cpp, cxx, cc Metrowerks CodeWarrior: cpp, cp, cc, cxx, c++

Can we consider to add some of them to the glob patten like .cc or .cxx