C ++注释样式:/* M ... M */,"M"代表什么? [英] C++ comment style: /*M ... M*/, what 'M' stands for?

查看:377
本文介绍了C ++注释样式:/* M ... M */,"M"代表什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我看过一些第三方源代码,并带有/* M ... M */样式的注释.但是"M"代表什么?(也许它与某种版本控制或代码文档系统(例如doxygen)一起使用?)

I have seen some 3rd party source code with comments in /*M ... M*/ style. But what 'M' stands for? (Perhaps it is used with some kind of version control, or code documentation system (like doxygen)?)

我在opencv的许多(如果不是全部)源代码文件中看到了它.

I saw it in many (if not all) source code files in opencv.

您可以通过单击,在GitHub下浏览Itseez的opencv存储库此处.

You may browse Itseez's opencv repository under GitHub by clicking here.

哦.我忘了提一下,注释样式似乎仅存在于文件的开头,并且似乎在声明许可证.

Oh. I forget to mention, the comment style seems to exist only in the head of the file, and it seems to declare the license.

示例:

/*M///////////////////////////////////////////////////////////////////////////////////////
//
//  IMPORTANT: READ BEFORE DOWNLOADING, COPYING, INSTALLING OR USING.
//
//  By downloading, copying, installing or using the software you agree to this license.
//  If you do not agree to this license, do not download, install,
//  copy or use the software.
//
//
//                           License Agreement
//                For Open Source Computer Vision Library

[...]
//
//M*/

推荐答案

注意:与版本控制甚至C ++不相关

Note: Doesn't correlate to version control and even C++

这是跨操作系统EOL问题(Win | * Nix)和非本机EOL可视化的问题^ M (实际上是 such 字符串)-git-commit-v/9826436#9826436>纯CR世界和Linux | Mac GUI中的CRLF

This is a problem of cross-OS EOL-problem (Win|*Nix) and visualization of not-native EOL ^M (really such string) in CRLF in pure-CR world and Linux|Mac GUIs

opengl.hpp(来自您的示例存储库):第一行

Example for opengl.hpp (from your sample repo): first lines

/*M///////////////////////////////////////////////////////////////////////////////////////
//

是,具有正确的渲染

/*
///////////////////////////////////////////////////////////////////////////////////////
//

和所有故障源都是作者的Git中配置错误的 core.CRLF 的结果(或完全忽略了它)

and all glithes are results of ugly configured core.CRLF in author's Git (or ignoring it at all)

这篇关于C ++注释样式:/* M ... M */,"M"代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆