C ++注释样式:/* M ... M */,"M"代表什么? [英] C++ comment style: /*M ... M*/, what 'M' stands for?
问题描述
我看过一些第三方源代码,并带有/* 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可视化的问题
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
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屋!